These are a few quick easy ffmpeg command lines that can be used to make oft-used video formats. I use them a lot so I wrote them down in a txt file but I converted it to markdown to upload here and access on all my pcs.
Feel free to use 'em. I've gathered them through superuser posts, wiki trawls, and personal experience.
- Add
-movflags faststartto make mp4 files have their headers at the beginning of the file, allowing them to be streamed (i.e. played even if only part of the file is downloaded). - The MP4 container supports MP3 files, so if
libfdk_aacisnt available (it's the only good AAC enc) uselibmp3lame.- Update: unless you're uploading them to Twitter. Twitter doesn't like MP4 files with MP3 audio. Fall back to
AACand provide a higher quality alternative somewhere else.
- Update: unless you're uploading them to Twitter. Twitter doesn't like MP4 files with MP3 audio. Fall back to
- For MP4 files, use
-preset Xto use MP4 enc presets, like slow or superfast. (veryfast or fast is ok)