Exposing Linux camera over network

Camera server

TARGET_HOST=10.10.20.107
gst-launch-1.0 v4l2src device=/dev/video0  ! 'video/x-raw,width=1280,height=720,framerate=30/1' ! videoconvert ! mpph264enc  ! rtph264pay ! udpsink host=$TARGET_HOST port=5000 sync=false

Client

gst-launch-1.0 udpsrc port=5000 ! 'application/x-rtp, media=(string)video, payload=(int)96' ! rtph264depay  ! h264parse ! decodebin ! videoconvert ! autovideosink sync=false

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *