Skip to content

Instantly share code, notes, and snippets.

@r3dsm0k3
Created January 25, 2015 18:38
Show Gist options
  • Save r3dsm0k3/7bedbacecdaf82dfbaa6 to your computer and use it in GitHub Desktop.
Save r3dsm0k3/7bedbacecdaf82dfbaa6 to your computer and use it in GitHub Desktop.
Recording at 240p without audio and HD with audio. gstreamer, raspberry pi with Logitech C920
gst-launch-1.0 -v -e uvch264src iframe-period=3000 device=/dev/video1 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! \
h264parse ! queue ! tee name=t ! queue ! omxh264dec ! \
video/x-raw,width=320,height=240,framerate=30/1 ! omxh264enc ! video/x-h264,width=320,height=240,framerate=30/1 ! \
h264parse ! flvmux ! filesink location=1.flv t. ! \
h264parse ! flvmux streamable=true name=flvmuxer alsasrc device="plughw:1" ! \
audio/x-raw,format=\(string\)S16LE,rate=44100,channels=2 ! queue ! \
voaacenc bitrate=44100 ! aacparse ! queue ! flvmuxer. flvmuxer. ! filesink location=hd.flv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment