switch audio stream every 2 seconds

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

switch audio stream every 2 seconds

Lusine
Hi Folks,
I have 2 input videos and I want to merge these videos. For output audio I want to select 2 seconds audio from the first video, then 2 seconds audio from the second video, then again 2 seconds from the first video and etc. How can I achieve this with gstreamer?
Regards,
Lusine

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: switch audio stream every 2 seconds

Thibault Saunier-4
Hello,

You could do that quite easily with the GStreamer Editing Services: https://gstreamer.freedesktop.org/documentation/gst-editing-services/

In term of [ges-launch] it would look like:

```
ges-launch-1.0 +clip f1.mp4 track-types=audio d=2.0 +clip f2.mp4 track-types=audio d=2.0 +clip f1.mp4 track-types=audio d=2.0 +clip f2.mp4 track-types=audio d=2.0
```

Regards,

- Thibault



On Thu, Oct 29, 2020 at 1:21 PM Lusine Hayrapetyan <[hidden email]> wrote:
Hi Folks,
I have 2 input videos and I want to merge these videos. For output audio I want to select 2 seconds audio from the first video, then 2 seconds audio from the second video, then again 2 seconds from the first video and etc. How can I achieve this with gstreamer?
Regards,
Lusine
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Thibault Saunier, Igalia - www.igalia.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: switch audio stream every 2 seconds

Mandar Joshi
In reply to this post by Lusine
Hello,
Just in case you want to do it programmatically for more control or may be for a custom written program, decoding everything and then using input-selector and re-encoding everything again should work.

Regards
Mandar

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