Jump to time Previous frame v3 Original

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

1
Score 52%
Description:

Jump to time (Previous frame) is VLC Extension that can:
- jump to a desired time in a played media;
- jump forward/backward by a desired time length;
- split-second jumps imitating previous/next frame;*
- show actual playback time with milliseconds;
- use time longer than 24 hours;
- repeat a desired scene again and again (A-loop);
- convert time.
It cannot make a cup of coffee for you :-)

Automatic DOWNLOAD & INSTALLATION of the extension is now (VLC-2.2) available through the Addons Manager in VLC menu (Tools > Plugins and extensions).

Manual DOWNLOAD & INSTALLATION:
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 by going to the "View" menu or "Vlc > Extensions" on Mac OS X.

Last changelog:

v3.0 (11.2.2018) 33721 11 months ago

- fixed time in microseconds for VLC 3;
- set 1/FPS as default value;

ate9

3 years ago

-- get OS unix way
d:add_label(io.popen("uname -s"):read("*l") , 1,4,2,1)

-- get exact version OS X way
v = assert ( io.popen("sw_vers") )
row = 5;
for s in v:lines() do
d:add_label( s , 2,row,1,1)
row = row + 1
end
v:close()

-- tostring(os.getenv("OSTYPE")), returns nill
-- user config dir is dependent on user name and typically is /Users/username/Library/Application Support/org.videolan.vlc


Screenshots, layouts and env. detection

1. [it's quite ok with default fonts]
http://pasteboard.co/R2ZYGRL.png
2. [if wide version, then I'd vote for this]
http://pasteboard.co/R31wCee.png
3. [as drop down does not seam to react at colspan]
http://pasteboard.co/R32Eon6.png

4. [enviroment]
http://pasteboard.co/R34Vl8w.png


Ampersands "&", keyboard shortcuts do not work at all. Probably best is to remove them.
There is no "default" submit button. I can tab only in between inputs, pressing enter does nothing, dialog or inputs have no default action attached.

Report

ate9

3 years ago

lua environment detection code example

https://github.com/keplerproject/luarocks/blob/master/src/luarocks/cfg.lua

Report

C

mederi

3 years ago

Thank you for your contribution. I will fix it soon.

Report

puchikunch

3 years ago

Good plugin, but not conveniently when management appears in a separate window.
It is worth pressing a pause in a vlc and the window of a plugin appears behind a player.

Report

C

mederi

3 years ago

Sorry, the "always on top" feature is not available for dialog box window of VLC Extensions.
You could have the "Pause/Play" button in the dialog box if it helps you. Just edit the script and insert the new button in function Create_dialog():Quote:d:add_button("&Pause / &Play", function() vlc.playlist.pause() end, 2,4,1,1)

Report

zimon

5 years ago

I got this in debug window when pressing mouse buttons next+previous:
main debug: auto hiding mouse cursor
main debug: VoutDisplayEvent 'mouse button' 8 t=8
main debug: VoutDisplayEvent 'mouse button' 8 t=9
main debug: VoutDisplayEvent 'mouse button' 7 t=8
main debug: VoutDisplayEvent 'mouse button' 7 t=9
main debug: auto hiding mouse cursor

Report

Mind0Master1

5 years ago

Can this add-on still be used with VLC 2.1 on Mac?
b/c
1. no controls in a custom dialog box
2. no more custom hotkeys in this extension (per https://forum.videolan.org/viewtopic.php?f=29&t=100885#p388873)

Report

C

mederi

5 years ago

Please edit the script and remove those two lines with add_callback, del_callback and share your experience here, whether the dialog box in extension works on Mac. I am on Windows XP.

Report

GDswamp

5 years ago

No success with this, sorry to say. I am on VLC 2.0.8 Twoflower, Mac OS 10.8.5. I've tried implementing two lua extensions, this one and another of yours (mederi) for displayi ng the time in tenths of seconds. So far no dice.

In this case I installed in the directory you suggested, and made the suggested edits in Mac's TextEdit program then resaved back to .lua format (first I just deleted the line about "create_dialog()", then also the two other lines you mention in the above comment). No sign of the new functionality when I restart the program. Don't suppose you (mederi) know any Mac user/programmers on the forum who could be enlisted to figure out what's getting lost in translation?

Report

GDswamp

5 years ago

No success with this, sorry to say. I am on VLC 2.0.8 Twoflower, Mac OS 10.8.5. I've tried implementing two lua extensions, this one and another of yours (mederi) for displayi ng the time in tenths of seconds. So far no dice.

In this case I installed in the directory you suggested, and made the suggested edits in Mac's TextEdit program then resaved back to .lua format (first I just deleted the line about "create_dialog()", then also the two other lines you mention in the above comment). No sign of the new functionality when I restart the program. Don't suppose you (mederi) know any Mac user/programmers on the forum who could be enlisted to figure out what's getting lost in translation?

Report

GDswamp

5 years ago

No success with this, sorry to say. I am on VLC 2.0.8 Twoflower, Mac OS 10.8.5. I've tried implementing two lua extensions, this one and another of yours (mederi) for displayi ng the time in tenths of seconds. So far no dice.

In this case I installed in the directory you suggested, and made the suggested edits in Mac's TextEdit program then resaved back to .lua format (first I just deleted the line about "create_dialog()", then also the two other lines you mention in the above comment). No sign of the new functionality when I restart the program. Don't suppose you (mederi) know any Mac user/programmers on the forum who could be enlisted to figure out what's getting lost in translation?

Report

C

mederi

5 years ago

Thank you for feedback. I have just found following video with instructions how to install VLSub extension on Linux, Windows and Mac:
http://www.youtube.com/watch?v=of2wgf_dhQw
You do not need to understand the language there, just jump to the 13-th minute in the video (part about Mac) and watch it.
VLSub extension also uses dialog box and it apparently works on Mac, too. Please install the Previous frame extension the same way like the guy in the video and tell me, whether the extension appears in VLC menu and whether it works. Do not eliminate dialog box by removing create_dialog(). You probably need to eliminate callback as described in my previous comment.
Callbacks probably never worked on Mac. They works on Windows and Linux in VLC-2.0.x, not in new VLC-2.1.x. Please share your experience to provide correct instructions for other users of Mac OS X. Thanks.

Report

gernoth

5 years ago

I would like to assign a hotkey to this action.
However, I cannot find it in the hotkeys dialog.
Any idea how this could be accomplished?

Report

C

mederi

5 years ago

You cannot find it in the hotkeys dialog (VLC preferences) because it is not there. You just activate the extension in VLC menu, then you use the predefined hotkeys Numpad4 and Numpad6 in the player. If you want to define custom hotkeys, then edit the script and use custom key code number (previous_key=52). To find out a key code, just activate the Logger in Help in the dialog box of the extension, focus the player and press a desired key there.

Report

gernoth

5 years ago

yes but I _have_ to activate the extension through the menu? What if I am currently in full screen mode (then I have no menu, hitting Alt key doesnt help). Can you think of any way to bind this to a (maybe exotic) main window keyboard combination?

Report

C

mederi

6 years ago

I tested the extension on a short sample of TS{M2V, M1A} and MKV{AVC1, AAC}. The extension does not work well with these formats if you would like to perform split-second jumps, but it still can be used for longer backward/forward jumps. Tiny jumps work well in AVI{XVID, MP3} format.

Report

v3.0 (11.2.2018) 33721 11 months ago

- fixed time in microseconds for VLC 3;
- set 1/FPS as default value;

6 years ago

v2.1 (28.9.2015) 24717
- compact size layout of the dialog box (a trick with right buttons over spanned text input fields) caused troubles on OS X => no spanning now
- removed ampersands from buttons on OS X as they do not work as hotkeys there
- added "Pause/Play" button

Jump to time 2.0 (11.5.2015) 22382
- reworked and renamed "Previous frame" extension
- libvlc hotkeys (unsupported callbacks since VLC-2.1) replaced with dialog box hotkeys at least

Previous frame 1.0 (10.1.2013)

product-maker adamearle Jul 20 2018

+Maybe call it 1. Time Jumper 2. Time Jog 3. Time Shuffle Loven this.

product-maker 6 6

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv2 or later
version
updated Aug 28 2018
added Jan 10 2013
downloads today
0
page views today 200
System Tags addon gplv2-later