51

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

barlop
  • 25,198

6 Answers6

13

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
11

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

mgutt
  • 1,198
  • 2
  • 17
  • 35
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.

6

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

For VLC version 3.0.20 on a Debian12-based OS, the bookmarks appears as "Custom Bookmarks" under the Playback menu, with Manage opening the Bookmarks window. It should look something like this:

enter image description here

Xen2050
  • 14,391
haridsv
  • 699
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 :-)

Stano
  • 151
  • 3
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

Gareth
  • 19,080