[TV] - Unable to record/watch consecutive shows on the same channel

Discussion in 'MediaPortal 1.1.0 BETA 1' started by jaymode, January 19, 2010.

  1. jaymode

    jaymode Portal Pro

    Joined:
    July 31, 2008
    Messages:
    58
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    MediaPortal Version: 1.1.0 Beta SVN 24669
    MediaPortal Skin: Default
    Windows Version: Windows 7 32-bit
    CPU Type: AMD Phenom II X3 710
    HDD: 500GB Samsung
    Memory: 4 GB
    Motherboard: ASUS M3N78 Pro
    Video Card: ATI Radeon 4350
    Video Card Driver: Catalyst 9.12
    Sound Card: ATI HDMI Audio
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card: Hauppauge HVR-1800
    1. TV Card Type: ATSC/NTSC
    1. TV Card Driver: Latest found here (Support for the WinTV-HVR-1800)
    2. TV Card: Hauppauge HVR-2250
    2. TV Card Type: Dual Hybrid ATSC/NTSC
    2. TV Card Driver: Latest found here (WinTV-HVR-2250 Support page)
    Satelite/CableTV Provider: Comcast
    Power Supply: 600W OCZ
    TV - HTPC Connection: HDMI

    I have been having issues with TV shows not being recorded and tracked it down to an error when attempting to change channels; this has only happened with ATSC. In the TV Server error log there are many occurrences of this error:
    Code (Text):
    1.  
    2. 2010-01-18 19:43:54.624000 [6]: Exception   :TvLibrary.TvException: Unable to tune to channel
    3.    at TvLibrary.Implementations.DVB.TvCardDvbBase.SubmitTuneRequest(Int32 subChannelId, IChannel channel, ITuneRequest tuneRequest, Boolean performTune)
    4.    at TvLibrary.Implementations.DVB.TvCardATSC.Tune(Int32 subChannelId, IChannel channel)
    5.    at TvService.CardTuner.Tune(User& user, IChannel channel, Int32 idChannel)
    6.  

    I can easily reproduce across all of my ATSC tuners by running TV Server configuration, start timeshifting on one tuner, stop timeshifting, attempt to start timeshifting again on the same channel and get a popup with a message of "Unknown error". If I change the channel, timeshifting works again. It is only when it attempts to tune to the channel that had last been viewed. I have attached the logs from TV Server.



    Please let me know what further information you require.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. jaymode

    jaymode Portal Pro

    Joined:
    July 31, 2008
    Messages:
    58
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    This may be a bug in the code. Reading through the code; the channel should not even be attempted to tune because it was the previous channel (my understanding).

    From my tv log file
    Code (Text):
    1.  
    2. 2010-01-18 19:03:39.126200 [6]: Controller: StartTimeShifting WTTG_HD 99
    3. 2010-01-18 19:03:39.126200 [6]: Controller: find free card for channel WTTG_HD
    4. 2010-01-18 19:03:39.136200 [6]: Controller:   got 1 tuning details for WTTG_HD
    5. 2010-01-18 19:03:39.136200 [6]: Controller:   channel #1 ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    6. 2010-01-18 19:03:39.226200 [6]: Controller:    card:8 type:Atsc is available priority:8 #users:0 same transponder:False
    7. 2010-01-18 19:03:39.226200 [6]: Controller:    card:6 type:Atsc is available priority:7 #users:0 same transponder:False
    8. 2010-01-18 19:03:39.226200 [6]: Controller:    card:7 type:Atsc is available priority:6 #users:0 same transponder:False
    9. 2010-01-18 19:03:39.236200 [6]: Controller:    card:2 type:Analog cannot tune to channel
    10. 2010-01-18 19:03:39.236200 [6]: Controller:    card:3 type:Analog cannot tune to channel
    11. 2010-01-18 19:03:39.236200 [6]: Controller:    card:4 type:Analog cannot tune to channel
    12. 2010-01-18 19:03:39.236200 [6]: Controller:    card:9 type:Analog cannot tune to channel
    13. 2010-01-18 19:03:39.236200 [6]: Controller:    card:5 type:RadioWebStream is disabled
    14. 2010-01-18 19:03:39.236200 [6]: Controller: found 3 available
    15. 2010-01-18 19:03:39.246200 [6]: TV3BlasterPlugin: Received TV Server Event "StartZapChannel"
    16. 2010-01-18 19:03:39.246200 [6]: card: CardTune 8 WTTG_HD setuptv:8:-1
    17. 2010-01-18 19:03:39.256200 [6]: card: Tune 8 to WTTG_HD
    18. 2010-01-18 19:03:39.256200 [6]: card: user: setuptv:8:-1 tune ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    19. 2010-01-18 19:03:39.266200 [6]: atsc:Tune:ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    20. 2010-01-18 19:03:39.266200 [6]: atsc:BuildGraph
    21. 2010-01-18 19:03:39.266200 [6]: dvb:AddNetworkProviderFilter
    22. 2010-01-18 19:03:39.266200 [6]: dvb:Add Generic Network Provider
    23. 2010-01-18 19:03:39.276200 [6]: atsc:CreateTuningSpace()
    24. 2010-01-18 19:03:39.276200 [6]: atsc:found correct tuningspace MediaPortal ATSC TuningSpace
    25. 2010-01-18 19:03:39.286200 [6]: dvb:Add MPEG2 Demultiplexer filter
    26. 2010-01-18 19:03:39.286200 [6]: dvb:add Inf Tee filter
    27. 2010-01-18 19:03:39.296200 [6]: dvb:AddAndConnectBDABoardFilters
    28. 2010-01-18 19:03:39.296200 [6]: dvb: find bda tuner
    29. 2010-01-18 19:03:39.316200 [6]: dvb:  using [Tuner]: Hauppauge WinTV 885 BDA Tuner/Demod
    30. 2010-01-18 19:03:39.316200 [6]: dvb:  Render [Network provider]->[Tuner] OK
    31. 2010-01-18 19:03:39.316200 [6]: dvb:  Find BDA receiver
    32. 2010-01-18 19:03:39.316200 [6]: dvb:  match Capture by Tuner device path
    33. 2010-01-18 19:03:39.326200 [6]: dvb:  -Hauppauge WinTV-7164 BDA Digital Capture
    34. 2010-01-18 19:03:39.326200 [6]: dvb:  -Hauppauge WinTV-7164 BDA Digital Capture
    35. 2010-01-18 19:03:39.326200 [6]: dvb:  -Hauppauge WinTV 885 TS Capture
    36. 2010-01-18 19:03:39.326200 [6]: dvb:  Render [Tuner]->[Capture] AOK
    37. 2010-01-18 19:03:39.336200 [6]: dvb:  WinTv CI module not detected.
    38. 2010-01-18 19:03:39.336200 [6]: dvb:  Render [capture]->[inftee]
    39. 2010-01-18 19:03:39.336200 [6]: dvb:  OK
    40. 2010-01-18 19:03:39.346200 [6]: dvb:  Render [inftee]->[demux]
    41. 2010-01-18 19:03:39.346200 [6]: dvb:  Add Mediaportal TsWriter filter
    42. 2010-01-18 19:03:39.356200 [6]: dvb:  Render [InfTee]->[TsWriter]
    43. 2010-01-18 19:03:39.356200 [6]: CAM is Default model
    44. 2010-01-18 19:03:39.356200 [6]: Check for ViXS ATSC QAM card
    45. 2010-01-18 19:03:39.356200 [6]: ViXS ATSC: card NOT found!
    46. 2010-01-18 19:03:39.366200 [6]: Check for Generic ATSC QAM card
    47. 2010-01-18 19:03:39.366200 [6]: GenericATSC: QAM capable card found!
    48. 2010-01-18 19:03:39.366200 [6]: Generic ATSC QAM card detected
    49. 2010-01-18 19:03:39.366200 [6]: dvb:  AddTransportStreamFiltersToGraph
    50. 2010-01-18 19:03:39.366200 [6]:     add BDA MPEG2 Transport Information Filter filter
    51. 2010-01-18 19:03:39.366200 [6]:     pinTif:name:IB Input [3/1] Direction:Input Connected:False
    52. 2010-01-18 19:03:39.366200 [6]:     Connect tif and mpeg2 sections and tables
    53. 2010-01-18 19:03:39.366200 [6]: dvb:try tif:name:001 [5/1] Direction:Output Connected:False
    54. 2010-01-18 19:03:39.376200 [6]:     tif connected
    55. 2010-01-18 19:03:39.426200 [6]: dvb: GetTunerSignalStatistics()
    56. 2010-01-18 19:03:39.426200 [6]: atsc:using new channel tuning settings
    57. 2010-01-18 19:03:39.426200 [6]: Setting Generic ATSC modulation to Mod256Qam
    58. 2010-01-18 19:03:39.426200 [6]: GenericATSC: Set ModulationType: Mod256Qam
    59. 2010-01-18 19:03:39.426200 [6]: dvb:Submiting tunerequest Channel:WTTG_HD subChannel:-1
    60. 2010-01-18 19:03:39.426200 [6]: dvb:Getting new subchannel
    61. 2010-01-18 19:03:39.426200 [6]: dvb:GetNewSubChannel:0 #0
    62. 2010-01-18 19:03:39.436200 [6]: TvDvbChannel ctor new subchIndex:0
    63. 2010-01-18 19:03:39.436200 [6]: dvb:Submit tunerequest size:1 new:0
    64. 2010-01-18 19:03:39.436200 [6]: subch:0 OnBeforeTune
    65. 2010-01-18 19:03:39.436200 [6]: dvb:Submit tunerequest calling put_TuneRequest
    66. 2010-01-18 19:03:39.436200 [6]: dvb:Submit tunerequest done calling put_TuneRequest
    67. 2010-01-18 19:03:39.446200 [6]: subch:0 OnAfterTune
    68. 2010-01-18 19:03:39.446200 [6]: subch:0 OnGraphStart
    69. 2010-01-18 19:03:39.446200 [6]: dvb:  RunGraph
    70. 2010-01-18 19:03:40.206200 [6]: dvb:  LockedInOnSignal waiting 20ms
    71. 2010-01-18 19:03:40.276200 [6]: dvb:  LockedInOnSignal ok
    72. 2010-01-18 19:03:40.276200 [6]: subch:0 OnGraphStarted
    73. 2010-01-18 19:03:40.276200 [6]: subch:0 SetupPmtGrabber:pid 5DD sid:5DD
    74. 2010-01-18 19:03:40.276200 [6]: subch:0 set pmt grabber pmt:5DD sid:5DD
    75. 2010-01-18 19:03:40.286200 [6]: WaitForPMT: Waiting for PMT 5DD
    76. 2010-01-18 19:03:40.296200 [13]: subch:0 OnPMTReceived() pmt:5DD ran:True dynamic:False
    77. 2010-01-18 19:03:40.296200 [6]: WaitForPMT: Found PMT after 0.02 seconds.
    78. 2010-01-18 19:03:40.296200 [6]: subch:0 SendPmt:5DD 5DD FFFFFFFF 1A
    79. 2010-01-18 19:03:40.306200 [6]: Decode pmt
    80. 2010-01-18 19:03:40.306200 [6]: Set descriptor data with length 6
    81. 2010-01-18 19:03:40.306200 [6]: subch:0 SendPMT version:26 len:50 1501
    82. 2010-01-18 19:03:40.306200 [6]: subch:0 cam flags:True
    83. 2010-01-18 19:03:40.316200 [6]: subch:0 SetMpegPidMapping
    84. 2010-01-18 19:03:40.316200 [6]: subch:0  pid:5EC pcr
    85. 2010-01-18 19:03:40.316200 [6]: subch:0  pid:5DD pmt
    86. 2010-01-18 19:03:40.316200 [6]: subch:0  pid:5EC video type:MPEG-2
    87. 2010-01-18 19:03:40.316200 [6]: subch:0    map pid:5EC video type:MPEG-2
    88. 2010-01-18 19:03:40.316200 [6]: subch:0  pid:5ED audio lang: type:AC3
    89. 2010-01-18 19:03:40.316200 [6]: subch:0    map pid:5ED audio lang: type:AC3
    90. 2010-01-18 19:03:40.316200 [6]: subch:0 stop tif
    91. 2010-01-18 19:03:40.316200 [6]: WaitForPMT: sending PMT to CAM took 0.02 seconds.
    92. 2010-01-18 19:03:40.336200 [6]: card: Tuner locked: True
    93. 2010-01-18 19:03:40.336200 [6]: **************************************************
    94. 2010-01-18 19:03:40.336200 [6]: ***** SIGNAL LEVEL: 0, SIGNAL QUALITY: 100 *****
    95. 2010-01-18 19:03:40.336200 [6]: **************************************************
    96. 2010-01-18 19:03:40.336200 [6]: card: tuned user: setuptv subchannel: 0
    97. 2010-01-18 19:03:40.346200 [6]: user:setuptv add
    98. 2010-01-18 19:03:40.346200 [6]: card2:setuptv 8 0
    99. 2010-01-18 19:03:40.346200 [6]: Controller: setuptv 8 0
    100. 2010-01-18 19:03:40.346200 [6]: TV3BlasterPlugin: Received TV Server Event "EndZapChannel"
    101. 2010-01-18 19:03:40.346200 [6]: control2:setuptv 8 0
    102. 2010-01-18 19:03:40.346200 [6]: Controller: delete timeshift files C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts
    103. 2010-01-18 19:03:40.356200 [6]: TV3BlasterPlugin: Received TV Server Event "StartTimeShifting"
    104. 2010-01-18 19:03:40.356200 [6]: card: StartTimeShifting 8 C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts
    105. 2010-01-18 19:03:40.356200 [6]: card: CAM enabled : False
    106. 2010-01-18 19:03:40.356200 [6]: subch:0 SetTimeShiftFileName:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts
    107. 2010-01-18 19:03:40.356200 [6]: Set video / audio observer
    108. 2010-01-18 19:03:40.356200 [6]: subch:0 SetTimeShiftFileName fill in pids
    109. 2010-01-18 19:03:40.366200 [6]: subch:0-0 tswriter StartTimeshifting...
    110. 2010-01-18 19:03:40.366200 [6]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
    111. 2010-01-18 19:03:40.376200 [13]: PID seen - type = Video
    112. 2010-01-18 19:03:40.376200 [13]: audioVideoEventHandler Video
    113. 2010-01-18 19:03:40.396200 [13]: PID seen - type = Audio
    114. 2010-01-18 19:03:40.396200 [13]: audioVideoEventHandler Audio
    115. 2010-01-18 19:03:40.396200 [6]: card: WaitForTimeShiftFile - video and audio are seen after 0.03 seconds
    116. 2010-01-18 19:03:40.406200 [6]: user:setuptv card:8 sub:0 add stream:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts.tsbuffer
    117. 2010-01-18 19:03:40.406200 [6]: RTSP: start streamer
    118. 2010-01-18 19:03:40.406200 [RTSP Streaming thread]: RTSP: Streamer started
    119. 2010-01-18 19:03:40.406200 [6]: RTSP: add stream stream8.0 file:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts.tsbuffer
    120. 2010-01-18 19:03:40.406200 [6]: Controller: StartTimeShifting started on card:8 to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live8-0.ts.tsbuffer
    121. 2010-01-18 19:03:40.476200 [Channel state thread]: Controller: DoSetChannelStates for 52 channels
    122. 2010-01-18 19:03:46.026200 [6]: TV3BlasterPlugin: Received TV Server Event "EndTimeShifting"
    123. 2010-01-18 19:03:46.026200 [6]: Controller: StopTimeShifting 8
    124. 2010-01-18 19:03:46.026200 [6]: card Hauppauge WinTV 885 BDA Tuner/Demod: StopTimeShifting user:setuptv sub:0
    125. 2010-01-18 19:03:46.026200 [6]: card: StopTimeShifting user:setuptv sub:0
    126. 2010-01-18 19:03:46.026200 [6]: card not IDLE - freeing subch: 0
    127. 2010-01-18 19:03:46.026200 [6]: subch:0-0 tswriter StopTimeshifting...
    128. 2010-01-18 19:03:46.036200 [6]: tvcard:FreeSubChannel: subchannels count 1 subch#0 keep graph=False
    129. 2010-01-18 19:03:46.036200 [6]: DVB subch:0 Decompose()
    130. 2010-01-18 19:03:46.036200 [6]: FreeSubChannel CA: freeing sub channel : 0
    131. 2010-01-18 19:03:46.036200 [6]: tvcard:FreeSubChannel : no subchannels present, stopping graph
    132. 2010-01-18 19:03:46.046200 [6]: dvb:StopGraph called
    133. 2010-01-18 19:03:46.046200 [6]: tvcard:FreeAllSubChannels
    134. 2010-01-18 19:03:46.046200 [6]: dvb:StopGraph
    135. 2010-01-18 19:03:46.046200 [6]: user:setuptv remove
    136. 2010-01-18 19:03:46.046200 [6]: Controller:Timeshifting stopped on card:8
    137. 2010-01-18 19:03:46.046200 [6]: RTSP: remove stream stream8.0
    138. 2010-01-18 19:03:46.076200 [Channel state thread]: Controller: DoSetChannelStates for 52 channels
    139. 2010-01-18 19:03:48.636200 [6]: Controller: StartTimeShifting WTTG_HD 99
    140. 2010-01-18 19:03:48.636200 [6]: Controller: find free card for channel WTTG_HD
    141. 2010-01-18 19:03:48.636200 [6]: Controller:   got 1 tuning details for WTTG_HD
    142. 2010-01-18 19:03:48.636200 [6]: Controller:   channel #1 ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    143. 2010-01-18 19:03:48.636200 [6]: Controller:    card:8 type:Atsc is available priority:8 #users:0 same transponder:False
    144. 2010-01-18 19:03:48.636200 [6]: Controller:    card:6 type:Atsc is available priority:7 #users:0 same transponder:False
    145. 2010-01-18 19:03:48.646200 [6]: Controller:    card:7 type:Atsc is available priority:6 #users:0 same transponder:False
    146. 2010-01-18 19:03:48.646200 [6]: Controller:    card:2 type:Analog cannot tune to channel
    147. 2010-01-18 19:03:48.646200 [6]: Controller:    card:3 type:Analog cannot tune to channel
    148. 2010-01-18 19:03:48.646200 [6]: Controller:    card:4 type:Analog cannot tune to channel
    149. 2010-01-18 19:03:48.646200 [6]: Controller:    card:9 type:Analog cannot tune to channel
    150. 2010-01-18 19:03:48.646200 [6]: Controller:    card:5 type:RadioWebStream is disabled
    151. 2010-01-18 19:03:48.646200 [6]: Controller: found 3 available
    152. 2010-01-18 19:03:48.646200 [6]: TV3BlasterPlugin: Received TV Server Event "StartZapChannel"
    153. 2010-01-18 19:03:48.646200 [6]: card: CardTune 8 WTTG_HD setuptv:8:-1
    154. 2010-01-18 19:03:48.646200 [6]: card: Tune 8 to WTTG_HD
    155. 2010-01-18 19:03:48.646200 [6]: card: user: setuptv:8:-1 tune ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    156. 2010-01-18 19:03:48.656200 [6]: atsc:Tune:ATSC:tv:unknown WTTG_HD Freq:301250 ONID:0 TSID:4402 SID:1501 PMT:0x5DD FTA:False LCN:10000 phys:38 maj:5 min:1 mod:Mod256Qam
    157. 2010-01-18 19:03:48.656200 [6]: atsc:using new channel tuning settings
    158. 2010-01-18 19:03:48.656200 [6]: Setting Generic ATSC modulation to Mod256Qam
    159. 2010-01-18 19:03:48.656200 [6]: GenericATSC: Set ModulationType: Mod256Qam
    160. 2010-01-18 19:03:48.656200 [6]: dvb:Submiting tunerequest Channel:WTTG_HD subChannel:-1
    161. 2010-01-18 19:03:48.656200 [6]: dvb:Getting new subchannel
    162. 2010-01-18 19:03:48.656200 [6]: dvb:GetNewSubChannel:0 #0
    163. 2010-01-18 19:03:48.656200 [6]: TvDvbChannel ctor new subchIndex:0
    164. 2010-01-18 19:03:48.656200 [6]: dvb:Submit tunerequest size:1 new:0
    165. 2010-01-18 19:03:48.666200 [6]: subch:0 OnBeforeTune
    166. 2010-01-18 19:03:48.666200 [6]: dvb:Submit tunerequest calling put_TuneRequest
    167. 2010-01-18 19:03:48.666200 [6]: dvb:Submit tunerequest done calling put_TuneRequest
    168. 2010-01-18 19:03:48.666200 [6]: dvb:SubmitTuneRequest  returns:0x1 - S_FALSECall successful, but returned FALSE
    169. 2010-01-18 19:03:48.666200 [6]: dvb:SubmitTuneRequest  failed - removing subchannel: 0
    170. 2010-01-18 19:03:48.676200 [6]: card2:setuptv 8 -1
    171. 2010-01-18 19:03:48.676200 [6]: Controller: setuptv 8 -1
    172. 2010-01-18 19:03:48.676200 [6]: TV3BlasterPlugin: Received TV Server Event "EndZapChannel"
    173.  
    In TvCardDvbBase.cs:
    Code (Text):
    1.  
    2.     /// <summary>
    3.     /// submits a tune request to the card.
    4.     /// throws an TvException if card cannot tune to the channel requested
    5.     /// </summary>
    6.     /// <param name="subChannelId">The sub channel id.</param>
    7.     /// <param name="channel">The channel.</param>
    8.     /// <param name="tuneRequest">tune requests</param>
    9.     /// <param name="performTune">Indicates if a tune is required</param>
    10.     /// <returns></returns>
    11.     protected ITvSubChannel SubmitTuneRequest(int subChannelId, IChannel channel, ITuneRequest tuneRequest,
    12.                                               bool performTune)
    13.     {
    14.       Log.Log.Info("dvb:Submiting tunerequest Channel:{0} subChannel:{1} ", channel.Name, subChannelId);
    15.       bool newSubChannel = false;
    16.       if (_mapSubChannels.ContainsKey(subChannelId) == false)
    17.       {
    18.         Log.Log.Info("dvb:Getting new subchannel");
    19.         newSubChannel = true;
    20.         subChannelId = GetNewSubChannel(channel);
    21.       }
    22.       else
    23.       {
    24.         Log.Log.Info("dvb:using existing subchannel:{0}", subChannelId);
    25.       }
    26.       Log.Log.Info("dvb:Submit tunerequest size:{0} new:{1}", _mapSubChannels.Count, subChannelId);
    27.       _mapSubChannels[subChannelId].CurrentChannel = channel;
    28.  
    29.       try
    30.       {
    31.         _mapSubChannels[subChannelId].OnBeforeTune();
    32.         if (_interfaceEpgGrabber != null)
    33.         {
    34.           _interfaceEpgGrabber.Reset();
    35.         }
    36.         if (performTune)
    37.         {
    38.           Log.Log.WriteFile("dvb:Submit tunerequest calling put_TuneRequest");
    39.           int hr = ((ITuner)_filterNetworkProvider).put_TuneRequest(tuneRequest);
    40.           Log.Log.WriteFile("dvb:Submit tunerequest done calling put_TuneRequest");
    41.           if (hr != 0)
    42.           {
    43.             Log.Log.WriteFile("dvb:SubmitTuneRequest  returns:0x{0:X} - {1}{2}", hr, HResult.GetDXErrorString(hr),
    44.                               HResult.GetDXErrorDescription(hr));
    45.             //remove subchannel.
    46.             /*if (newSubChannel)
    47.             {
    48.             _mapSubChannels.Remove(subChannelId);
    49.             }*/
    50.             throw new TvException("Unable to tune to channel");
    51.           }
    52.         }
    53.         _lastSignalUpdate = DateTime.MinValue;
    54.         _mapSubChannels[subChannelId].OnAfterTune();
    55.       }
    56.       catch (Exception)
    57.       {
    58.         if (newSubChannel)
    59.         {
    60.           Log.Log.WriteFile("dvb:SubmitTuneRequest  failed - removing subchannel: {0}", subChannelId);
    61.           if (_mapSubChannels.ContainsKey(subChannelId))
    62.           {
    63.             _mapSubChannels.Remove(subChannelId);
    64.           }
    65.         }
    66.         throw;
    67.       }
    68.  
    69.       return _mapSubChannels[subChannelId];
    70.     }
    71.  
    However, it appears as though performTune is being set to true. It seems that when timeshifting stops, the previous channel information is lost. I see that "keep graph=False" in the tv log above and then the graph stops, which is why I believe the previousChannel information is lost. The previous channel information that I am thinking of is in the following function found in TvCardATSC.cs:

    Code (Text):
    1.  
    2.  /// <summary>
    3.     /// Tunes the specified channel.
    4.     /// </summary>
    5.     /// <param name="subChannelId">The sub channel id.</param>
    6.     /// <param name="channel">The channel.</param>
    7.     /// <returns>true if succeeded else false</returns>
    8.     public ITvSubChannel Tune(int subChannelId, IChannel channel)
    9.     {
    10.       Log.Log.WriteFile("atsc:Tune:{0} ", channel);
    11.       try
    12.       {
    13.         ATSCChannel atscChannel = channel as ATSCChannel;
    14.         if (atscChannel == null)
    15.         {
    16.           Log.Log.WriteFile("atsc:Channel is not a ATSC channel!!! {0}", channel.GetType().ToString());
    17.           return null;
    18.         }
    19.         if (_graphState == GraphState.Idle)
    20.         {
    21.           BuildGraph();
    22.         }
    23.         ITvSubChannel ch;
    24.         if (_previousChannel == null || _previousChannel.IsDifferentTransponder(atscChannel))
    25.         {
    26.           Log.Log.WriteFile("atsc:using new channel tuning settings");
    27.           ITuneRequest request;
    28.           int hr = _tuningSpace.CreateTuneRequest(out request);
    29.           if (hr != 0)
    30.             Log.Log.WriteFile("atsc: Failed - CreateTuneRequest");
    31.           _tuneRequest = (IATSCChannelTuneRequest)request;
    32.           ILocator locator;
    33.           hr = _tuningSpace.get_DefaultLocator(out locator);
    34.           if (hr != 0)
    35.             Log.Log.WriteFile("atsc: Failed - get_DefaultLocator");
    36.           IATSCLocator atscLocator = (IATSCLocator)locator;
    37.           hr = atscLocator.put_SymbolRate(-1);
    38.           if (hr != 0)
    39.             Log.Log.WriteFile("atsc: Failed - put_SymbolRate");
    40.           hr = atscLocator.put_TSID(-1);
    41.           if (hr != 0)
    42.             Log.Log.WriteFile("atsc: Failed - put_TSID");
    43.           hr = atscLocator.put_CarrierFrequency((int)atscChannel.Frequency);
    44.           if (hr != 0)
    45.             Log.Log.WriteFile("atsc: Failed - put_CarrierFrequency");
    46.           hr = atscLocator.put_Modulation(atscChannel.ModulationType);
    47.           if (hr != 0)
    48.             Log.Log.WriteFile("atsc: Failed - put_Modulation");
    49.           hr = _tuneRequest.put_Channel(atscChannel.MajorChannel);
    50.           if (hr != 0)
    51.             Log.Log.WriteFile("atsc: Failed - put_Channel");
    52.           hr = _tuneRequest.put_MinorChannel(atscChannel.MinorChannel);
    53.           if (hr != 0)
    54.             Log.Log.WriteFile("atsc: Failed - put_MinorChannel");
    55.           hr = atscLocator.put_PhysicalChannel(atscChannel.PhysicalChannel);
    56.           if (hr != 0)
    57.             Log.Log.WriteFile("atsc: Failed - put_PhysicalChannel");
    58.           hr = _tuneRequest.put_Locator(locator);
    59.           if (hr != 0)
    60.             Log.Log.WriteFile("atsc: Failed - put_Locator");
    61.           //set QAM paramters if necessary...
    62.           _conditionalAccess.CheckATSCQAM(atscChannel);
    63.           ch = SubmitTuneRequest(subChannelId, channel, _tuneRequest, true);
    64.           _previousChannel = atscChannel;
    65.         }
    66.         else
    67.         {
    68.           Log.Log.WriteFile("atsc:using previous channel tuning settings");
    69.           ch = SubmitTuneRequest(subChannelId, channel, _tuneRequest, false);
    70.         }
    71.         try
    72.         {
    73.           RunGraph(ch.SubChannelId);
    74.         }
    75.         catch (TvExceptionNoSignal)
    76.         {
    77.           FreeSubChannel(ch.SubChannelId);
    78.           throw;
    79.         }
    80.         return ch;
    81.       }
    82.       catch (Exception ex)
    83.       {
    84.         Log.Log.Write(ex);
    85.         throw;
    86.       }
    87.     }
    88.  
    The following issues also look to be similar:
    https://forum.team-mediaportal.com/1-0-final-svn-builds-303/tv-recording-streaming-52534/
    https://forum.team-mediaportal.com/...-returns-0x1-vista-tv-pack-windows-7-a-52250/


    Devs, is this really the desired behaviour?

    After more investigation, I believe I found the culprit for the graph being stopped.

    In TvCardBase.cs:
    Code (Text):
    1.  
    2.     /// <summary>
    3.     /// Frees the sub channel.
    4.     /// </summary>
    5.     /// <param name="id">Handle to the subchannel.</param>
    6.     public virtual void FreeSubChannel(int id)
    7.     {
    8.       FreeSubChannel(id, false);
    9.     }
    10.  
    The code for DVB seems to have a lot of calls with just FreeSubChannel(id); what would be side effects of changing false to true?

    I believe this link is another report of the same issue:
    https://forum.team-mediaportal.com/...radio-channel-after-stopped-71793/#post534809
     
  4. jaymode

    jaymode Portal Pro

    Joined:
    July 31, 2008
    Messages:
    58
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    I found another user with the same problem, who fixed it by disabling UAC and setting the cards to ATSC. I attempted this but was not met with much success. When my ATSC cards are set to ATSC, the graphs are unable to build and I get the following output in my TV Server error log:

    Code (Text):
    1.  
    2. 2010-01-20 07:16:34.466800 [6]: dvb:  No TVTuner installed
    3. 2010-01-20 07:16:34.482400 [6]: Exception   :TvLibrary.TvException: No TVTuner installed
    4.    at TvLibrary.Implementations.DVB.TvCardDvbBase.AddAndConnectBDABoardFilters(DsDevice device)
    5.    at TvLibrary.Implementations.DVB.TvCardATSC.BuildGraph()
    6.  
    7. 2010-01-20 07:16:34.638400 [6]: Exception   :TvLibrary.TvExceptionGraphBuildingFailed: Graph building failed ---> TvLibrary.TvException: No TVTuner installed
    8.    at TvLibrary.Implementations.DVB.TvCardDvbBase.AddAndConnectBDABoardFilters(DsDevice device)
    9.    at TvLibrary.Implementations.DVB.TvCardATSC.BuildGraph()
    10.    --- End of inner exception stack trace ---
    11.    at TvLibrary.Implementations.DVB.TvCardATSC.BuildGraph()
    12.    at TvLibrary.Implementations.DVB.TvCardATSC.Tune(Int32 subChannelId, IChannel channel)
    13.  
    14. 2010-01-20 07:16:34.638400 [6]: Exception   :TvLibrary.TvExceptionGraphBuildingFailed: Graph building failed ---> TvLibrary.TvException: No TVTuner installed
    15.    at TvLibrary.Implementations.DVB.TvCardDvbBase.AddAndConnectBDABoardFilters(DsDevice device)
    16.    at TvLibrary.Implementations.DVB.TvCardATSC.BuildGraph()
    17.    --- End of inner exception stack trace ---
    18.    at TvLibrary.Implementations.DVB.TvCardATSC.BuildGraph()
    19.    at TvLibrary.Implementations.DVB.TvCardATSC.Tune(Int32 subChannelId, IChannel channel)
    20.    at TvLibrary.Implementations.Hybrid.HybridCardGroup.Tune(Int32 subChannelId, IChannel channel)
    21.    at TvLibrary.Implementations.Hybrid.HybridCard.Tune(Int32 subChannelId, IChannel channel)
    22.    at TvService.CardTuner.Tune(User& user, IChannel channel, Int32 idChannel)
    23.  
    24. 2010-01-20 07:19:03.930400 [14]: Exception   :TvLibrary.TvException: Unable to tune to channel
    25.    at TvLibrary.Implementations.DVB.TvCardDvbBase.SubmitTuneRequest(Int32 subChannelId, IChannel channel, ITuneRequest tuneRequest, Boolean performTune)
    26.    at TvLibrary.Implementations.DVB.TvCardATSC.Tune(Int32 subChannelId, IChannel channel)
    27.  
    28. 2010-01-20 07:19:03.930400 [14]: Exception   :TvLibrary.TvException: Unable to tune to channel
    29.    at TvLibrary.Implementations.DVB.TvCardDvbBase.SubmitTuneRequest(Int32 subChannelId, IChannel channel, ITuneRequest tuneRequest, Boolean performTune)
    30.    at TvLibrary.Implementations.DVB.TvCardATSC.Tune(Int32 subChannelId, IChannel channel)
    31.    at TvLibrary.Implementations.Hybrid.HybridCardGroup.Tune(Int32 subChannelId, IChannel channel)
    32.    at TvLibrary.Implementations.Hybrid.HybridCard.Tune(Int32 subChannelId, IChannel channel)
    33.    at TvService.CardTuner.Tune(User& user, IChannel channel, Int32 idChannel)
    34.  
     
  5. kkozma

    kkozma Portal Pro

    Joined:
    February 16, 2009
    Messages:
    189
    Likes Received:
    6
    Occupation:
    Network Engineer
    Location:
    Dayton, OH
    Ratings:
    +6 / 0
    Home Country:
    United States of America United States of America
    UAC didn't have anything to do with it but I still left it disabled since it's more annoying than useful. When I changed both tuners of my hdhomerun to use atsc instead of generic provider it works with the latest svn... Go figure.

    Another thing I observed is that this issue is not present with windows xp. My xp test machine worked perfectly out of the box with mp 1.1 whereas I can't even get it tune tune channels without an svn under windows 7.
    Posted via Mobile Device
     
    • Like Like x 1
  6. jaymode

    jaymode Portal Pro

    Joined:
    July 31, 2008
    Messages:
    58
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
  7. jaymode

    jaymode Portal Pro

    Joined:
    July 31, 2008
    Messages:
    58
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    Sorry to reply to myself so many times, but I figured I would post an update. I formatted and did a clean install of Vista (in place of Windows 7) and did not install the TV pack and everything is now working. My feeling is that this is still a Vista TV Pack/Windows 7 issue with ATSC cards.
     
  8. bnsaflsujt

    bnsaflsujt Portal Pro

    Joined:
    January 12, 2010
    Messages:
    60
    Likes Received:
    3
    Ratings:
    +3 / 0
    Home Country:
    United States of America United States of America
    I would like to add my system to the pool of problem systems! I just got a new HVR-2250, and it hasn't recorded a single show since the ATSC tuners were added. Same thing, if it tries to tune consectutively (even if there is time after it has disconnected from the tuner) a different/same minor channel within a major channel, I get a "Unknown error".

    I am still new to the mediaportal scene, so if you need error logs or such from me, just let me know, and I will post them!

    Sincerely,
    James
     
  9. bnsaflsujt

    bnsaflsujt Portal Pro

    Joined:
    January 12, 2010
    Messages:
    60
    Likes Received:
    3
    Ratings:
    +3 / 0
    Home Country:
    United States of America United States of America
    OK, I'm back;

    I tried a few things like changing tuning type to ATSC from Generic in the card properties dialog in TV Server, and that didn't help. When I changed it to ATSC and tried to tune, I would just get a Can not create graph error. I switched it back to Generic, because I had a better time with that. This problem is a large one in my case, as the card will not tune 2 consecutive tunings on the same major channel. even if the minor is different! The only way to get it to is to put some other major channel change in between. I found the logs that I needed to post (I think). I would really appreciate getting some help on this issue, because as it stands, this will break about 100 of my upcoming 300 recordings, because they are on the same major channel group, and as I said before, it doesn't matter if one show ends and another begins in 3 hours on a different minor, it will still give an error when it tries to start.

    I cleared my logs first, and tried to tune several different channels in a row. The first ones are all on the same major channel, with different minors. The last one is on a different major, which allowed it to tune. Hopefully, this will be enough for someone to fix the source of the problem. If someone needs help, I am willing to try, but I only have limited knowledge when it comes to programming.

    Thanks in advance!

    P.S> I have the current SVN 1-31-10 installed, and that is where these logs came from... This problem was also in the last SVN 1-08-10.

    View attachment 54757
     
  10. elliottmc
    • Team MediaPortal

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi,

    It would be useful to know if anyone is using this card with no problems at all.

    Maybe MP is not yet compatible with this card, or some versions of drivers are not. In theory the TV server should work with all TV cards, but there are bound to be problems.

    Have you tried contacting Hauppauge support? They can be very helpful in forums.

    If it is a compatibility issue, it might take a while to resolve, as not many of the developers are familiar with this aspect.

    Best wishes,

    Mark
     
  11. bnsaflsujt

    bnsaflsujt Portal Pro

    Joined:
    January 12, 2010
    Messages:
    60
    Likes Received:
    3
    Ratings:
    +3 / 0
    Home Country:
    United States of America United States of America
    Let me clarify a little more as well, this issue happens with all 4 tuners on both my Hauppage HVR-2250, and ASUS EHD-100 tuner cards. Each tuner can only tune one major channel, before having to switch to another major channel, before it can tune the first major channel again (any minor channel).
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!