Skip to content

Instantly share code, notes, and snippets.

@lilithebowman
Last active August 22, 2018 14:00
Show Gist options
  • Save lilithebowman/6f4b7c11278b6d6193653d0feb321635 to your computer and use it in GitHub Desktop.
Save lilithebowman/6f4b7c11278b6d6193653d0feb321635 to your computer and use it in GitHub Desktop.
@echo off
echo Usage:
echo jpg2mp4.bat 12345
echo (where 12345 is the sequence number the JPG sequence begins on)
SET num=%1
IF "%num%"=="" (SET num=0)
@echo on
ffmpeg -r 1/5 -i G%07d.JPG -start_number %num% -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment