Skip to content

Instantly share code, notes, and snippets.

@acarabott
Last active August 29, 2015 14:13
Show Gist options
  • Save acarabott/8cc74e0538f16121e375 to your computer and use it in GitHub Desktop.
Save acarabott/8cc74e0538f16121e375 to your computer and use it in GitHub Desktop.
ffmpeg - extract stills
# -i input file
# -r frames per second to extract
# -ss start time HH:MM:SS
# -t duration to extract in seconds
# -s image format (see below)
# output file format where %d will be the image number
ffmpeg -i video.mp4 -r 25 -ss 00:01:22 -t 7 -s hd1080 output-%d.png
# Image formats
# -------------
# hd480 852x480
# hd720 1280x720
# hd1080 1920x1080
#
# vga 640x480
# svga 800x600
# xga 1024x768
#
# sqcif 128x96
# qcif 176x144
# cif 352x288
#
# 4cif 704x576
# qqvga 160x120
# qvga 320x240
#
# uxga 1600x1200
# qxga 2048x1536
# sxga 1280x1024
#
# qsxga 2560x2048
# hsxga 5120x4096
# wvga 852x480
#
# wxga 1366x768
# wsxga 1600x1024
# wuxga 1920x1200
#
# woxga 2560x1600
# wqsxga 3200x2048
# wquxga 3840x2400
#
# whsxga 6400x4096
# whuxga 7680x4800
# cga 320x200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment