Skip to content

Instantly share code, notes, and snippets.

@hoangnt2601
Last active January 27, 2021 10:54
Show Gist options
  • Select an option

  • Save hoangnt2601/c70212be2814d8cec6e53937530682af to your computer and use it in GitHub Desktop.

Select an option

Save hoangnt2601/c70212be2814d8cec6e53937530682af to your computer and use it in GitHub Desktop.
gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
gst-launch-1.0 v4l2src device=/dev/video0 ! tee name=t t.! queue ! videoconvert ! autovideosink t.! queue ! videoconvert ! v4l2sink device=/dev/video2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment