Synchronize audio and video stream from hardware

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

Synchronize audio and video stream from hardware

BogdanS
I have two different cards (audio and video) with two different process. I want to do something like watchdog. I mean if one process are crashing  and don't output data, second will not process data.

Something like resender that will put to wait process until second starts to send frames.

Can I do it with gstreamer?

Reply | Threaded
Open this post in threaded view
|

Re: Synchronize audio and video stream from hardware

Mikl
Hello, Bogdan

You can do something like this using GStreamer, but i am not sure, what it is right tool to do this.

You can put both of your streams in decoder. Until decoder will not get both buffers, it will not produce coded frame.
This way you can block output.

But, personally, i will look for another solution.
Reply | Threaded
Open this post in threaded view
|

Re: Synchronize audio and video stream from hardware

BogdanS
Thank you . Did you mean encoder? Pipeline like this?

video hardware----h264-----queue max buffers=10---|                                   |----udpsink

                                                                             -- avimux---avidemux--

audiohardware----g711-----queue max buffers=10---|                                    |----udpsink
Reply | Threaded
Open this post in threaded view
|

Re: Synchronize audio and video stream from hardware

Mikl

Hello, Bogdan


Yes. I mean something like this.


But, if i understand correctly,  you want to use gstreamer as a "dispatcher".

The choice of elements is not really important. Just take one with two inputs.


Mikl


From: gstreamer-devel <[hidden email]> on behalf of BogdanS <[hidden email]>
Sent: Thursday, October 27, 2016 3:40:19 PM
To: [hidden email]
Subject: Re: Synchronize audio and video stream from hardware
 
Thank you . Did you mean encoder? Pipeline like this?

video hardware----h264-----queue max buffers=10---|                                 
|----udpsink

                                                                           
-- avimux---avidemux--

audiohardware----g711-----queue max buffers=10---|                                  
|----udpsink



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Synchronize-audio-and-video-stream-from-hardware-tp4680239p4680292.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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