Skip to content

Instantly share code, notes, and snippets.

@mschewe
Forked from sepastian/gst_tools_examples.sh
Created June 19, 2018 12:37
Show Gist options
  • Save mschewe/219542ec5b624309b87488092c25fd4c to your computer and use it in GitHub Desktop.
Save mschewe/219542ec5b624309b87488092c25fd4c to your computer and use it in GitHub Desktop.
Use gst-launch (gstreamer-tools) to capture single images and stream video from the command-line.
# Capture a single image and save it in JPEG format.
$ gst-launch v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
# Stream video from a webcam.
$ gst-launch v4l2src ! xvimagesink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment