I'm running this command on my Android phone with an FFmpeg library. It works great for combining videos into one resultant video, but not with images. Here's the command:
-framerate 4 -start_number 0 -i '/storage/emulated/0/Pictures/phototest/%3d.jpg' -c:v libx264 -r 30 -pix_fmt yuv420p /storage/emulated/0/Pictures/phototest/result.mp4 The error is:
'/storage/emulated/0/Pictures/phototest/%3d.jpg': No such file or directory The images are just consecutively named, e.g. 1.jpg, 2.jpg and so on, and they're definitely there - though I think FFMPEG is taking the image file name literally rather than interpreting it. I'm missing something obvious here, I'm sure of it. I looked round StackOverflow and the whole '%3d' wildcard is supposed to work! Any ideas?
EDIT: Running the command with just the first image (1.jpg) works fine. Definitely an issue with the wildcard. In addition, running the command without the image path in quotes doesn't seem to work either.
EDIT 2: Adding 'img' in front of every file so that it it's 'img1.jpg', 'img2.jpg' and so on doesn't work either. Is there a way to pass multiple images separated by '|' like the concat command?