Multiple src and sink

Jose Diego Avila Ruiz diego_javila at hotmail.com
Mon Oct 14 18:34:18 UTC 2019


Hi, im pretty stuck on this ..
I made this pipeline : "gst-launch-1.0 -v filesrc location=/home/arion/Downloads/test2.mp3 name=src ! decodebin ! audioconvert ! "audio/x-raw,channels=6"  ! deinterleave keep-positions=true name=d interleave name=i ! autoaudiosink d.src_0 ! queue ! volume volume=1 ! i.sink_1 d.src_1 ! queue ! volume volume=1 ! i.sink_2 d.src_2 ! volume volume = 1 ! queue ! i.sink_3 d.src_3 ! volume volume=1 ! queue ! i.sink_4 d.src_4 ! volume volume=1 ! queue ! i.sink_5 d.src_5 ! volume volume=2 ! queue ! i.sink_6 " is totally working but when i try to convert it to c code i have not made any progress...
Those are my questions:
1- How can i convert my 2 channel mp3 to 6 channel  i tried whit :
caps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, "S16LE",  "layout", G_TYPE_STRING, "interleaved", "rate", G_TYPE_INT, (int)44100, "channels", G_TYPE_INT, (int)6, NULL);ret = gst_element_link_filtered (data.source, data.audio_sink, data.caps);   if (!ret) {       g_print ("audio_source and sink couldn't be linked\n");       gst_caps_unref (data.caps);       return FALSE;   }
seems not working
2- As you can see there are 6 sinks and 6 src but i dont have any clue of how can i add more src and sinks
3- How can i use deinterleave and interleave plugin (code ) not in gst_launch , ive been searching for many days and i cant solve it
Maybe are silly questions for you but i cant solved it, i need help please

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191014/cabf3ed8/attachment-0001.html>


More information about the gstreamer-devel mailing list