AW: gstreamer from command line to code - multiple streams(inputs)
Thornton, Keith
keith.thornton at zeiss.com
Wed Mar 11 05:11:51 PDT 2015
I haven't looked for a while but the last time I played with the Gstreamer RTSP server, you provided a gst-launch-1.0 command to the server's gst_rtsp_media_factory_set_launch function so there is no need to re-code your pipeline in C.
-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von jfinwebit
Gesendet: Mittwoch, 11. März 2015 12:45
An: gstreamer-devel at lists.freedesktop.org
Betreff: gstreamer from command line to code - multiple streams(inputs)
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.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list