Skip to content

Instantly share code, notes, and snippets.

@t27
Created December 14, 2020 08:23
Show Gist options
  • Save t27/7f4d852418d608e0aae660a3ab6e79ba to your computer and use it in GitHub Desktop.
Save t27/7f4d852418d608e0aae660a3ab6e79ba to your computer and use it in GitHub Desktop.
Batch FFMpeg command for windows cmd
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
@t27
Copy link
Author

t27 commented Dec 14, 2020

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

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