Skip to content

Instantly share code, notes, and snippets.

@phenomen
Last active August 25, 2022 21:40
Show Gist options
  • Save phenomen/00d080f14071b46ecc4113be087e5245 to your computer and use it in GitHub Desktop.
Save phenomen/00d080f14071b46ecc4113be087e5245 to your computer and use it in GitHub Desktop.
Drag-and-Drop MP4 to WEBM batch script
set quality=30
set input=%1
set output=%input:.mp4=%
ffmpeg -i %input% -c:v libvpx -crf %quality% -b:v 1M -c:a libvorbis %output%.webm
@phenomen
Copy link
Author

If you do not need audio stream:

set quality=30
set input=%1
set output=%input:.mp4=%
ffmpeg -i %input% -c:v libvpx -crf %quality% -b:v 1M -an %output%.webm

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