Source i (link to git-repo or to original if based on someone elses unmodified work):

https://www.opencode.net/tristargod/vlcsubber

Original
4
Become a Fan
5.9

Description:
# VLCSubber

A lot of shows/movies come with available subtitles. This extension searches the folder the playing video is in for appropriate subtitles. Default is set to English. Language can be changed by modifyng variable _TARGETLANG via a text editor. Use _REVERSESUBSELECTION to reverse subtitle selection order.

-- Update 2020-08-13
This extension will automatically activate on each video played in vlc. You can turn this off by changing _AUTOREACTIVATE from true to false

-- Update 2021-05-15
_REVERSESUBSELECTION flag was added allowing users to reverse subtitle selection order

## Instructions

1. Download extension
2. If you primary language is not English, you can change the default language from English to your language by updating the variable _TARGETLANG in the downloaded .lua file. Else, skip this step.
3. Depending on your OS, copy lua file into

* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions
* Windows (all users x86): C:\Program Files (x86)\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/

4. Restart VLC player and play a movie
5. In the menu, click Views and the VLCSubber

Tested working on Win 10 x64

## DISCLAIMER

This software/resource is provided "as is" without warranty of any kind, either expressed or implied and such software is to be used at your own risk. While it was created taking many aspects and factors in mind, the use of this software/resource is done at your own discretion and risk and with agreement that you will be solely responsible for any damage to your computer system or loss of data that results from such activities. No advice or information, whether oral or written, obtained by you from us shall create any warranty for the software/resource. Additionally, we make no warranty that: (a) This software/resource will meet your requirements, (b) This software/resource will be uninterrupted, timely, secure or error-free, (c) The results from the use of this software/resource will be effective, accurate or reliable, (d) The quality of this software/resource will meet your expectations, (e) If errors or problems occur in connection with a download of this software/resource obtained from the links on this website, they will be corrected.
Last changelog:

Update 1.8 - 2021-05-18

Reverted to v5 and re-added features to resolve bugs


Ratings & Comments

7 Comments

naeemh3

10 I've tracked down and fixed the issue. Before the line: "local dr = vlc.io.readdir(dir)" in the search function. I added this: if ISLINUX then dir = "/" .. dir end Apparently, the "/" was missing causing the folder not to be found. It works now, Thank you for the script works great!

naeemh3

lua error: Could not activate extension! in vlc 3.0.17.4

tutingo

does not appear https://ibb.co/n8XqsJY Windows 10 and vlc 3.0.12

tristargod

@tutingo Just tried it on Windows 10 x64 with vlc 3.0.14 and it showed up. Make sure to restart it after dropping it in the extension folder.

tutingo

the file extension was in txt

flipflop

6 Tried to create issue on repo site, but didn't have permissions. Two feature requests: first, the code comments say it will choose the sub file with the largest file size for the desired target language. Please reconsider or allow option to change. Using english as an example, the smaller filesize is usually what is wanted because that the "forced"/foreign language translated to english. The larger filesize is usually the closed-captioned subs where there is a lot of non-spoken, descriptive text (ex. "man nods head", "lady licks lips"). Second request- the audio streams are usually tagged with a language. If the user wants subs for a certain language, but the audio is already in that language, default to not displaying subs. This logic should apply to both external file subs as well as built-in subs.

tristargod

@flipflop Its ordered by alphanumerical order and coincidentally, they ordered in small to large file size (at least the subs I've been using). I added a flag option to reverse it. I also tried implementing the audio logic but some vlc props weren't available when I tried using them. I'll give it a look when I get some time.

Pling
0 Affiliates
Details
license MIT License
version 1.8
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 4

Other VLC Extensions:

Multiple VLC enhancments
tubh
last update date: 12 years ago

Score 4.9

TUNE IN RADIO
willyboy63
last update date: 12 years ago

Score 5.0

Etevaldo Scopel
etevaldo
last update date: 12 years ago

Score 4.7

VLsub 0.9
nonkelleo
last update date: 12 years ago

Score 4.1

IP Webcam
manonlatramee62
last update date: 12 years ago

Score 5.1

TandN Co LLC
tandnone23
last update date: 10 years ago

Score 5.7



System Tags