Can't record and watch a channel at the same time. (1 Viewer)

riksmith

Portal Pro
April 18, 2009
1,856
322
Home Country
Netherlands Netherlands
TV-Server Version: 1.0.1
MediaPortal Version: 1.0.1
MediaPortal Skin: Blue3Wide
Windows Version: Vista Ultimate SP1
CPU Type: Intel Q6600
HDD:
Memory: 2 gb
Motherboard: Asus P5E
Video Card: Sapphire Ati 4850
Video Card Driver: 9.13
Sound Card: Onboard
Sound Card AC3:
Sound Card Driver:
1. TV Card: Digitally-Everywhere FloppyDTV
1. TV Card Type: DVB-C
1. TV Card Driver: 4.8
2. TV Card: Digitally-Everywhere FloppyDTV
2. TV Card Type: DVB-C
2. TV Card Driver: 4.8
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec: CoreAVC
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote: Trust RC-2400
TV:
TV - HTPC Connection:

I am having problems watching and recording a channel at the same time. When i do this i get the following error in the error.log:

Code:
2009-04-23 18:23:51.518242 [6]: Exception   :TvLibrary.TvException: Unable to tune to channel
   bij TvLibrary.Implementations.DVB.TvCardDvbBase.SubmitTuneRequest(Int32 subChannelId, IChannel channel, ITuneRequest tuneRequest)
   bij TvLibrary.Implementations.DVB.TvCardDVBC.Tune(Int32 subChannelId, IChannel channel)
   bij TvService.CardTuner.Tune(User& user, IChannel channel, Int32 idChannel)

and the following output in tv.log:

Code:
009-04-23 18:24:02.367242 [Scheduler timer]: Controller: find free card for channel Nederland 3
2009-04-23 18:24:02.369242 [Scheduler timer]: Controller:   got 1 tuning details for Nederland 3
2009-04-23 18:24:02.369242 [Scheduler timer]: Controller:   channel #1 DVBC:tv:Ziggo Nederland 3 Freq:388000 ONID:500 TSID:8 SID:8003 PMT:0xF0 FTA:False LCN:10000 SymbolRate:6875 Modulation:Mod64Qam 
2009-04-23 18:24:02.373242 [Scheduler timer]: Controller:    card:1 type:DvbC is tuned to different transponder
2009-04-23 18:24:02.374242 [Scheduler timer]: Controller:    card:1 type:DvbC is available priority:-97 #users:1 same transponder:False
2009-04-23 18:24:02.380242 [Scheduler timer]: Controller:    card:2 type:DvbC is tuned to same transponder decrypting 2/8 channels
2009-04-23 18:24:02.381242 [Scheduler timer]: Controller:    card:2 type:DvbC is available priority:2 #users:1 same transponder:True
2009-04-23 18:24:02.384242 [Scheduler timer]: Controller:    card:3 type:RadioWebStream cannot tune to channel
2009-04-23 18:24:02.384242 [Scheduler timer]: Controller: found 2 available
2009-04-23 18:24:02.385242 [Scheduler timer]: Scheduler : record on free card:2 priority:2
2009-04-23 18:24:02.386242 [Scheduler timer]: Scheduler : record, first tune to channel
2009-04-23 18:24:02.388242 [6]: card: Tune 2 to Nederland 3
2009-04-23 18:24:02.388242 [6]: card: user: scheduler69:2:-1 tune DVBC:tv:Ziggo Nederland 3 Freq:388000 ONID:500 TSID:8 SID:8003 PMT:0xF0 FTA:False LCN:10000 SymbolRate:6875 Modulation:Mod64Qam
2009-04-23 18:24:02.402242 [6]: dvbc: Tune:DVBC:tv:Ziggo Nederland 3 Freq:388000 ONID:500 TSID:8 SID:8003 PMT:0xF0 FTA:False LCN:10000 SymbolRate:6875 Modulation:Mod64Qam
2009-04-23 18:24:02.402242 [6]: dvb:Submiting tunerequest Channel:Nederland 3 subChannel:-1 
2009-04-23 18:24:02.403242 [6]: dvb:Getting new subchannel
2009-04-23 18:24:02.404242 [6]: dvb:GetNewSubChannel:1 #3
2009-04-23 18:24:02.405242 [6]: TvDvbChannel ctor new subchIndex:3
2009-04-23 18:24:02.406242 [6]: dvb:Submit tunerequest size:2 new:3
2009-04-23 18:24:02.407242 [6]: subch:3 OnBeforeTune
2009-04-23 18:24:02.408242 [6]: dvb:Submit tunerequest calling put_TuneRequest
2009-04-23 18:24:02.409242 [6]: dvb:Submit tunerequest done calling put_TuneRequest
2009-04-23 18:24:02.410242 [6]: dvb:SubmitTuneRequest  returns:0x1
2009-04-23 18:24:02.411242 [6]: dvb:SubmitTuneRequest  failed - removing subchannel: 3

I can't find anywhere what the 0x1 resturn code means. All return codes i can find are much longer than 1 (0x0088aa or something like that).

To further investigate this I downloaded the source and debugged it. I traced it back to this piece of code:

Code:
Log.Log.WriteFile("dvb:Submit tunerequest calling put_TuneRequest");
        int hr = ((ITuner)_filterNetworkProvider).put_TuneRequest(tuneRequest);
        Log.Log.WriteFile("dvb:Submit tunerequest done calling put_TuneRequest");
        if (hr != 0)
        {
          Log.Log.WriteFile("dvb:SubmitTuneRequest  returns:0x{0:X}", hr);
          //remove subchannel.
          /*if (newSubChannel)
          {
          _mapSubChannels.Remove(subChannelId);
          }*/
          throw new TvException("Unable to tune to channel");
        }

I than changed it to try and ignore the return code 1, and than it worked, it tuned to the channel just fine. I used the following:

Code:
Log.Log.WriteFile("dvb:Submit tunerequest calling put_TuneRequest");
        int hr = ((ITuner)_filterNetworkProvider).put_TuneRequest(tuneRequest);
        Log.Log.WriteFile("dvb:Submit tunerequest done calling put_TuneRequest");
        if (hr != 0 && hr != 1)
        {
          Log.Log.WriteFile("dvb:SubmitTuneRequest  returns:0x{0:X}", hr);
          //remove subchannel.
          /*if (newSubChannel)
          {
          _mapSubChannels.Remove(subChannelId);
          }*/
          throw new TvException("Unable to tune to channel");
        }

Any ideas what the problem is?
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Most likely you are using Vista TV pack. It is not currently supported, hopefully 1.1.0 will support it.

    MS has changed the network provider in Windows 7 / Vista TV pack in such way that multiple tuning requests are failing.
     

    riksmith

    Portal Pro
    April 18, 2009
    1,856
    322
    Home Country
    Netherlands Netherlands
    Yes i am using tv pack. But does the "1" mean failure? Or does it mean something like: I tried but i did not need to do anything. The strange thing is i can ignore the "1" and everything seems to work fine.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Yes i am using tv pack. But does the "1" mean failure? Or does it mean something like: I tried but i did not need to do anything. The strange thing is i can ignore the "1" and everything seems to work fine.

    Zero is success, all other values / return codes indicate a failure / error. Most likely the error can be ignored on that case as the tuning has been already done.

    So, it the patch ( && hr != 1) helps on your system you need to keep using that until 1.1.0 is release :)
     

    riksmith

    Portal Pro
    April 18, 2009
    1,856
    322
    Home Country
    Netherlands Netherlands
    Is there a place to lookup such error codes? I have been searching but am not able to find it.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Same problem and i have vista tv pack too.

    Currently Vista TV pack nor Windows 7 aren't supported. You can only wait until 1.1.0 release is out (or ask riksmith to provide modified binaries that has a workaround for the issue).
     

    Users who are viewing this thread

    Top Bottom