Nico Sabbi a écrit : > On Tuesday 29 July 2008 15:01:39 Markus Rechberger wrote: >> On Tue, Jul 29, 2008 at 2:38 PM, loody <miloody@xxxxxxxxx> wrote: >>> Dear all: >>> I study 13818-1 recently, but I cannot understand the whole flow >>> of PCR, PTS and DTS. >>> Would someone please tell me where I can get any open TS-player >>> or part of source code which can help me to figure this part out? >>> ps:I have check ffmpeg and vcl, and both of them seem cannot play >>> TS directly. >> you could use mplayer. > > it's the most messy player around and also the least academical ;) > ffmpeg is much cleaner, but it doesn't expose how to use > PCR wrt to DTS and PTS. > To make it short: you can consider the PCR your "wallclock", > the DTS and the PTS are then timestamps when you should > begin to decode and display, respectively. > In a stream the DTS and PTS are always > PCR, thus you > have to buffer packets (PES payloads) and dispatch each packet whose > [PD]TS is <= last PCR seen to the respective decoder/player > Btw if vlc can't play a TS file then there's a problem in your computer since I've been using it for a very long time and it works perfectly fine to me (able to read a full TS from DVB-S, Demux it, presents the list of the services within the stream on the top menu, a.s.o.) -- CAND Frederic Product Manager ANEVIA _______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb