gst-launch multifilesrc loop with video mixing while streaming!

raksonibs oskarniburski at gmail.com
Fri Oct 16 02:35:14 UTC 2020


Hi there,

I am trying to get gstreamer to work while mixing two videos and streaming
them to a udpsink.

The broken pipeline is like this:
```
gst-launch-1.0 -v avfvideosrc device-index=0 !
video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! queue !
alpha method=custom target-r=57 target-g=255 target-b=20
black-sensitivity=100 white-sensitivity=100 angle=20 noise-level=2 alpha=1 !
mixer.sink_1 multifilesrc location=/Users/user/Desktop/chill.mp4 loop=true !
qtdemux ! video/x-h264,width=480,height=640,profile=baseline,framerate=30/1
! mixer.sink_0 videomixer name=mixer sink_1::zorder=1 sink_0::zorder=0 !
video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! videoflip
method=clockwise ! queue ! x264enc tune=zerolatency speed-preset=ultrafast
bitrate=1500 byte-stream=true key-int-max=30 !
video/x-h264,width=480,height=640,profile=baseline,framerate=30/1 !
rtph264pay config-interval=1 ! multiudpsink clients=192.241.195.100:5630
sync=false
```

I keep getting an internal error on this stream, but can get it to work
using a uridecode pipeline. The problem is that this does not loop when the
initial mp4 file is done. I was hoping loop=1/loop=true on multifilesrc
would work, but I cannot get that to work properly.

Here is the working uridecodebin pipeline with no looping:

gst-launch-1.o -v avfvideosrc device-index=0 !
video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! queue !
alpha method=custom target-r=57 target-g=255 target-b=20
black-sensitivity=100 white-sensitivity=100 angle=20 noise-level=2 alpha=1 !
mixer.sink_1 uridecodebin name=uridec
uri=file:///Users/user/Desktop/chill.mp4 ! videoscale !
video/x-raw,width=480,height=640 ! videoconvert ! queue ! mixer.sink_0
videomixer name=mixer sink_1::zorder=1 sink_0::zorder=0 !
video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! videoflip
method=clockwise ! queue ! x264enc tune=zerolatency speed-preset=ultrafast
bitrate=1500 byte-stream=true key-int-max=30 !
video/x-h264,width=480,height=640,profile=baseline,framerate=30/1 !
rtph264pay config-interval=1 ! multiudpsink clients=192.241.195.100:5630
sync=false

Anyone have any pointers? Would be greatly appreciated cause have been stuck
on this for a while.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list