Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to batch-rename then ffmpeg-process a batch of images separately #19

Open
geerlingguy opened this issue Mar 10, 2019 · 0 comments

Comments

@geerlingguy
Copy link
Owner

geerlingguy commented Mar 10, 2019

I seem to do this a lot... so it would be nice to have it documented so I don't have to re-remember all the time:

# Rename images in current dir from `image00042.jpg` to instead start from `image00000.jpg`.
# (On macOS, `brew install rename`)
# TODO: Test this.
rename 's/\d+/sprintf("%05d", $&)/e' *.jpg

# Create timelapse.mp4 in current directory starting from `image00000.jpg`.
ffmpeg -framerate 20 -i image%05d.jpg -vf format=yuv420p timelapse.mp4

(Change framerate to suit your preferences.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant