gstreamer from command line to code - multiple streams(inputs)
jfinwebit
jf at inwebit.pl
Wed Mar 11 04:44:52 PDT 2015
I'm trying to write code which would work like this command line:
gst-launch-1.0 -e \
videomixer name=mix \
sink_0::xpos=0 sink_0::ypos=0 sink_0::alpha=0\
sink_1::xpos=0 sink_1::ypos=0 \
sink_2::xpos=640 sink_2::ypos=0 \
sink_3::xpos=0 sink_3::ypos=360 \
sink_4::xpos=640 sink_4::ypos=360 \
! autovideosink \
videotestsrc pattern="black" \
! video/x-raw,format=AYUV,width=1280,height=720 \
! mix.sink_0 \
uridecodebin uri=rtsp://10.0.0.121:554/video.h264 \
! videoconvert ! videoscale \
! video/x-raw,format=AYUV,width=640,height=360 \
! mix.sink_1 \
uridecodebin uri=rtsp://10.0.0.122:554/video.h264 \
! videoconvert ! videoscale \
! video/x-raw,format=AYUV,width=640,height=360 \
! mix.sink_2 \
uridecodebin uri=rtsp://10.0.0.123:554/video.h264 \
! videoconvert ! videoscale \
! video/x-raw,format=AYUV,width=640,height=360 \
! mix.sink_3 \
uridecodebin uri=rtsp://10.0.0.124:554/video.h264 \
! videoconvert ! videoscale \
! video/x-raw,format=AYUV,width=640,height=360 \
! mix.sink_4 \
but honestly, I've got troubles with it. Already tried with several examples
but wherever I look, seems to be different way to do it. It is supposed to
be streamed over RTSP as one stream to client app so I need RTSP Server
Library, so I need to code it. Any suggestions, examples or maybe simple
code which shows how to use Pads(?probably?). I really stuck with it.
Thanks!
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstreamer-from-command-line-to-code-multiple-streams-inputs-tp4671086.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list