videomixer tee to xvimagesink and filesink at the same time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

videomixer tee to xvimagesink and filesink at the same time

alexxtasi
Hi all.
I am new to gstreamer and trying to combine three streams to a videomixer
and display to xvimagesink.
I did achieve this but now am having problems on saving to a file at the
same time !!

The videomixer to xvimagesink pipeline --> works :

# three streams
gst-launch-1.0 -e videomixer name=mixer ! videoconvert ! xvimagesink \
        udpsrc port=5600 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! textoverlay text="Video feed" valignment=top halignment=left
font-desc="Sans, 6" shaded-background=true auto-resize=true \
        ! clockoverlay text="Test mix" valignment=top halignment=right
font-desc="Sans, 6" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 ! mixer. \
        udpsrc port=5601 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! video/x-raw,width=960,height=540 \
        ! textoverlay text="Camera1" valignment=top halignment=left
font-desc="Sans, 10" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 \
        ! videobox top=-270 left=-0 border-alpha=0 ! mixer. \
        udpsrc port=5602 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! video/x-raw,width=960,height=540 \
        ! textoverlay text="Camera2" valignment=top halignment=left
font-desc="Sans, 10" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 \
        ! videobox top=-270 left=-960 border-alpha=0 ! mixer.

Since a single udpsrc tee to filesink and xvimagesink worked for me, I tried
to mimic that pipeline by adding the tee between videomixer and the sink...
but that did not work :

# videomixer tee to filesink and xvimagesink
gst-launch-1.0 -e videomixer name=mixer \

        ! tee name=t ! queue ! mp4mux ! filesink location=test.mp4 t. ! queue !

        ! videoconvert ! xvimagesink \
        udpsrc port=5600 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! textoverlay text="Video feed" valignment=top halignment=left
font-desc="Sans, 6" shaded-background=true auto-resize=true \
        ! clockoverlay text="Test mix" valignment=top halignment=right
font-desc="Sans, 6" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 ! mixer. \
        udpsrc port=5601 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! video/x-raw,width=960,height=540 \
        ! textoverlay text="Camera1" valignment=top halignment=left
font-desc="Sans, 10" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 \
        ! videobox top=-270 left=-0 border-alpha=0 ! mixer. \
        udpsrc port=5602 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=96" \
        ! rtph264depay \
        ! avdec_h264 \
        ! videoconvert \
        ! videoscale \
        ! video/x-raw,width=960,height=540 \
        ! textoverlay text="Camera2" valignment=top halignment=left
font-desc="Sans, 10" shaded-background=true auto-resize=true \
        ! alpha alpha=1.0 \
        ! videobox top=-270 left=-960 border-alpha=0 ! mixer.

any suggestions on this ??

regards



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel