nihui / cain-ncnn-vulkan

CAIN, Channel Attention Is All You Need for Video Frame Interpolation implemented with ncnn library
MIT License
137 stars 15 forks source link

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

Open backcountrymountains opened 1 year ago

backcountrymountains commented 1 year ago

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!