reading, parsing and outputting a TS file synchronously ?

Thiago Santos thiagoss at
Tue Jun 2 19:24:27 PDT 2015

On 06/02/2015 09:26 PM, Peter Maersk-Moller wrote:
> Hi.
> I was expecting that I could read, parse and output a TS file 
> synchronously using a pipeline like this:
>   gst-launch-1.0  filesrc location=../Downloads/OC3.demo.ts  ! queue  
> ! tsparse ! fakesink sync=1
> but what I see is that the pipeline reads the file, parse it and send 
> it to the fakesink as fast as the hardware supports. That is, it does 
> not decode the timestamps in the PES header and send it out 
> synchrosnously although the sync flag has been set.
> Obviously fakesink is to be replaced by something else like a filesink 
> to a pipe or a udpsink or .....
> What is the correct way for GStreamer to playout a TS file 
> synchronously without having to decode and re-encode it? The module 
> decodebin can obviously decode it synchronously.

The problem is that tsparse doesn't timestamp the buffers so sink 
elements won't be able to sync. A fix for tsparse is needed to have this 

> The ts testfile is available from Opencaster a
> Best regards
> Peter MM
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list