Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pavelvpster/af6f4698d86e74528e3c to your computer and use it in GitHub Desktop.
Save pavelvpster/af6f4698d86e74528e3c to your computer and use it in GitHub Desktop.
GStreamer capture webcam to image set with timespamp; webcam does not support JPEG output format.
gst-launch-0.10 v4l2src device=/dev/video0 \
! "video/x-raw-yuv,width=640,height=480,framerate=5/1" \
! videorate \
! "video/x-raw-yuv,framerate=1/6" \
! clockoverlay time-format="%d.%m.%Y %H:%M:%S" \
! jpegenc \
! multifilesink location="./images/image-%06d.jpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment