Make delay one stream, not all

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

Make delay one stream, not all

Johan Basore
Hello everyone,

I am building a player with gstreamer. I can't find out a way to implement this.
I have two streams from a filsrc, video stream and audio stream. audio must be played 3 seconds later than video stream. I am using c api.

How can I do this?
Reply | Threaded
Open this post in threaded view
|

Re: Make delay one stream, not all

Sebastian Dröge-3
On Mi, 2016-04-27 at 18:24 -0700, Johan Basore wrote:
> Hello everyone,
>
> I am building a player with gstreamer. I can't find out a way to implement
> this.
> I have two streams from a filsrc, video stream and audio stream. audio must
> be played 3 seconds later than video stream. I am using c api.
>
> How can I do this?

There's the ts-offset property on all sinks, that can be used for this
in many cases. For the more general case, see gst_pad_set_offset()
which would already work before sinks.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Make delay one stream, not all

Johan Basore
Thanks for your answer,
But I am using adder. It's not works with adder.
Reply | Threaded
Open this post in threaded view
|

Re: Make delay one stream, not all

Sebastian Dröge-3
On Do, 2016-04-28 at 20:45 -0700, Johan Basore wrote:
> Thanks for your answer,
> But I am using adder. It's not works with adder.

Yes, adder does not implement any synchronization of the input streams
at all. You need to use audiomixer and then can use the pad offsets.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment