[gst-devel] Action of property ts-offset in filesink?

Wim Taymans wim.taymans at gmail.com
Mon Jul 12 17:56:58 CEST 2010


On Mon, 2010-07-12 at 15:47 +0000, Albert Costa wrote:
> Hi,
> I want to offset the timestamps in a video I'm writing to file:
> 
> 
> gst-launch ksvideosrc ! ffmpegcolorspace ! ffenc_mpeg2video !
> mpegtsmux ! filesink location=video.ts ts-offset=500000000
> 
> 
> However, If I dump the timestamps of my file once written:
> gst-launch-0.10.exe filesrc location=video.ts ! decodebin ! identity !
> fakesink -v
> 
> 
>  it seems it never took care of the offset (I've tried with + and -
> values to check), and starts at 0 anyway... Is this property working,
> or am I doing something wrong?

The property is working but it doesn't do what you think it does, it
can't be used to modify the timestamps of a stream. It is used when
synchronizing against the clock (which filesink doesn't even do by
default).

Wim


> 
> 
> Regards,
> Al
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel






More information about the gstreamer-devel mailing list