Skip to content

Instantly share code, notes, and snippets.

@melvincabatuan
Created October 28, 2017 09:23
Show Gist options
  • Save melvincabatuan/a55d74661eb7d84bf142f20ef685504a to your computer and use it in GitHub Desktop.
Save melvincabatuan/a55d74661eb7d84bf142f20ef685504a to your computer and use it in GitHub Desktop.
ffmpeg batch file to divide videos equally, i.e. segment time = 3 s
mkdir output
for %%a in ("*.mp4") do ffmpeg -i "%%a" -c copy -map 0 -segment_time 3 -f segment "./output/%%~na_%%05d.mp4"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment