ximagesrc and RTP streaming, evaluate solution and performance

alexxtasi alextasikas at gmail.com
Sat Jun 27 21:24:44 UTC 2020


Hi again !
following suggestions above, I end up with this pipeline on the "source"
pc's:

gst-launch-1.0 ximagesrc use-damage=true \
	! video/x-raw,framerate=30/1 \
	! videoscale method=0 \
	! videoconvert \
	! x264enc tune=zerolatency \
	! rtph264pay \
	! udpsink host=192.168.1.10 port=5601

in my tests I use two "source" machines, one running linux (with the above
script) on Intel i5 and the other running windows (on Intel i3) :

gst-launch-1.0.exe -e gdiscreencapsrc ! video/x-raw,framerate=30/1 !
videoscale method=0 ! videoconvert ! video/x-raw,format=I420 ! x264enc
tune=zerolatency ! rtph264pay ! udpsink host=192.168.1.10 port=5602

The "receiver" pc (linux) runs a pipeline showing those two streams side by
side in a videomixer.

This setup seams to work fine, apart from some delays in the frame coming
from the pc with the less powerful CPU (i3) and the strange ... viewing that
same stream in both two places on the the videomixer !!!!

- are those delays and strange things the result of low power CPU ?
- do I need to use Intel i5 or similar CPU in order to screen-grab and
stream without delays ??

regards


...
my testing pipeline on the "receiver" side is:

gst-launch-1.0 -e videomixer name=mixer ! videoconvert ! xvimagesink
sync=false \
	videotestsrc pattern="snow" !
"video/x-raw,framerate=10/1,width=1920,height=1080" ! textoverlay text="Live
from Pluto" valignment=top halignment=left font-desc="Sans, 6"
shaded-background=true auto-resize=true ! clockoverlay text="Edge City"
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="CAM1" 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="CAM2" 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.
...



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


More information about the gstreamer-devel mailing list