On Mon 21.06.2004 at 11:06:25PM +0200, Dirk Meyer wrote: > Matthieu Weber wrote: > > Or scanning the beginning, the end, and if the end is lower than the > > begining (i.e. a reset happened), try to find the place of the reset by > > dichotomy. It might also be that the reset always happen at the same time, > > and in this case, knowing this time is enough to calculate the length. > > I can try to check when the reset occurs, and find out if the value is > > always the same. > > Right now, I don't understand the timing stuff at all. There may be a > time value in the ts, but not in my 3 test streams. And the way to > extract the value from the pes looks very bad (which of the three or > four variables must I use?). There is also a time value in the mpeg > inside the pes.
>From what I have understood, there is no time stamp in the TS packet (http://erg.abdn.ac.uk/research/future-net/digital-video/mpeg2-trans.html#MPEG-TS) but there are two in the PES header: PTS = presentation time stamp, which is the time when the frame must be played, DTS (optional) = decode time stamp, which is the time when the frame must be decoded. I would say that only the PTS is important in our case. This can be usefule too: http://dvd.sourceforge.net/dvdinfo/pes-hdr.html > CALL THE PROTOCOL POLICE! > > Why do people do that? :) Matthieu -- (~._.~) Matthieu Weber - Université de Jyväskylä (~._.~) ( ? ) email : [EMAIL PROTECTED] ( ? ) ()- -() public key id : 452AE0AD ()- -() (_)-(_) "Humor ist, wenn man trotzdem lacht (Germain Muller)" (_)-(_) ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users