[Mplayer-dvb] MPEG-PES in error?

Arpi arpi at thot.banki.hu
Wed Oct 9 01:08:10 CEST 2002


Hi,

>   {PTS_err:1}
>   {PTS_err:1}
>   {PTS_err:1}

> I think the problem resides in the mpeg demuxer (demux_mpg.c) because the
> generated grab.mpg file looks correct. (except the a/v out-of-sync but

actually the error was everywhere :)
the generated mpg file was bad, the PTS flag was set even if no PTS was
stored, causing the above error and dropped 80% of audio frames.
anyway the stream was still correct, more-or-less, as teh header size was 0,
so even if PTS flag was set, 0 bytes can't hold PTS, but due to a demuxer
bug it tried to read the PTS...
also, the codec couldn't detect and handle streams with non-48khz audio
(DVB can play 32k, 44.1k, 48k and 96kHz). it's also fixed.

now it plays its own mpg files, both on screen and via DVB.
i see small (<0.2s) a-v desync at playback, but have no idea about the
reason yet :(
anyway it's easy to correct with -delay 0.2

> maybe test_av.c is just to crappy to play it in sync anayway?:p) and while
test.avi does nothing with mpeg parsing, it sends the stream as-is to the
card. and the card seems to ignored the PTS error... or maybe didn't and it
caused the A-V desync? hmm.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dvb mailing list