Skip to content

Instantly share code, notes, and snippets.

@soulslicer
Created June 11, 2015 03:54
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/bcad1ce13f179b99ad52 to your computer and use it in GitHub Desktop.
Save soulslicer/bcad1ce13f179b99ad52 to your computer and use it in GitHub Desktop.
gstreamer-eg1
gst-launch -ev \
alsasrc device=hw:0 ! audio/x-raw-int,rate=44100,channels=2,depth=16 \ ! queue ! lamemp3enc target=bitrate cbr=true bitrate=128 \
! tee name=audio ! queue ! video. \ audio. ! queue ! grabber. \
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 \ ! queue ! video. \
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 \ ! queue ! grabber. \
avimux name=video ! filesink location=/tmp/video.avi \ avimux name=grabber ! filesink location=/tmp/grabber.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment