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 faststart
to 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). - mp4 container supports mp3 files, so if
libfdk_aac
isnt available (it's the only good aac enc) uselibmp3lame
. - For mp4 files, use
-preset X
to use mp4 enc presets, like slow or superfast. (veryfast or fast is ok) c:v
refers to the video codec used (codec: video). Likewise,c:a
is audio. If you're using-map
or something, this can be extended (-c:a:0
: codec: audio: stream 0)