From 761fc7e6b1f0e7aac500cd7a609192f426ac3018 Mon Sep 17 00:00:00 2001 From: Nightly Date: Mon, 30 Jan 2023 17:45:49 +0100 Subject: [PATCH] Add 'auto/auto.bat' --- auto/auto.bat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 auto/auto.bat diff --git a/auto/auto.bat b/auto/auto.bat new file mode 100644 index 0000000..5944ca4 --- /dev/null +++ b/auto/auto.bat @@ -0,0 +1,14 @@ +@echo off +for %%f in (*.mp4) do ( +echo Render batch started, current time %TIME% ----- The file is %%f >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +ffmpeg -i "%%~nf".mp4 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset medium -tune animation -crf 20 -maxrate 8328363 -bufsize 16656726 -profile:v:0 high -level 41 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,60+n_forced*3)" -vf "scale=-1:1080" -start_at_zero -vsync -1 -codec:a:0 copy -strict -2 "D:\Files\Videos\Ultimate Transcoding test\Output x264 anime\%%~nf".mp4 +echo ----- x264 anime settings done, current time %TIME% >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +ffmpeg -i "%%~nf".mp4 -vf scale=1920x1080 -b:v 3000k -minrate 1500k -maxrate 4350k -tile-columns 2 -g 240 -threads 8 -quality good -crf 31 -c:v libvpx-vp9 -c:a libopus -pass 1 -speed 4 "D:\Files\Videos\Ultimate Transcoding test\Output VP9 1080p google\%%~nf.webm" +echo ----- VP9 1080 pass 1 done, current time %TIME% >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +ffmpeg -i "%%~nf".mp4 -vf scale=1920x1080 -b:v 3000k -minrate 1500k -maxrate 4350k -tile-columns 3 -g 240 -threads 8 -quality good -crf 31 -c:v libvpx-vp9 -c:a libopus -pass 2 -speed 4 -y "D:\Files\Videos\Ultimate Transcoding test\Output VP9 1080p google\%%~nf.webm" +echo ----- VP9 1080 pass 2 done, current time %TIME% >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +ffmpeg -i "%%~nf".mp4 -vf scale=1920x1080 -c:v libx265 -crf 19 -preset medium -c:a copy "D:\Files\Videos\Ultimate Transcoding test\Output x265 kliksphilip\%%~nf.mp4" +echo ----- x265 kliksphilip done, current time %TIME% >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +ffmpeg -i "%%~nf".mp4 -c:v libx264 -crf 19 -level 4.1 -preset medium -tune film -filter:v scale=-1:1080 -sws_flags lanczos -c:a copy "D:\Files\Videos\Ultimate Transcoding test\Output x264 nightlymania\%%~nf.mp4" +echo ----- x264 my settings done, current time %TIME% >> "D:\Files\Videos\Ultimate Transcoding test\thingg.txt" +) \ No newline at end of file