Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can any FFmpeg experts share their preferred settings for video conversion to both YouTube and Facebook?

For Youtube I am following these guidelines and my video size is 480P @ 24 fps

  • Audio Codec: AAC-LC
  • Channels: Stereo or Stereo + 5.1
  • Sample rate 96khz or 48 khz
  • Video Codec: H.264
  • Progressive scan (no interlacing)
  • High Profile
  • 2 consecutive B frames
  • Closed GOP. GOP of half the frame rate.
  • Variable bitrate. No bitrate limit required
  • Color Space: 4.2.0

Advanced encoding specifications - YouTube Help

share|improve this question
Since I just noticed it – are you aware that you can vote up questions and answers that you've found useful? So far you haven't cast any votes on Super User, but you definitely have the privileges to and are even encouraged to do so. This is our way of saying "Thanks" for answer that helped you and it'd be a nice gesture to do :) – slhck Nov 10 '12 at 20:46
thanks for the reminder. will do – eco_bach Nov 11 '12 at 0:46
up vote 8 down vote accepted

Don't consider the guidelines as strict requirements. General recommendation is to provide the highest quality that is practical for you to upload. It's that simple--whatever you give them is going to be re-encoded anyway and YouTube has gotten much better at accepting whatever you give them. That means you either upload the original content, or re-encode it with x264. Example using ffmpeg:

ffmpeg -i input -c:v libx264 -crf 18 -preset slow -c:a copy output.mkv

See the CRF section of the FFmpeg and x264 Encoding Guide for more details: specifically the crf and preset options. Notice that I simply copied the audio, but you may choose to re-encode if the source contains uncompressed audio.

share|improve this answer
YouTube has happily accepted almost anything I've thrown at it, even 1fps video, out of sync containers, etc. – slhck Nov 10 '12 at 20:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .