Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Created December 15, 2011 01:18
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save johnjohndoe/1479394 to your computer and use it in GitHub Desktop.
Save johnjohndoe/1479394 to your computer and use it in GitHub Desktop.
FFmpeg settings for vimeo.com
// FFmpeg settings for vimeo.com
// =============================
// Trying to find the best settings for encoding videos as described here: http://vimeo.com/help/compression
//
// Input file: MTS
// Video: H264, 1920x1080, 50fps
// Audio: A52 Audio (aka AC3), Stereo, 48kHz, 256kbps
ffmpeg -i input.mts -vcodec libx264 -acodec aac -strict experimental -vpre hq -s hd720 -b 5000k -ab 320k -r 25 -g 25 -threads 0 output.mp4
@MasseGuillaume
Copy link

after lots of fine tunning, this is what I got. I filter >3kHz so there is no background noises.

This is a good setting for screencasting

ffmpeg \
-s 1366x768 -f x11grab -i :0.0 \
-f alsa -i pulse \
-vcodec libx264 -b 5000k \
-acodec aac -strict experimental \
-af highpass=f=20,lowpass=f=3000 \
-s hd720 -ab 320k -r 25 -g 25 -threads 0 output.mp4 &&

@kashifsulaiman
Copy link

I'm having issue while using this. Vimeo is failing during optimization. Here's the issue: Kagami/ffmpeg.js#173

@johnjohndoe
Copy link
Author

@kashifsulaiman Please note that this gist is several years old. FFmpeg might have changed dramatically. Please read up on the manual of the version you are using to find out about the latest options. Sorry, that I cannot help any better. I recommend to post the question on https://stackoverflow.com instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment