Skip to content

Instantly share code, notes, and snippets.

@soulslicer
Created June 11, 2015 03:48
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 soulslicer/c9b7503b3eac504f0257 to your computer and use it in GitHub Desktop.
Save soulslicer/c9b7503b3eac504f0257 to your computer and use it in GitHub Desktop.
Gstreamer-1
/usr/local/bin/gst-launch-1.0 uvch264src fixed-framerate=1 iframe-period=30000
initial-bitrate=500000 peak-bitrate=500000 num-reorder-frames=20 device=/dev/video0 name=src auto-start=true num-buffers=300 src.vfsrc ! queue ! fakesink src.vidsrc ! queue ! video/x-h264,width=1280,height=720,framerate=30/1,format=GRAY8 ! h264parse ! qtmux ! filesink location=video.mp4
gst-launch-1.0 uvch264src fixed-framerate=1 iframe-period=30000 initial-bitrate=500000 peak-bitrate=500000 num-reorder-frames=20 -e filesrc location="output.raw" ! h264parse ! qtmux ! filesink location=video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment