Action of property ts-offset in filesink?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Action of property ts-offset in filesink?

Albert Costa
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?

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Action of property ts-offset in filesink?

Wim Taymans
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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel