Scripts & Snippets#
Map + Metadata Fix#
Common Video Encoding Preset#
This snippet is good for transcoding a video into H.264
with pretty decent device compatibility. You can adjust the crf number down
18 for a closer-to-lossless output at the cost of filesize. If
too low quality for what you're transcoding,
22 is usually decent.
You can add a tune
-tune [type] to further customize the output.
Common Audio Encoding Preset#
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.
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).
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#
This snippet helps you map a specific subtitle, audio, or video channel as the default.
0 to the actual track number for that type.