From 328fda821b52e3df06305f6c33c7cf85a7377084 Mon Sep 17 00:00:00 2001 From: Griffin Baxter <47467946+GriffinBaxter@users.noreply.github.com> Date: Tue, 3 May 2022 15:38:45 +1200 Subject: [PATCH] Updated crf24_hevc.bat to work with .m4v files. --- crf24_hevc.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crf24_hevc.bat b/crf24_hevc.bat index 7988f1a..af9ed1e 100644 --- a/crf24_hevc.bat +++ b/crf24_hevc.bat @@ -28,7 +28,7 @@ pause EXIT /B %ERRORLEVEL% ::Don't run the function when they're first defined because that's a thing Batch does for some reason??? :ffmpeg - for /R %%A in (*.mp4, *.avi, *.mov, *.wmv, *.ts, *.m2ts, *.mkv, *.mts) do ( + for /R %%A in (*.mp4, *.avi, *.mov, *.wmv, *.ts, *.m2ts, *.mkv, *.mts, *.m4v) do ( echo Processing "%%A" ffmpeg -hwaccel auto -i "%%A" -pix_fmt p010le -map 0:v -map 0:a -map_metadata 0 -c:v hevc_nvenc -rc constqp -qp %ffmpeg_qv% -b:v 0K -c:a aac -b:a 384k -movflags +faststart -movflags use_metadata_tags "%%A~dnpA_CRF%ffmpeg_qv%_HEVC.mp4" ::"-pix_fmt p010le" is setting it to 10-bit instead of 420 8-bit, which is what I had before @@ -36,4 +36,4 @@ EXIT /B %ERRORLEVEL% :: "-movflags +faststart" helps with audio streaming echo Processed %%A ) -GOTO :EOF \ No newline at end of file +GOTO :EOF