From 8d2e56919bdcce20f7b5d540300ae7390557a628 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 18 Dec 2021 21:29:34 +0100 Subject: [PATCH] Add command for adding external subs --- arch-config/Dokumente/ffmpeg-encoding-stuff.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch-config/Dokumente/ffmpeg-encoding-stuff.md b/arch-config/Dokumente/ffmpeg-encoding-stuff.md index e2c88b2b..5b5b7e8f 100644 --- a/arch-config/Dokumente/ffmpeg-encoding-stuff.md +++ b/arch-config/Dokumente/ffmpeg-encoding-stuff.md @@ -89,3 +89,16 @@ for i in (seq -w 1 13); ffmpeg -i Vivy\ -\ Flourite\ Eye\'s\ Song\ -\ {$i}.mkv - /mnt/storage/MediaLibrary/output/Vivy\ -\ Flourite\ Eye\'s\ Song/Vivy\ -\ Flourite\ Eye\'s\ Song\ -\ {$i}.mkv; end ``` + +Include subtitles from external files +``` +for i in (seq -w 1 11); ffmpeg -i Bartender\ {$i}\ \[BDRip\ 1920x1080\ HEVC\ FLAC\].mkv -i ENG\ Subs/Bartender\ {$i}\ \[BDRip\ 1920x1080\ HEVC\ FLAC\].eng.\[BD\].sup.mks -metadata title="Bartender - S01E$i" -map_metadata -1 -disposition 0 \ + +-c:v libx264 -crf 20 -tune animation -map 0:v:0 -metadata:s:v:0 title="Video" \ + +-c:a libopus -b:a 192k -map 0:a:0 -metadata:s:a:0 title="Japanese" -metadata:s:a:0 language=jpn \ + +-c:s copy -map 1:s:0 -metadata:s:s:0 title="English" -metadata:s:s:0 language=eng \ + +/mnt/storage/MediaLibrary/output/Bartender/Bartender\ \-\ S01E{$i}\ \[1080p\].mkv; end +```