I'm trying to convert a png file to mp4 file but I get 0bytes mp4 files.

Here is my code structure:

ffmpeg -r [framerate] -i [images] -s [resolution] -vcodec libx264 [videofilename].mp4
  • You need to show your actual command and the complete console output. – llogan Apr 13 '16 at 16:01

When creating film from images, you need to specify input "framerate" as decribed in Create a video slideshow from images

Putting tag -framerate 1/5 before tag -i for example will make each image be shown for 5s in the film.

|improve this answer|||||
  • I added it but I'm still getting the same issue, my ffmpeg version is FFmpeg 0.6.5 – user2033138 Apr 13 '16 at 11:14
  • 3
    Current version is 3.x. You should upgrade. – Gyan Apr 13 '16 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.