ximagesrc and RTP streaming, evaluate solution and performance

Arnaud Loonstra arnaud at sphaero.org
Thu May 7 13:02:43 UTC 2020


[snip]
> So is this they way to go (stick with ximagesrc use-damage, x264enc
> tune=zerolatency) ?
> 
> gst-launch-1.0 ximagesrc use-damage=0 \
>          ! video/x-raw,framerate=30/1 \
>          ! videoscale method=0 \
>          ! video/x-raw \
>          ! videoconvert \
>          ! x264enc tune=zerolatency\
>          ! rtph264pay \
>          ! udpsink host=192.168.1.5 port=5601
> 
> should I configure anything else ?
> 
> Any advice ?
> regards
> 

I wrote a guide ages ago:
https://z25.org/static/_rd_/videostreaming_intro_plab/index.html

I used this pipeline:

gst-launch-1.0 v4l2src ! \
  video/x-raw,width=640,height=480 ! \
  x264enc tune=zerolatency byte-stream=true \
  bitrate=3000 threads=2 ! \
  h264parse config-interval=1 ! \
  rtph264pay ! udpsink host=127.0.0.1 port=5000

I think nowadays you'll need to add a videoconvert for the v4l2src. 
Should work with ximagesrc as well.

Rg,

Arnaud


More information about the gstreamer-devel mailing list