Fail to correctly record 2 channels on same tuner (2 Viewers)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Okay this is rapidly starting to get very complicated!
    I think that starting a new stream may cause a glitch in existing streams like you see in live TV (since they will all be scrambled for a moment). This may be what is messing up the timecodes and making playback stop at the wrong times. That means it is more important than I first thought to fix that issue...

    Do you think that could be true?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Keep in mind: There is a bug with playing channels from real time which you are already recording. 0003210: [TV Streams] Button in MyTv is no longer working as expected due to changes in card allocation code - MediaPortal Bugtracker

    At least i think that is also the case for recordings.

    That does seem to be a factor - from the logs it seems like MP can't start timeshifting in an existing stream (recording or timeshifting) unless it tunes with a tuner. Playing back a recording is a little different, but the problem seems to manifest with the seeking/timecode issues there...
     

    melstig

    Portal Pro
    July 16, 2006
    129
    12
    Umea
    Home Country
    Sweden Sweden
    Okay this is rapidly starting to get very complicated!
    I think that starting a new stream may cause a glitch in existing streams like you see in live TV (since they will all be scrambled for a moment). This may be what is messing up the timecodes and making playback stop at the wrong times. That means it is more important than I first thought to fix that issue...

    Do you think that could be true?

    That could be the case, sometimes it workes and sometimes it's not. A moment ago I tried to record on TV3 and Kanal5 at the same time, and the second recording failed after a while. Tried once again and now it is recording as it should.

    Keep in mind: There is a bug with playing channels from real time which you are already recording. 0003210: [TV Streams] Button in MyTv is no longer working as expected due to changes in card allocation code - MediaPortal Bugtracker

    At least i think that is also the case for recordings.

    That might explain that behaviour.

    Is there anything specific you would like me to test? Are there any utilities you are using to verify the TS-files?

    br
    melstig
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Okay this is rapidly starting to get very complicated!
    I think that starting a new stream may cause a glitch in existing streams like you see in live TV (since they will all be scrambled for a moment). This may be what is messing up the timecodes and making playback stop at the wrong times. That means it is more important than I first thought to fix that issue...

    Do you think that could be true?

    That could be the case, sometimes it workes and sometimes it's not. A moment ago I tried to record on TV3 and Kanal5 at the same time, and the second recording failed after a while. Tried once again and now it is recording as it should.
    I'm going to try and look into this before I go to bed but it is already almost 2:30 am (I stayed up all last night to help you so quite tired ;)).

    Is there anything specific you would like me to test? Are there any utilities you are using to verify the TS-files?
    I use TransEdit which is a tool that comes with DVBViewer. There is also a TsPacketChecker tool available from MediaPortal's SVN (attached). TransEdit is much more comprehensive and complicated though.

    Testing? You've done a lot of multi-channel decryption testing already. I'm going to have to get back to you about that once you've had a chance to analyse the TS files and I've had a chance to see if I can solve/improve the glitch situation. I think I've found the problem with the other code that I added, so can you please try the attached version. All you need to do is install it, clear logs, restart the TV Server then post logs for this one (multi-channel decryption is untouched).
     

    Attachments

    • TVLibrary(v1.04)[Twinhan_improvements_1.1.2].zip
      151.6 KB
    • TsPacketChecker.zip
      21.5 KB

    melstig

    Portal Pro
    July 16, 2006
    129
    12
    Umea
    Home Country
    Sweden Sweden
    Hi,
    I was just wondering if your location in your profile was wrong, but now I understand that it is correct :)

    Made a quick analyze of a short faulty recording, see attached files.

    I will try the new dll, thanks again.

    br
    melstig
     

    Attachments

    • TsPacketCheck.txt
      13.6 KB
    • TsPacketCheck.xml
      1.4 KB

    melstig

    Portal Pro
    July 16, 2006
    129
    12
    Umea
    Home Country
    Sweden Sweden
    Hi,
    There may me something wrong with the new dll and standby. Each time the system has been to sleep the tuners are listed as *Unknown* by TVServer. The first logs are from the last resume. The same problem occured with earlier dlls also as I described briefly in an earlier post.

    In Windows device manager the tuners are all visible. Started TerraTec Home Cinema and the H7 worked in that program for TV3.

    If I from TVServer config stops and starts the service, the configuration program hangs or at least are really busy with something. A message thens pops up that says that "Unable to access TVService. Is the tvservice running." In windows service I can see that the service has restarted. If I then closes the config and starting it, everything seems ok. The later logs are from this operation.

    br
    melstig
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi melstig

    I think the issue with standby could be one of two things:
    1. TV Server tries to start before the tuner drivers have reloaded.
    2. Your TV Server IP address changes.

    For the first issue: try adding a delay on TV Server tuner detection:

    1. Open TV Server configuration.
    2. Go to the "general" section.
    3. Increase the "delay in seconds before TV Server detects cards" to 90 (1.5 minutes).

    If that works, then you could try reducing the time to 60s, 45s etc.

    For the second issue: do you have a dynamic (automatic - DHCP) IP address from your router? Try setting up a static IP address. I'd only do this after you've tried the first thing.

    Please remember I'm still waiting for startup-and-first-tune-on-the-H7 logs from you. I can't do anything more until I get them, and I have lots of things I want to try ;)
     

    melstig

    Portal Pro
    July 16, 2006
    129
    12
    Umea
    Home Country
    Sweden Sweden
    Hi,
    Did some tests before I got your last post. I unchecked the reinitialize service on resume in power scheduler and this morning it worked as it should. TVServer had not lost its tunders. Logs in this post are from a succesful resume withe tuners working afterwards.

    What is the difference in reinitialize tuners and restarting the service?

    If increasing the detection timer, would this not make TV unavailable for 90s? Not a preffered solution but for debugging it is ok of course. :)

    Earlier I had problems with a change of DHCP-address after a long resume, but now this is not the issue now.

    Will try to send you clean logs with the issue with first time tuning on the H7. I thought I made this already :)

    br
    melstig
     

    Users who are viewing this thread

    Top Bottom