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.

  • How are you playing the videos? – Gyan Jun 10 '18 at 13:02
  • @Gyan Windows' built-in player - do you think it's an issue with my video player? – Adam Bromiley Jun 11 '18 at 11:21
  • Most likely. The original resolutionat 30 fps exceeds H264 level 5.2 limit and level 6+ are too new for players to accept for those players which vet streams for compliance. That could be it. Of course, WMP has refused to play any H264 stream with width > 2048 for me. – Gyan Jun 11 '18 at 11:47
  • Well I've tried with VLC - same issue. I'll look into the H.264 Level 5.2 limits. Thx :) – Adam Bromiley Jun 11 '18 at 13:36
  • Can you share the log output of ffmpeg -i IMG_%04d_EDITED.JPG and ffmpeg -i 1080x1349-image.jpg? – Gyan Jun 11 '18 at 14:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.