Multiple src and sink

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

Multiple src and sink

diegoavila
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: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Multiple src and sink

diegoavila

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 for Windows 10

 


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