Skip/Override A Clip in a Movie

Discuss your Lua playlist, album art and interface scripts.
roumieh2000
New Cone
New Cone
Posts: 6
Joined: 03 Oct 2013 17:27

Skip/Override A Clip in a Movie

Postby roumieh2000 » 03 Oct 2013 17:39

I was wondering here if I could load a file similar to .srt of which tells vlc to skip certain clips in a movie.

I would use it to skip certain parts in the movie automatically without interfering with the player.

Ex. Skip 1:30:00-1:30:30 would jump once the player reaches the first timing to the second one immediately.

Any ideas are much appreciated.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Skip/Override A Clip in a Movie

Postby mederi » 03 Oct 2013 17:58

Can you use Subtitler (lite) within VLC-2.0.x to play SRT subtitles? Then some modification of the script will do what you need.

roumieh2000
New Cone
New Cone
Posts: 6
Joined: 03 Oct 2013 17:27

Re: Skip/Override A Clip in a Movie

Postby roumieh2000 » 03 Oct 2013 18:26

Is there any documentation that i could use to read|develop such script..

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Skip/Override A Clip in a Movie

Postby mederi » 04 Oct 2013 14:15

Pinned topic "Getting started?"
Try this:
Find line 136> subtitle=v
Insert next new lines there>

Code: Select all

if not BINGO then local duration = vlc.var.get(input,"length") vlc.var.set(input,"position", subtitle[2] / duration) output_osd = false break end

bcourts
New Cone
New Cone
Posts: 9
Joined: 26 Feb 2014 03:28

Re: Skip/Override A Clip in a Movie

Postby bcourts » 27 Feb 2014 17:36

You could try my Clipper extension at http://addons.videolan.org/content/show ... ent=163792. It does not trim the video file itself, nor make other changes to the file. Clipper allows you to visually go through a video (or several videos) and decide where to start and stop each one, and split a video into two segments.
For the example given, you would split the video at 1:30:00, then set the start time for the next video at 1:30:30. If you wanted to skip another portion, you would split the second segment and set a start time for the third segment. You would end up with a playlist with an entry for each segment of the movie to be shown.
After you save the playlist with that information, you (and anyone else) can load the playlist with VLC''s "Media | Open File" menu item, without using the extension.

roumieh2000
New Cone
New Cone
Posts: 6
Joined: 03 Oct 2013 17:27

Re: Skip/Override A Clip in a Movie

Postby roumieh2000 » 17 May 2018 15:42

Pinned topic "Getting started?"
Try this:
Find line 136> subtitle=v
Insert next new lines there>

Code: Select all

if not BINGO then local duration = vlc.var.get(input,"length") vlc.var.set(input,"position", subtitle[2] / duration) output_osd = false break end
Did you try it for yourself, I am still interested in making this function available within the srt file itself as a cutlist

I need a sample to test it within a clip or a movie

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Skip/Override A Clip in a Movie

Postby mederi » 17 May 2018 20:50

It is already implemented in Subtitler (lite) mod extension and an example of a subtitle file containing [SKIP]/[MUTE] commands is included in the package. The extension script does not work automatically. You must activate it manually in VLC menu and you need to use an external button presser. The usage is a bit cumbersome, but at least it works. I will write an interface script without dialog box support but with the possibility of automatic activation and operation. I will add some more commands (pause, stop, ...).

roumieh2000
New Cone
New Cone
Posts: 6
Joined: 03 Oct 2013 17:27

Re: Skip/Override A Clip in a Movie

Postby roumieh2000 » 18 May 2018 15:35

It is already implemented in Subtitler (lite) mod extension and an example of a subtitle file containing [SKIP]/[MUTE] commands is included in the package. The extension script does not work automatically. You must activate it manually in VLC menu and you need to use an external button presser. The usage is a bit cumbersome, but at least it works. I will write an interface script without dialog box support but with the possibility of automatic activation and operation. I will add some more commands (pause, stop, ...).
I tested yesterday a player called POTPLAYER: https://filehippo.com/download_potplayer/64/ which has this feature in playback options.

A simple PBF file is generated within the movie directory to save the cutlist and load next time automatically.

I am interested in making this available with or seperate from SRT files and having them automatically loaded from external source on internet when the extension is loaded .

I also found an external control interface for VLC called VideoCommander: https://github.com/feg-giessen/videocommander which works on playlist concept serving same purpose and with little tweaking it could be used on a wider level.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Skip/Override A Clip in a Movie

Postby Jean-Baptiste Kempf » 17 Jun 2018 22:29

It's called EditList.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

roumieh2000
New Cone
New Cone
Posts: 6
Joined: 03 Oct 2013 17:27

Re: Skip/Override A Clip in a Movie

Postby roumieh2000 » 29 Jul 2019 09:21

An update on the topic,

I was able to create a plugin that reads command from within SRT file to [SKIP/MUTE] a certain clip within the movie.

Currently I am fine tuning it and planning to create an installer for the plugin

Tested on VLC 2.1.3 Rincewind

sneetsher
New Cone
New Cone
Posts: 1
Joined: 10 Oct 2019 18:40

Re: Skip/Override A Clip in a Movie

Postby sneetsher » 19 Dec 2020 23:54

An update on the topic,

I was able to create a plugin that reads command from within SRT file to [SKIP/MUTE] a certain clip within the movie.

Currently I am fine tuning it and planning to create an installer for the plugin

Tested on VLC 2.1.3 Rincewind
Hi Roumieh2000, had you published it? Even if it is partial at least better for me then starting from scratch.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 6 guests