I have a 40 second mp4 recorded at 60 fps. I'm trying to get the exact number of frames in the mp4 (rather than assuming 40 * 60 = 2400). I found two methods the count the number of frames:
ffmpeg -i test6.mp4 -f null -
result = 2371ffmpeg -i test6.mp4 test6/out-%04d.jpg
result = 2401
The first just prints the total number, and the latter extracts each frame as a jpg. Why do these produce different results?