Skip to content

Instantly share code, notes, and snippets.

@asus4
Last active January 23, 2018 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asus4/3fb332b17cfe8cd956dfaf3a4097b2af to your computer and use it in GitHub Desktop.
Save asus4/3fb332b17cfe8cd956dfaf3a4097b2af to your computer and use it in GitHub Desktop.
Batch convert *.mov files into HEVC using ffmpeg
@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
@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
@asus4
Copy link
Author

asus4 commented Jan 23, 2018

Download ffmpeg build here
https://ffmpeg.zeranoe.com/builds/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment