Last active
January 23, 2018 11:53
-
-
Save asus4/3fb332b17cfe8cd956dfaf3a4097b2af to your computer and use it in GitHub Desktop.
Batch convert *.mov files into HEVC using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d %~dp0 | |
setlocal ENABLEDELAYEDEXPANSION | |
for %%i in (*.mov) do ( | |
echo %%i | |
set filename=%%i | |
echo !filename:.mov=.mp4! | |
ffmpeg.exe -y -i %%i -c:v h264_nvenc -pix_fmt yuv420p -preset llhq -profile:v main -b:v 20M !filename:.mov=.mp4! | |
) | |
endlocal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d %~dp0 | |
setlocal ENABLEDELAYEDEXPANSION | |
for %%i in (*.mov) do ( | |
echo %%i | |
set filename=%%i | |
echo !filename:.mov=.mp4! | |
ffmpeg.exe -y -i %%i -c:v hevc_nvenc -preset llhq -profile:v main -b:v 20M !filename:.mov=.mp4! | |
) | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download ffmpeg build here
https://ffmpeg.zeranoe.com/builds/