From a63215a2675cdbe3468f8effc1b719de8f28d30d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 10 May 2022 11:43:42 +0200 Subject: [PATCH] 2-pass encode --- arch-config/Dokumente/ffmpeg-encoding-stuff.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch-config/Dokumente/ffmpeg-encoding-stuff.md b/arch-config/Dokumente/ffmpeg-encoding-stuff.md index dfd113e1..740cd998 100644 --- a/arch-config/Dokumente/ffmpeg-encoding-stuff.md +++ b/arch-config/Dokumente/ffmpeg-encoding-stuff.md @@ -116,3 +116,19 @@ for i in (seq -w 1 37); ffmpeg -i Death\ Note\ {$i}.mkv -map 0:s:0 -metadata:s:s /mnt/storage/MediaLibrary/output/Death\ Note\ Subs\ Redc4t/Death\ Note\ Subs\ Redc4t\ \-\ S01E{$i}.ass; end ``` + +Encoding stuff but with a set bitrate and using hevc (cause VP9 is kinda unsupported still) +Bitrate of 20 Mib/20480 kib +``` +ffmpeg -y -i "/mnt/storage/MediaLibrary/Shows/To Your Eternity (2021)/Seaso +n 01/S01E01 - The Last One [1080p].mkv" -c:v libx265 -b:v 20480k -map 0:v:0 -x265-params pass=1 -f null /d +ev/null && \ + +ffmpeg -i "/mnt/storage/MediaLibrary/Shows/To Your Eternity (2021)/Seas +on 01/S01E01 - The Last One [1080p].mkv" \ + +-c:v libx265 -b:v 20480k -map 0:v:0 -x265-params pass=2 \ + +-c:a copy -map 0:a -c:s copy -map 0:s "/mnt/storage/MediaLibrary/output +/To Your Eternity/S01E01.mkv" +```