I'm new to FFMPEG but have created three timelapses on it (I forgot the commands I used to make them though).
I have ~400 images with consecutive numbering from IMG_1744_EDITED.JPG
. I edited the RAW files in Lightroom and exported them to JPEGs with dimensions of 3416x5183
, and file sizes of ~12MB. I want to make a timelapse out of them, so I did:
ffmpeg -r 30 -start_number 1744 -i IMG_%04d_EDITED.JPG -vcodec libx264 -preset veryslow timelapse.mkv
this runs without any error messages, but outputs an .mkv
file that is just black when it runs.
Sensing it might be an issue with the file format, I tried an .mp4
output instead. Again, same issue.
I tried decreasing the resolution of the files, so I resized them all down to 1080x1349
(different aspect ratio because I added white padding to the left and right) - which worked perfectly (files now ~150KB).
Tried the same command, again with both .mkv
and .mp4
formats but still gives the same error.
Where am I going wrong?
The best situation would be to use the 3416x5183
files by the way, and produce both an .mkv
(I want quality over file size) and .mp4
video.
ffmpeg -i IMG_%04d_EDITED.JPG
andffmpeg -i 1080x1349-image.jpg
?