Skip to content

Instantly share code, notes, and snippets.

@sr105
Created July 17, 2017 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sr105/66c8dc0a55f8970ff1efd342f3a6ce98 to your computer and use it in GitHub Desktop.
Save sr105/66c8dc0a55f8970ff1efd342f3a6ce98 to your computer and use it in GitHub Desktop.
gstreamer encode and watch
gst-launch-1.0 -e v4l2src ! video/x-raw,width=3840,height=2160,format=YV12 \
! vaapih264enc bitrate=20000 rate-control=2 ! queue \
! mpegtsmux ! filesink location=file.mp4
gst-launch-1.0 -e v4l2src ! video/x-raw,width=1280,height=720 ! queue ! xvimagesink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment