Skip to content

Instantly share code, notes, and snippets.

@karim23657
Forked from nathanchere/downsample.bat
Created May 24, 2024 15:40
Show Gist options
  • Save karim23657/e3239ee4e04d92d2028fbc46d4c9649d to your computer and use it in GitHub Desktop.
Save karim23657/e3239ee4e04d92d2028fbc46d4c9649d to your computer and use it in GitHub Desktop.
Downsample mp4s in directory to 360p with ffmpeg
for %%f in (*.mp4) do call ffmpeg -i "%%~nf.mp4" -vcodec libx264 -vf scale=-1:360 -r 12 -preset fast -acodec copy "%%~nf.360p.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment