Last active
November 1, 2024 23:21
-
-
Save dlublin/4a2496d6dad61d7eb303091cf2c97f8f to your computer and use it in GitHub Desktop.
Image sequence to HAP movie via ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is based on the tips from, | |
http://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/ | |
and adapted it to this line to export to HAP directly from a tif sequence, | |
"ffmpeg -r 30 -f image2 -s 1920x1080 -i test%02d.tif -vcodec hap -pix_fmt rgba test.mov" | |
(without quotes of course) | |
- i is where you set the pattern for the image sequence naming, | |
(where the %02d means that zeros will be padded until the length of the string is 2 i.e 01…20…30… and so on. If no padding is needed use something similar to pic%d.png or %d.png) | |
-r is the framerate (fps) | |
-s is the resolution | |
and the file name is 'test.mov' | |
(I left -f as image2 and changed the pix_fmt from the original post linked to) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good!