-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (2) .- Knowledge Base  . 

Time v2.1

  

VLC Extension

Score 53%
Time v2.1
zoom


Time v2.1
zoom


Forum:  Link
Downloads:  58177
Submitted:  Mar 19 2012
Updated:  Sep 5 2016

Description:

Time is VLC extension that displays running time on the screen in a playing video.
(Extension script "time_ext.lua" + Interface script "looper_intf.lua")
Features:
- supported tags: [E], [Efps], [D], [R], [T], [O], [n], [_];
- 9 possible positions on the screen;
- elapsed time with milliseconds;
- playback speed rate taken into account for duration time;

Time v2.1 (intf)
"time_ext.lua" > Put the VLC Extension Lua script file in \lua\extensions\ folder
"looper_intf.lua" > Put the VLC Interface Lua script file in \lua\intf\ folder
** The Interface script can be activated from the CLI (batch script or desktop shortcut icon):
vlc.exe --extraintf=luaintf --lua-intf=looper_intf
** Otherwise the Extension script (First run: "Time > SETTINGS" dialog box) will help you to set appropriate VLC preferences for automatic activation of the Interface script or you can do it manually in VLC Preferences:
Tools > Preferences > Show settings=All > Interface \
\ Main interfaces: Extra interface modules [luaintf]
\ Main interfaces \ Lua: Lua interface [looper_intf]
Then use the Extension ("Time" dialog box) to control the active Interface script.
The installed Extension is available in VLC menu "View" or "Vlc > Extensions" on Mac OS X.

Time v1.0
The extension works in VLC-2.0.x. VLC archive: http://download.videolan.org/vlc/
Time is VLC extension (extension script "time.lua") that displays running time on the screen in a playing video.
Lite version of this extension - Time (lite): http://addons.videolan.org/content/show.php?content=149619

DOWNLOAD:
- click the download button below
- save the .zip file
INSTALLATION:
- extract (unzip) the .lua file and put it in VLC subdir \lua\extensions\, by default:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\VLC\lua\extensions\
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
* Mac OS X (current user): /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/
(create directories if they don't exist)
- Restart VLC or just reload extensions (Tools > Plugins and extensions > Active Extensions tab: Reload extensions button).
USAGE:
Then you simply start the extension in VLC menu "View" or "Vlc > Extensions" on Mac OS X.

Forum: https://forum.videolan.org/viewtopic.php?f=29&t=97639




Changelog:

v2.1 (intf) (5.9.2016) 58019
- fixed several bugs in Interface script

v2.0 (intf) (28.4.2016) 53798
- resurrection attempt;
- Interface script "looper_intf.lua" + Extension script "time_ext.lua";
- new tags [Efps]-elapsed frames (et*fps), [n]-name, [_]-new/next line;
- elapsed time with milliseconds;
- playback speed rate taken into account for duration time;

v1.0 (19.3.2012)
- works in VLC 2.0.x;
- supported tags: [E]-elapsed time, [D]-duration, [R]-remaining time, [T]-system time, [O]-over time;




LicenseGPL
(time.zip)
Send to a friend
Subscribe
Other  Content  from mederi
Report inappropriate content



goto page: prev   1  2  3  4 

-

 Is milliseconds correct?

 
 by ravemir on: Mar 11 2013
 
Score 50%

I have been using your patch to show milliseconds on my time, but it seems the displayed times are randomly retrieved.

Are these values supposed to be as precise as possible, or are they estimations with varying precision?


Reply to this

-
.

 Re: Is milliseconds correct?

 
 by mederi on: Mar 11 2013
 
Score 50%

The time is actual playback time returned by VLC. If you pause playing video, then you will see stabile actual time position including milliseconds. Even if it is paused, the value is still being refreshed on the screen. For better stability I programmed the sctipt to perform update of time on the screen approximately 2 times per second. You can try to disable it completely for frequent update of time:Quote:
function input_events_handler(var, old, new, data)
-- tt=os.clock()
-- if tt>=(t+.5) then -- OSD update approximately 2 times per second instead of 4-5 times
-- t=tt

...

-- end
end


Reply to this

-

 Re: Re: Is milliseconds correct?

 
 by ravemir on: Mar 12 2013
 
Score 50%

Well, I tried your fix but, as you said, it only speeds up the updates, it doesn't show many differences in the update procedure:
If, for example, I click on the skip bar on a position, with the the video paused, it shows a given time for a fraction of a second, and then skips forward to a different time.

I have, however, found out something interesting: if I skip the video to exactly the same spot, the frames present the same timestamp every time, but if I skip even a pixel to the left/right of that spot, the timestamp of the frame changes.

Could this be a problem calculating the time from the frame numbers? Could the frame numbers themselves be computed wrong when I skip the video (and hence, influence the ms values)?


Reply to this

-

 Re: Re: Re: Is milliseconds correct?

 
 by mederi on: Mar 12 2013
 
Score 50%

VLC is time-based player. Every change in position iniciates some internal decoding procedures causing various events. The extension just reads actual available value of elapsed time several times per second, so VLC is not automatically sending any change of time value to extension. If the played media is of constant bitrate, then it si possible to convert time to frames (seconds * fps = frames). Then there is also some rounding of a result (math.floor()). If it is not accurate enough, then I am sorry but I cannot do much about it.


Reply to this

-

 Re: Re: Re: Re: Is milliseconds correct?

 
 by ravemir on: Mar 12 2013
 
Score 50%

Well, I managed a workaround for this, by using AviDemux, and works perfect. Anyone looking for this feature be sure to check it out.


Reply to this

-

 Re: Re: Re: Re: Is milliseconds correct?

 
 by blackfeet on: Jun 1 2016
 
Score 50%

Hi mederi,
I'm using the Time addon following instructions to downgrade my version, and I'm happy to be using it. But I have also noticed that the milliseconds change in strange ways. For example, if I am paused and I change the playback speed from 0.33x to 0.50x. Also, the time displayed does not always land on the same milliseconds each time I pause on the same frame. It's usually close each time, but it does make me wonder how it is being calculated. I wonder, as you suggest, can the frame rate be used to calculate the decimals displayed, such as 30 frames/sec displays hh:mm:ss.000, .033, .067, .100, .133, and so on? If these times were assigned to frames and did not change it would remove some ambiguity in the time.
I really don't need accuracy to the millisecond, but CONSISTENCY to the hundredth of a second would give me confidence to know exactly which frame I'm on. I'm no coder, so I don't know how feasible it is what I'm asking for.


Reply to this

-

 Re: Re: Re: Re: Re: Is milliseconds correct?

 
 by mederi on: Jun 3 2016
 
Score 50%

I am not VLC developer. The Extension just works with time values provided by VLC.


Reply to this

-
.

 Re: Re: Is milliseconds correct?

 
 by vlcaddon on: Aug 3 2013
 
Score 50%

You should not use os.clock() as the clock() gives the CPU time, which is how much time the thread consumed. This time is a random time depends on how much the program use the CPU. That's why the update jump up and down randomly. And elapse more than a few seconds.

You should use os.time() here with ">".

tt = os.time()
if tt > t then
....

unfortunately, lua has no built in function to retreived time more acturate than 1 sec.

Also the vlc.osd.message should have a durantion value bigger than 1.5 seconds to keep the OSD shows up all the time:

vlc.osd.message(osd_output, channel1, osd_position, 1500000)


Reply to this

-

 Re: Re: Re: Is milliseconds correct?

 
 by vlcaddon on: Aug 3 2013
 
Score 50%

Since vlc itself provide some more precise time value, we can use it here like:

Quote:

...
ttvlc = vlc.var.get(input, "time")
tt = os.time()
if tt > t || ttvlc >= tvlc + .5 then
tvlc = ttvlc
t = tt
...


That will give us some stable update.

[/quote]


Reply to this

-

 Re: Re: Re: Re: Is milliseconds correct?

 
 by mederi on: Aug 4 2013
 
Score 50%

Or you can remove that timing part from the script :) It just reduces a refresh period a bit. The extension seems to work pretty well, so it is not necessary there at all. We cannot talk about precision here. You just see a running time on the screen and if you pause a playing video, then actual time appears.


Reply to this

-
.

 Time available in the recording

 
 by mfakih on: May 2 2013
 
Score 50%

Is it possible that when the addon is showing the time , e.g. the elapsed time ([E]), and "Record" is hit (or shirt+r), the time is also displayed in the recorded file?

This is very useful when someone is taking excerpts from a long video file. The excepts will have their time (relative to the original file) within them. VLC does not put the recording time in the filename of the result file, only the system time.


Reply to this

-

 Re: Time available in the recording

 
 by mederi on: May 3 2013
 
Score 50%

Hi! It is not possible to do it through the Record button. You should stream a transcoded input with Marquee subpicture filter into a file. Please search VLC wiki and forums for more information about Marquee sub filter.


Reply to this

-
.

 autostart

 
 by ignorer on: May 24 2013
 
Score 50%

is there anyway to get this extension to autostart or autoload when i run VLC


Reply to this

-
.

 Re: autostart

 
 by mederi on: May 24 2013
 
Score 50%

Autostart of VLC extensions is not implemented yet.


Reply to this

-

 Re: Re: autostart

 
 by ignorer on: May 24 2013
 
Score 50%

would i be able to use lua interpreter if it was an .luac module


Reply to this

-

 Re: Re: Re: autostart

 
 by mederi on: May 26 2013
 
Score 50%

Compiled (.luac) or non-compiled (.lua) Lua scripts work.


Reply to this

-

 How to do it using VLC without a script/extension.

 
 by Chromatic on: Jun 30 2013
 
Score 50%

From what I can tell, this script isn't necessary.

Simply use the Video Effects overlay "Add text" -- and use the variables -- $T and $D .

The $T variable will show the running time of the current video in real time.. and $D if you want it displayed, will show the full duration/length of the video being played.

So it would look something like 00:32:02/01:30:00

If you want the filename shown as well, the variable $N will show the filename.

The add text will let you position it anywhere on the screen.. You can adjust the font and color with the other advanced preferences in VLC.

Take care.


Reply to this

-

 Comparing...

 
 by Alequito on: Sep 8 2013
 
Score 50%

Using the Video Effects overlay "Add text", in VLC 2.0.8 Twoflower, there are bad points:
●A stronger "heart beating" text effect.
●If you click Stop and later Play, the text disappear.

That's why I prefer the addon.


Reply to this

-

 Is it possible copy to clipboard?

 
 by Alequito on: Sep 8 2013
 
Score 50%

I was thinking... If you can get the total time of the movie maybe you can get some "codec information (Media Information)"... duration, resolution and size, and put it on the clipboard.
Or at least, what file contains that Media Information?

readtracksinfo(mrl)
What is it? How I use it?
Sorry, any idea.


Reply to this

-

 Re: Is it possible copy to clipboard?

 
 by mederi on: Sep 8 2013
 
Score 50%

Yes, it is possible to put some text information into the clipboard in Windows. There is an extension:
>> http://forum.videolan.org/viewtopic.php?f=29&t=101114&p=341439#p341211
And it is also possible to read the Codec Information. There is an interface script, that displays it on the screen in a playing video by pressing the "t" hotkey:
>> http://forum.videolan.org/viewtopic.php?f=29&t=111880
So duration is available (if it is available :), resolution is available within Codec Information. By size do you mean a file size of a played media file?


Reply to this

goto page: prev   1  2  3  4 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team