[FFmpeg-user] Question regarding format as used for '-i'

tuxic at posteo.de tuxic at posteo.de
Sat Jul 23 07:56:26 EEST 2022


Hi,

My blender animation render process normally results in files like

  0002.png 0003.png ..... 0459.png

I use this script to join them into a mp4 video:

  ffmpeg -r 25 -f image2 -s 1280x1280 -i %04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p $1

with $1 given the name of the resulting video file.

But when I do a partial render for example only resulting in the files

  0027.png ..... 0459.png

the same script give me this error:

  [image2 @ 0x555a3fbf2840] Could find no file with path '%04d.png' and index in the range 0-4
  %04d.png: No such file or directory

. 

Why is that ?
What is wrong with my script?

Cheers!
Tuxic


More information about the ffmpeg-user mailing list