Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
FFmpeg settings for
// FFmpeg settings for
// =============================
// Trying to find the best settings for encoding videos as described here:
// 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

This comment has been minimized.

Copy link

@MasseGuillaume MasseGuillaume commented Sep 2, 2014

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 &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment