Created
December 14, 2020 08:23
-
-
Save t27/7f4d852418d608e0aae660a3ab6e79ba to your computer and use it in GitHub Desktop.
Batch FFMpeg command for windows cmd
This file contains 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
for /f "tokens=1 delims=." %a in ('dir /B *.webm') do ffmpeg -i "%a.webm" -c:v copy -crf 0 "%a.mp4" | |
# here "ffmpeg -i "%a.webm" -c:v copy -crf 0 "%a.mp4" is the command to repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for the vp9 format
for /f "tokens=1 delims=." %a in ('dir /B *.mp4') do ffmpeg -i "%a.mp4" -c:v libvpx-vp9 -lossless 1 "output_%a.mp4"
ffmpeg -i input.mp4 -c:v libvpx-vp9 -lossless 1 output.mp4