Page 1 of 1
Skip/Override A Clip in a Movie
Posted: 03 Oct 2013 17:39
by roumieh2000
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.
Re: Skip/Override A Clip in a Movie
Posted: 03 Oct 2013 17:58
by mederi
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.
Re: Skip/Override A Clip in a Movie
Posted: 03 Oct 2013 18:26
by roumieh2000
Is there any documentation that i could use to read|develop such script..
Re: Skip/Override A Clip in a Movie
Posted: 04 Oct 2013 14:15
by mederi
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
Re: Skip/Override A Clip in a Movie
Posted: 27 Feb 2014 17:36
by bcourts
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.
Re: Skip/Override A Clip in a Movie
Posted: 17 May 2018 15:42
by roumieh2000
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
Re: Skip/Override A Clip in a Movie
Posted: 17 May 2018 20:50
by mederi
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, ...).
Re: Skip/Override A Clip in a Movie
Posted: 18 May 2018 15:35
by roumieh2000
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.
Re: Skip/Override A Clip in a Movie
Posted: 17 Jun 2018 22:29
by Jean-Baptiste Kempf
It's called EditList.
Re: Skip/Override A Clip in a Movie
Posted: 29 Jul 2019 09:21
by roumieh2000
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
Re: Skip/Override A Clip in a Movie
Posted: 19 Dec 2020 23:54
by sneetsher
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.