I had executed these two commands, and I got confused by its unconsistent result.
I got frame count through the command following:
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 FPS30-536-CFR.mp4
The result is 536.
I fetched every frame and saved it to a directory:
ffmpeg -i FPS30-536-CFR.mp4 ./frames/out%04d.jpg
I got 537 pictures in the
./frames
directory which numbers form0001.jpg
to0537.jpg
I had tried another video, the two results are maintained the same.
Please give me some hints, thank you very much.