Slow Channel Change (1 Viewer)

limpwhizkid

Retired Team Member
  • Premium Supporter
  • February 22, 2008
    575
    77
    on your IPC$
    Home Country
    Netherlands Netherlands
    Hi Guys,

    Mixed results I'm afraid.

    The good news is that Free to Air (even FTA HD) channels are now zapping quickly (3 seconds)

    The bad news is that my subscription channels are still at 12 seconds, and sometimes when I change channel, the picture will freeze, but sometimes the sound of the next channel will play. It corrects itself after 30 seconds or so - but sometimes I get "cannot start timeshifting - no video / audio"

    I am using the Hadu plugin.

    Please find my logs attached.

    Regards

    Sohail

    ok sorry, havent seen that you are using sat... and subscription.. (i dont have that)
    change back the unscrambled to 5 seconds.. since i think that subscription takes some more time to validate..

    it shouldnt actually have any effect on the faster zapping now..
    thats done with the wait for timeshift file..
    the wait for unscrambled is the thing i shouldnt have mentioned :) it doesnt do anything for faster zapping, i only mentioned it because i changed that too..
    but i am on digital cable.. no way to compare..
     

    limpwhizkid

    Retired Team Member
  • Premium Supporter
  • February 22, 2008
    575
    77
    on your IPC$
    Home Country
    Netherlands Netherlands
    if want want even faster zapping.. change to 2 sec "wait for timeshift file"
    if you get errors.. change the size to 128 mbit.. and double the 20 to 40 max files..
    then you zap in 2 secs :D

    p.s. i dont know the "hadu plugin" ...
     
    Last edited:

    limpwhizkid

    Retired Team Member
  • Premium Supporter
  • February 22, 2008
    575
    77
    on your IPC$
    Home Country
    Netherlands Netherlands
    PS StandbyWakeup(22)]: PS: Cannot register client's PowerScheduler as RemoteStandbyHandler / RemoteWakeupHandler: Unable to connect to the remote server
    2012-10-30 17:50:37.810743 [Debug][PS StandbyWakeup(22)]: PS: Signal time of last user activity (17:50:35) to the local TvServer
    2012-10-30 17:50:41.816972 [Debug][PS StandbyWakeup(22)]: PS: LoadSettings()
    2012-10-30 17:50:45.819201 [Info.][PS StandbyWakeup(22)]: PS: Cannot connect to local tvservice to load settings
    that doesnt seem right...
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    if want want even faster zapping.. change to 2 sec "wait for timeshift file"
    if you get errors.. change the size to 128 mbit.. and double the 20 to 40 max files..
    then you zap in 2 secs :D

    Those don't have anything to do with the zapping speed. "wait for timeshift file" is a timeout where TVE gives up if no A/V streams haven't been seen.
     

    limpwhizkid

    Retired Team Member
  • Premium Supporter
  • February 22, 2008
    575
    77
    on your IPC$
    Home Country
    Netherlands Netherlands
    if want want even faster zapping.. change to 2 sec "wait for timeshift file"
    if you get errors.. change the size to 128 mbit.. and double the 20 to 40 max files..
    then you zap in 2 secs :D

    Those don't have anything to do with the zapping speed. "wait for timeshift file" is a timeout where TVE gives up if no A/V streams haven't been seen.

    i was waiting for you to drop by on this.. :D...

    all i can say.. it works for me... the wait for timeshift directly relates to my wait time... between channel zapping
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Those don't have anything to do with the zapping speed. "wait for timeshift file" is a timeout where TVE gives up if no A/V streams haven't been seen.

    i was waiting for you to drop by on this.. :D...

    all i can say.. it works for me... the wait for timeshift directly relates to my wait time... between channel zapping

    Code is quite straight forward when it comes to that setting:

    Code:
    _waitForTimeshifting = Int32.Parse(layer.GetSetting("timeshiftWaitForTimeshifting", "15").Value);
    Code:
    int waitForEvent = _waitForTimeshifting * 1000; // in ms

    Code:
    Log.Write("card: WaitForFile - waiting _eventAudio & _eventVideo");
    // block until video & audio PIDs are seen or the timeout is reached
    if (_eventAudio.WaitOne(waitForEvent, true))
    {
      if (IsTuneCancelled())
      {
     return false;
      }
      if (_eventVideo.WaitOne(waitForEvent, true))
      {
     if (IsTuneCancelled())
     {
       Log.Write("card: WaitForFile - Tune Cancelled");
       return false;
     }
     // start of the video & audio is seen
     TimeSpan ts = DateTime.Now - timeStart;
     Log.Write("card: WaitForFile - video and audio are seen after {0} seconds", ts.TotalSeconds);
     return true;
      }
    ...

    All it does is changes the timeout how long TVE is waiting for the audio and video streams until it gives up. To check the plasebo look for the:

    card: WaitForFile - video and audio are seen after {0} seconds

    in the logs and test zapping with both 15 second and 2 second settings (repeat the test with same channel change for 10 times per setting and calculate average).
     

    limpwhizkid

    Retired Team Member
  • Premium Supporter
  • February 22, 2008
    575
    77
    on your IPC$
    Home Country
    Netherlands Netherlands
    Those don't have anything to do with the zapping speed. "wait for timeshift file" is a timeout where TVE gives up if no A/V streams haven't been seen.

    i was waiting for you to drop by on this.. :D...

    all i can say.. it works for me... the wait for timeshift directly relates to my wait time... between channel zapping

    Code is quite straight forward when it comes to that setting:

    Code:
    _waitForTimeshifting = Int32.Parse(layer.GetSetting("timeshiftWaitForTimeshifting", "15").Value);
    Code:
    int waitForEvent = _waitForTimeshifting * 1000; // in ms

    Code:
    Log.Write("card: WaitForFile - waiting _eventAudio & _eventVideo");
    // block until video & audio PIDs are seen or the timeout is reached
    if (_eventAudio.WaitOne(waitForEvent, true))
    {
      if (IsTuneCancelled())
      {
    return false;
      }
      if (_eventVideo.WaitOne(waitForEvent, true))
      {
    if (IsTuneCancelled())
    {
      Log.Write("card: WaitForFile - Tune Cancelled");
      return false;
    }
    // start of the video & audio is seen
    TimeSpan ts = DateTime.Now - timeStart;
    Log.Write("card: WaitForFile - video and audio are seen after {0} seconds", ts.TotalSeconds);
    return true;
      }
    ...

    All it does is changes the timeout how long TVE is waiting for the audio and video streams until it gives up. To check the plasebo look for the:

    card: WaitForFile - video and audio are seen after {0} seconds

    in the logs and test zapping with both 15 second and 2 second settings (repeat the test with same channel change for 10 times per setting and calculate average).

    i dont want to argue with the boss :D...

    i cant help it, even though i can read the code and you are right with your conclusion based on that code, its just faster if i change it anyway.
    it seems to work for the topic starter as well .. zapping is faster.
    Only the first time i Tune if nothing has played , its not that fast, after that, zapping is within 2/3 secs max and really faster..
     

    Sohail Juna

    MP Donator
  • Premium Supporter
  • October 8, 2012
    55
    6
    United Kingdom
    Home Country
    United Kingdom United Kingdom
    Hey guys,

    OK thanks for this.

    So, I have reverted back to the following TimeShift settings:

    Minimum 6
    Maximum 20
    Filesize 256
    Wait for unscrambled 5
    Wait for timeshifting file 5
    Maximum cards to try 0
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    Bad news....Discussing MDAPI (external CAM plugins/card sharing) is not permitted on here.

    You will need to take the issue offline/private.

    Thanks,

    J.
     

    Users who are viewing this thread

    Top Bottom