32

I'm running VLC 2.0.5 on Mac OS X 10.6.8.

I have a .mpg video paused, and I would like to know the frame number for this moment in the video. Is there a way to reveal that in VLC?

P.S. I scrubbed back and forth through the video to reach the point it is currently paused at.

8

Apple's Quicktime Player 7 (free download @http://support.apple.com/kb/DL923) has a dead-easy way to view frames; all you have to do is click the time in the bottom left corner and select "frames". (It also supports frame-by-frame stepping with the arrow keys.) Such a pity the feature was removed in QTX, the one that ships with OSX 10.6.8. Dont worry, though, you can install then both and they won't interfere with each other.

7

I don't have an OS X version, but it should be similar to the other versions. On Windows select Tools->Media Information. From the window that opens select the "Statistics" tab. Under the video section you'll see the statistics for displayed and lost frames. The frame # should be those two numbers added together.

VLC Screenshot

  • 21
    That assumes you've played the video from the beginning – Marcus Chan Jan 28 '13 at 17:35
  • 2
    Yes, that is true, but I don't think there is any way to get an absolute frame number. AFAIK that information is not typically embedded in video streams. – heavyd Jan 28 '13 at 17:37
  • I tried this with a nonstandard frame rate in OSX, and it didn't work at all (by the way, command-I to open it in OSX). I don't think VLC has this feature. – Marcus Chan Jan 28 '13 at 17:42
  • @heavyd Thanks for the quick reply! I did find the Media Information window, but unfortunately I scrubbed back and forth through the video, so the frame count would not be accurate... – hpy Jan 28 '13 at 18:35
  • 2
    From user Blauhirn: Concerning Tools->Media Information->Statistics: If I compare the frames counter before and after pressing e, the number doesn't increase by 1. (but, instead, randomly by up to 300). Not knowing of another way also, I think it's simply not possible using VLC. – fixer1234 Jul 15 '16 at 3:52
6

With VLC 2.2 on OS X, one can estimate the frame number as follows:

A. ADDON: Install Jump to time Previous Frame via the macOS menu VLC > Addons Manager or the Ubuntu menu Tools > Plugins and extensions > Addons Manager tab > Extensions. In VLC 3, click the "Find more addons online" button. The online install page is here. Restart VLC. Use VLC > Extensions > Jump to time (Previous frame) [Get time >>] button to show the HH:MM:SS,mmm lapse time.

B. CALCULATE/ESTIMATE: Convert HH:MM:SS,mmm to total lapsed seconds SS.mmm. Then total_lapsed_seconds * frame_rate_per_second = frame number.

5

I wanted to do the same but I couldn't find a way to do it with VLC.

But, according to this, you can use the drawtext filter in ffmpeg to overlay the frame number to the video permanently. So if you watch it on a player of your choice, you can always see the frame number.

For example:

ffmpeg -i video.mov -vf "drawtext=fontfile=Arial.ttf: text=%{n}: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000099" -y output.mov

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.