News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Bug vompserver on certain vdr-1.7.11 streams

Started by dingo35, February 04, 2010, 09:06:35

Previous topic - Next topic

hondansx

Quote from: MartenR on February 22, 2010, 15:13:20
Wait, in the moment this fix is not online in the HDTV version, I will generate later a newer build.

Edit: Now it is online

Marten

Is there any patch for testing?

Thanks
GA-EP43 | headless | 1xCineS2 Dual | 1xSkystar 2.6D | VDR 1.7.37 
Frontend: 1xRasperry | 1xION3

dingo35


MartenR

The following patches are not in cvs (but should appear there finally):
1) Patch file attached. (Includes the patch reported earlier).
2) For the second problem, but it lacks something for the mvp, which sets the pts to zero, if nonsense is reported during startup: (I have currently no mvp availiable)
ULLONG VideoWin::getCurrentTimestamp()
{
   REFERENCE_TIME startoffset;
   REFERENCE_TIME ncr_time;
  if (iframemode) return 0; //Not in iframe mode!
  if (!dsrefclock || !sourcefilter) return 0;
   FILTER_STATE state;
   sourcefilter->GetState(10,&state);

   if (state==State_Running) dsrefclock->GetTime(&cr_time);
   ncr_time=cr_time;
  startoffset=sourcefilter->getStartOffset();
    if (startoffset==0) return 0;
   ncr_time-=startoffset;
   ncr_time-=lastreftimeRT;
/* ULLONG result=frameNumberToTimecode(
    VDR::getInstance()->frameNumberFromPosition(lastreftimeBYTE));*/
   long long result=lastreftimePTS;
   result+=(ULLONG)(ncr_time/10000LL*90LL);

    if (result<0) result=(1LL << 33)-result;
  return result;

}
The problem here was, that during startup nonsense values occurred, so that the pts_map in demuxerts was flushed. In this case the function returns zero and demuxerts will skip it, if called with zero:

ULONG DemuxerTS::getFrameNumFromPTS(ULLONG pts)
{
  ULLONG difference = (1LL<<33);
  ULONG ref_frame = 0;
  int total = 0, actual = 0;
  if (pts==0) return 0; //we are in startup


Marten

MartenR

Maybe I should clarify what the problem is, if there is any pts value which makes no sense, it probaly will flush the pts_map in the demuxer. So maybe it has to be fixed there and I am only fixing synptoms.

Maybe Mark or Chris have an better idea.

Marten

hondansx

Quote from: dingo35 on February 23, 2010, 21:50:06
I found newest client: http://forum.loggytronic.com/index.php?action=dlattach;topic=507.0;attach=188.

Shall I generate patch to update Yaris version or will you do that?

Hi Dingo,

would be nice, if you could.
BTW the URL you posted includes only a exe file.
GA-EP43 | headless | 1xCineS2 Dual | 1xSkystar 2.6D | VDR 1.7.37 
Frontend: 1xRasperry | 1xION3

dingo35

Exe file is from Marten ... updates on Yaris version in other thread.