Skip to content

Instantly share code, notes, and snippets.

@douglasgoodwin
Forked from johnjohndoe/vimeo.com.ffpreset
Last active December 28, 2015 19:49
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 douglasgoodwin/7553461 to your computer and use it in GitHub Desktop.
Save douglasgoodwin/7553461 to your computer and use it in GitHub Desktop.
// FFmpeg settings for vimeo.com
// =============================
// Trying to find the best settings for encoding videos as described here:
// http://vimeo.com/help/compression
//
// Input file: MOV
// Video: PAL DV, 720x576, 25fps
// Audio: aac Audio, Stereo, 48kHz, 256kbps
//
// OUT
// Codec: H.264
// Frame rate: 24, 25, or 30 FPS (Constant)
// Bit rate: 2,000 – 5,000 kbit/s (SD) / 5,000 – 10,000 kbit/s (720p HD) / 10,000 – 20,000 kbit/s (1080p HD)
// Downsample to SD: 640 x 480 px (4:3 aspect ratio)
//
ffmpeg -i GLASSCUT.mov \
-vcodec libx264 \
-acodec libfaac \
-strict experimental \
-s 1280:720 \
-b 4500k \
-ab 320k \
-r 25 \
-g 25 \
-pix_fmt yuv420p \
GLASSCUT_HD_720.mp4
ffmpeg -i IN.mov \
-vcodec libx264 \
-acodec libfaac \
-strict experimental \
-s 640:480 \
-b:v 2000k \
-ab 320k \
-r 25 \
-g 25 \
-pix_fmt yuv420p \
OUT_SD.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment