cain-ncnn-vulkan icon indicating copy to clipboard operation
cain-ncnn-vulkan copied to clipboard

The last ffmpeg command in the README didn't work for me: change %06d to %08d?

Open backcountrymountains opened this issue 3 years ago • 1 comments

Super cool project! I'm just a copy-paste guy and have no idea how things work. I was copy-pasting from the example in the README but I had a problem with the last line of FFMPEG: ffmpeg -framerate 48 -i output_frames/%06d.png -i audio.m4a -c:a copy -crf 20 -c:v libx264 -pix_fmt yuv420p output.mp4

The previous commands created files like: input_frame/frame_000001.png and output_frame/00000001.png

When I tried to run the last FFMPEG command it was looking for a 6 digit file name, but cain-ncnn-vulkan made 8 digit filenames. It gave me the error: [image2 @ 0000024581b0c500] Could find no file with path 'output_frames/%06d.png' and index in the range 0-4 output_frames/%06d.png: No such file or directory which I didn't understand at all.

Anyway, I hade to change output_frames/%06d.png to output_frames/%08d.png to get it to work. Just wondered if it was just me or if the README could be updated.

Thanks!

backcountrymountains avatar Jan 23 '23 22:01 backcountrymountains

Same here

rupakyeware avatar Nov 24 '24 12:11 rupakyeware