Skip to content

Instantly share code, notes, and snippets.

@soulslicer
Created June 11, 2015 04:02
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/18c651dd443c1a9216bb to your computer and use it in GitHub Desktop.
Save soulslicer/18c651dd443c1a9216bb to your computer and use it in GitHub Desktop.
gstreamer-eg2
gst-launch -ev \
v4l2src device=/dev/video4 ! video/x-raw-yuv,width=1792,height=768 \ ! tee name=pip ! queue ! videorate ! video/x-raw-yuv,framerate=25/1 \ ! videocrop left=1024 bottom=192 ! video/x-raw-yuv,framerate=25/1 \
! xvidenc bitrate=2000000 max-key-interval=25 ! video/mpeg,framerate=25/1 \ ! avimux ! filesink location=/tmp/video.avi \
pip. ! queue ! videorate ! video/x-raw-yuv,framerate=5/1 \ ! videocrop right=768 ! video/x-raw-yuv,framerate=5/1 \
! xvidenc bitrate=1000000 max-key-interval=5 ! video/mpeg,framerate=5/1 \ ! avimux ! filesink location=/tmp/grabber.avi \
alsasrc device=hw:0 ! audio/x-raw-int,rate=44100,channels=2,depth=16 \ ! queue ! lamemp3enc target=bitrate cbr=true bitrate=128 \
! avimux ! filesink location=/tmp/audio.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment