Family Filter e.g. Audio control based on subtitles

Discuss your Lua playlist, album art and interface scripts.
aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Family Filter e.g. Audio control based on subtitles

Postby aitte » 29 Dec 2016 15:57

Hello,
I am looking for a script that can mute the audio based on a DVD's subtitles. e.g. if a profanity word appears the volume will be set to zero for 5 seconds, and then the audio will resume to it's previous position. Subtitles would also need to be replaced on the fly or turned off.
This seems like something that could be done with Lua scripting?

Any API tips or example are 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: Family Filter e.g. Audio control based on subtitles

Postby mederi » 29 Dec 2016 18:26


aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Re: Family Filter e.g. Audio control based on subtitles

Postby aitte » 31 Dec 2016 02:54

Very close! Thanks for working on this addon. Unfortunately it doesn't appear to work on GNU/Linux, and also requires downloading external .srt files, rather than reading them from a DVD subtrack (where they already exist)

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: Family Filter e.g. Audio control based on subtitles

Postby mederi » 31 Dec 2016 14:44

The extension should work on Linux, too. Some user reported that it works on OS X and he also wrote the button pressing applescript for it. Then the button pressing shell script came from Japan later on.
You can use any subtitle editor or just an ordinary text editor to prepare an effects script (currently only [SKIP] and [MUTE] are supported) for Subtitler.
DVD subtitles are pictures, not the plain text that could be parsed easily. You can download SRT subtitles for your DVD movie or you can rip the subtrack off the DVD and do the OCR to convert subtitles from images to a SRT text file.
Here is something about EDL: https://en.wikipedia.org/wiki/Edit_decision_list

inieuwoudt1
New Cone
New Cone
Posts: 1
Joined: 15 Jan 2020 22:25

Re: Family Filter e.g. Audio control based on subtitles

Postby inieuwoudt1 » 15 Jan 2020 22:28

Not a plugin, but an alternative solution..

https://csharpsoftwareza.blogspot.com/2018/08/movie-profanity-remover.html - Removes the profane words & creates a new clip.
https://csharpsoftwareza.blogspot.com/2019/03/movie-profanity-checker.html - Check a movie for profane words.
A program called UV Media Player on the site removes the profane words while watching.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 7 guests