[linux-dvb] How to convert MPEG-TS to MPEG-PS on the fly?

Josef Wolf jw at raven.inka.de
Wed Aug 27 00:45:19 CEST 2008


On Tue, Aug 26, 2008 at 05:00:18AM -0700, barry bouwsma wrote:

> For laughs, I now converted a short BBC-Four TS I had recorded as
> a test with `ts2ps', and there, the PTS/DTS are present in the PS
> and match those seen in the TS...
> 
>      ==> system_clock_reference_base: 859961626 (0x3341f91a)  [= 90 kHz-Timestamp: 2:39:15.1291]

This is a PS pack header, right?

>          ==> PTS: 5154932522 (0x13342072a)  [= 90 kHz-Timestamp: 15:54:37.0280]
>          ==> DTS: 5154921721 (0x13341dcf9)  [= 90 kHz-Timestamp: 15:54:36.9080]
>          ==> PTS: 5154925321 (0x13341eb09)  [= 90 kHz-Timestamp: 15:54:36.9480]
>          ==> PTS: 5154928921 (0x13341f919)  [= 90 kHz-Timestamp: 15:54:36.9880]

Are those PES headers from audio or from video?  Noticed the hop here?

>      ==> system_clock_reference_base: 859937348 (0x33419a44)  [= 90 kHz-Timestamp: 2:39:14.8594]

PS pack header again? Hop backwards from previous pack header?

>          ==> PTS: 5154908244 (0x13341a854)  [= 90 kHz-Timestamp: 15:54:36.7582]
>          ==> PTS: 5154943322 (0x13342315a)  [= 90 kHz-Timestamp: 15:54:37.1480]
>          ==> DTS: 5154932521 (0x133420729)  [= 90 kHz-Timestamp: 15:54:37.0280]
>          ==> PTS: 5154936121 (0x133421539)  [= 90 kHz-Timestamp: 15:54:37.0680]
>          ==> PTS: 5154939721 (0x133422349)  [= 90 kHz-Timestamp: 15:54:37.1080]
>          ==> PTS: 5154954122 (0x133425b8a)  [= 90 kHz-Timestamp: 15:54:37.2680]

Again hops.  Have you tried to play this stream with vlc?

BTW: what is the DTS good for?  Isn't PTS the relevant time for playbacK?
     What difference does it make when a frame was decoded as long as it
     is presented at the correct time?

     And what is the SCRB good for?  I am totally confused by all those times.



More information about the linux-dvb mailing list