FFmpeg#
Resources#
Compilation
Reading
Help
Scripts & Snippets#
Scripts#
Map + Metadata Fix#
Bash | |
---|---|
re-encode#
Bash | |
---|---|
remux#
Bash | |
---|---|
unpack b-frames#
Bash | |
---|---|
Hardware Encoding#
Bash | |
---|---|
Snippets#
Common Video Encoding Preset#
Text Only | |
---|---|
This snippet is good for transcoding a video into H.264
with pretty decent device compatibility. You can adjust the crf number down
to 18
for a closer-to-lossless output at the cost of filesize. If 24
is
too low quality for what you're transcoding, 20
or 22
is usually decent.
tune
You can add a tune
with -tune [type]
to further customize the output.
Common Audio Encoding Preset#
Text Only | |
---|---|
Adjust 256k
for the number of audio channels you have.
libfdk_aac is regarded as one of the best audio options available in FFmpeg to output to. libfdk_aac is not part of FFmpeg by default and requires FFmpeg to be compiled a specific way to include non-free software. Compatibility with AAC is fantastic and you can get very good sound quality at lower bitrates than options like MP3.
bitrate/channels
As a rule of thumb, for audible transparency, use 64 kBit/s for each channel (e.g. 128 kBit/s for stereo, 384 kBit/s for 5.1 surround sound).
Map Attachments#
Text Only | |
---|---|
This snippet makes sure that all already embedded attachments in a file are copied over. FFmpeg does not do this by default.
Change default track#
Text Only | |
---|---|
This snippet helps you map a specific subtitle, audio, or video channel as the default.
Note
Change 0
to the actual track number for that type.