45

Note- This is not a duplicate. This question, as it says in its title, is specific to VLC. The other question is a general question about video playing programs generally. So, not a duplicate

I am trying get milliseconds shown in VLC.

I read that I should download this extension http://addons.videolan.org/content/show.php?content=149618

(there was a download link on that page, not sure if it's quite right, like I don't know if I downloaded some lite version that I shouldn't have but I downloaded this)

http://addons.videolan.org/CONTENT/content-files/149619-time-lite.lua

and put it in "VideoLAN\VLC\lua\extensions" creating the extensions subdirectory if it doesn't exist. I did that.

closed VLC, started it again.

It is listed under the View menu. I notice it doesn't get checked. even when I click it - I don't know if it should. The same is true for the VLSub extension below, it doesn't get checked when clicking it. Maybe that is normal and extensions are already enabled.

But my problem is, it doesn't show miliseconds, which is what i'm after.

VLCnomillisecondsscreenshot

4
  • I can only suggest you email them direct? I'm sorry I can't help, or tell you anything but the obvious :(
    – Dave
    Feb 10, 2014 at 9:38
  • 3
    Possible duplicate of video player that shows milliseconds. Flagged this question because of this review: superuser.com/review/first-posts/670683
    – Ramhound
    Jul 6, 2017 at 22:14
  • 4
    AT Ramhoudn And as for the contents of their now deleted post/answer, which you reviewed, It basically says MPC is much better That's subjective and factually wrong. Better at some things, sure. But VLC has always been good at supporting a wide variety of formats, and i've found it open things when MPC can't.. So the idea that MPC is just better full stop in every area leaving no reason to use VLC.. is a)Very subjective by this site's standards, so not considered a fact on this site and b)It's wrong! VLC can be better in some ways, just as MPC can be better in some ways.
    – barlop
    Jul 6, 2017 at 23:44
  • 1
    This seems ridiculous that you need an extension to see milliseconds in a video player.
    – wisbucky
    Aug 11, 2021 at 3:44

6 Answers 6

10

According to mederi, the author of the Time extension, the var.add_callback( ) and var.del_callback( ) Lua functions are no longer available in VLC 2.1.

Unless VLC is patched to add the removed functions the script will not work as written.

1
  • 1
    I'm successfully using the Time extension (v.3.2) with VLC 3..011, fwiw. However the Time extension seems rather buggy (it gives me two different time values for the same frame depending on how I jump to that time... ugh). And the [En] format specifier doesn't work consistently either (I looked at the source-code of the extension and it's using a very wrong method for implementing time format strings, ugh)
    – Dai
    Nov 2, 2020 at 5:49
12

With VLC, I found two approaches for determining milliseconds.

Approach 1. Addon: Jump to time (Previous Frame)

  • 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 addons.videolan.org/p/1154013.

    Note: Jump To Time version 3 extension may need to be manually installed. At this time (2023.02.23) the Addons Manager is installing version 2.1.

  • Restart VLC.

  • Use the menu is under VLC -> Extensions -> Jump to time (Previous frame) to open the dialog depicted below. [Note: older VLC placed the extension under the View menu.] The Jump to time (Previous frame) Get time >> button updates to show HH:MM:SS,mmm.

    (Note: this is a different dialog than Jump to time in the Playback menu).

enter image description here

Approach 2. Calculate/Estimate

One can estimate the milliseconds based the MM:SS that is displayed as follows:

  • Stop slightly more than one second prior to the point of interest.
  • Use the Next frame e hot key to count frames after when the seconds display changes values to the point of interest.
  • Use the Frame rate from the Media Information Window > Codec Details tab to convert to an approximate milliseconds value.
  • frame_count / frame_rate = 0.mmm seconds
    The margin of error will be: 0.5/frame_rate = 0.mmm seconds
3
  • 1
    On newer versions of VLC for macOS, the menu is under VLC -> Extensions -> Jump to time (Previous frame) v2.1.
    – ThomasW
    Jun 12, 2019 at 6:47
  • 3
    For others looking at the Jump to Time option. I tried it (v2.1). Its interface is messed up. Moving the video to 1 second mark (00:01), it tells me I am at 288:53:20,000 (could be off a little each time. Apparently, it means 288 hour, 53 min and 20 sec.
    – some user
    Jan 25, 2021 at 1:46
  • 2
    This does not work. Several hundred milliseconds of real time correspond to several hundred hours in the Jump to time user interface.
    – BurnsBA
    Jun 28, 2021 at 17:34
10

Maybe an alternative solution for some people. Instead of VLC, import the video into avidemux. It shows milliseconds:

enter image description here

and you are able to jump from Keyframe to Keyframe:

enter image description here

2
4

(It looks like the extension works again nowadays.)

Download Time v3.2 extension from its homepage: https://addons.videolan.org/p/1154032

Extract the contents of Time_v3.2_(intf).zip to C:\Program Files\VideoLAN\VLC\lua\

Start VLC > then in the menu View > Time v3.2 (intf) > click on Start.

Then restart VLC, play a video and enjoy the miliseconds precision info :-)

3
  • 1
    that is so ugly i.imgur.com/e9mTCxb.png and then it starts overlapping and if you pause and push the left or right arrow then it turns into this i.imgur.com/ElpAzYb.png
    – barlop
    Aug 22, 2020 at 16:20
  • ugly... maybe a little but you can change the format/position of the timestamp so it works well enough.
    – alv
    Oct 11, 2022 at 9:06
  • Change font appearance in the VLC > Preferences > Subtitles / OSD settings. Feb 26, 2023 at 0:03
3

Here is an alternative that works much better if you need to notedown multiple timestamps.

  • Open the video
  • Open Window > Bookmarks
  • While viewing the video, click Add and you can even Edit to name it appropriately
  • Repeat until you identified all timestamps (see screenshot).
  • At the end use File > Save Playlist" to save it as an m3u file
  • Look for a line like this in the m3u file: #EXTVLCOPT:bookmarks={name=1,time=1085.800},{name=2,time=1286.050},{name=1,time=1385.050}

Bookmarks window

Update:

To help find the Window > Bookmarks menu, here are a couple of screenshots on how the menu looks on my system when VLC (I got it from official site and installed no plugins) is opened:

Screenshot of menu bar showing Window:

Menu bar

The expanded Window menu showing Bookmarks:

Window menu

9
  • where is window..bookmarks?! Not in VLC 3.0.11 i.stack.imgur.com/Wt8Zw.png
    – barlop
    Jan 31, 2023 at 21:01
  • I am using 3.0.17.3 on Mac and I see Bookmarks under the top level menu called Window. What OS are you using?
    – haridsv
    Feb 1, 2023 at 10:05
  • Win7, but VLC on win10 would be same. It'd be more useful if u included a screenshot showing where it says Window, so we can see what other items there are alongside that menu option. Look here I just looked for an img of VLC on google images en.wikipedia.org/wiki/VLC_media_player#/media/… and I don't see "Window". Can u include a screenshot like I did in my first comment? And btw this is the window menu on OSX images.macworld.co.uk/cmsdata/features/3624124/…
    – barlop
    Feb 1, 2023 at 13:07
  • I know with OSX there's one menu at the top a general one and it changes depending on what application is active. So maybe VLC on osx has a "window" menu particular to it. But it'd help if you included a screenshot
    – barlop
    Feb 1, 2023 at 13:13
  • It could be that what you are opening there isn't VLC at all, but an osx bookmark manager simplehelp.net/2020/02/11/how-to-add-bookmarks-to-a-video i'm not sure if that bookmark window is something with VLC or not. It might be an OSX thing that interacts with VLC. Anyhow, as mentioned, screenshots would help .
    – barlop
    Feb 1, 2023 at 13:15
1
  1. Get the Setup for VLC media player v 2.0.x. It will not work on v2.1.x or v2.2.x. (You are advised to get VLC v2.0.9). After downloading, install the file by following the instructions shown.

  2. Go the VLC media player add-on page and download the time extension. by clicking on this Time Extension

  3. Extract the time extension downloaded, open the Time v2.0 (intf), there are three files:

    Looper_intf.lua
    Time v2.0 (intf).png
    time_ext.lua
    
  4. Go to the location where you installed VLC Media Player (usually C:\Program Files\VideoLAN)

  5. Open the VideoLAN folder, open the VLC folder and then open the Lua folder

  6. In the Lua folder, open the extension folder and paste the time_ext.lua file

  7. Go back to the Lua folder, open the intf folder, paste the looper_intf.lua file

  8. Open VLC Media Player, go to View on the menu bar, and select Time V2.0

  9. Leave the settings the way they are and click on Save. VLC Media Player will request to restart - close and reopen VLC Media Player.

  10. After restarting VLC media player, load a video into the VLC Media Player. Your video should show in the top right hand corner the video time in hr:mm:sec.millisecond format (which represents hours:minutes:seconds.milliseconds)


You can check the complete tutorial here: http://www.latestsolution.com/2016/06/Show-VLC-Timing-In-Millisecond.html

1
  • The link is no longer valid.
    – ThomasW
    Jun 12, 2019 at 7:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .