diff --git a/arch-config/Dokumente/ffmpeg-encoding-stuff.md b/arch-config/Dokumente/ffmpeg-encoding-stuff.md index af6efbe1..d430fb62 100644 --- a/arch-config/Dokumente/ffmpeg-encoding-stuff.md +++ b/arch-config/Dokumente/ffmpeg-encoding-stuff.md @@ -64,3 +64,15 @@ ffmpeg -i Death\ Note\ -\ S01E{$i}.mkv -c:v libx264 -c:a libopus -b:a 192k -crf end ``` + +Complex example with different audio channels +Note that the disposition is deleted first. Otherwise later settings might not apply +``` +for i in (seq -w 1 25); ffmpeg -i Steins\;Gate\ -\ {$i}.mkv -metadata title="Steins;Gate - $i" -disposition 0 \ + +-c:v libx264 -crf 20 -tune animation -map 0:v:0 -metadata:s:v:0 title="Video" \ + +-c:a libopus -b:a:0 576k -b:a:1 192k -ac:a:0 6 -ac:a:1 2 -map 0:a:0 -map 0:a:1 -metadata:s:a:0 title="English" -metadata:s:a:0 language=eng -metadata:s:a:1 title="Japanese" -metadata:s:a:1 language=jpn -disposition:a:1 default \ + -c:s copy -map 0:s:3 -metadata:s:s:3 title="English" -metadata:s:s:3 language=eng -disposition:s:3 default \ + "/mnt/storage/MediaLibrary/Handbrake-output/Steins;Gate/Steins;Gate - $i [1080p].mkv"; end +```