Skip to content

Instantly share code, notes, and snippets.

@ericsonj
Forked from sepastian/gst_tools_examples.sh
Created September 27, 2021 14:02
Show Gist options
  • Save ericsonj/bffeb88627f8d89c9ae2862f9b3269ab to your computer and use it in GitHub Desktop.
Save ericsonj/bffeb88627f8d89c9ae2862f9b3269ab 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