Is there a method to read video caption from the file meta or file name?

zeikai

New Member
I have been searching for a plugin or scripting method to use a file's meta title or file name as auto detected caption to show when the video file is playing. Does such a method exist?

file-meta.jpg
 

AaronD

Active Member
I think there might be a plugin that attempts to do that, but I don't remember very well. It might actually do a content ID with some online provider though, and show whatever *that* comes up with instead of what's in the file.

There are also apps that will read, modify, and (try to) automatically manage that metadata. If you're adding videos manually, maybe you can just add a step to look at it in one of those apps and copy/paste into a Text Source in OBS?
 

AaronD

Active Member
The plugin Tuna may be the answer you're looking for.
Yep! That's what I was thinking of:
 

zeikai

New Member
The plugin Tuna may be the answer you're looking for.
Thanks for the suggestion, however that plugin does not do the task desired. It is entirely a manual process to add multiple files to match each video and does not work with playlists as stated in the docs:

"This currently doesn't work if your VLC source is in a group or otherwise nested. The hotkeys for switching can be configured in the hotkeys tab in the settings dialog of obs."

I do this action with PHP and javascript on a website when reading .MP4 files from a directory, using a REGEX process. A file with name raja_kumari-shook.mp4 when loaded in the player (Jplayer.js) is overlaid with the title Raja Kumari - Shook, and if other data such as date, producer etc exist and separated by specific delimiters.

I have been looking at the methods for scripts to determine if there is a method I could add to get this done.
2023-04-25 13_35_56.jpg
 

Suslik V

Active Member
in a group or ... nested
Does your VLC source in OBS is grouped with other sources or nested into the other scenes? Then Ungroup it... ;)

If you have issues with the plugin write them to the developer of the plugin on the plugin's page, and maybe you'll find the solution you miss.

Edit:
And if nothing helps --> YouTube, search for "obs now playing overlay for vlc"
 
Last edited:

zeikai

New Member
Does your VLC source in OBS is grouped with other sources or nested into the other scenes? Then Ungroup it... ;)

If you have issues with the plugin write them to the developer of the plugin on the plugin's page, and maybe you'll find the solution you miss.

Edit:
And if nothing helps --> YouTube, search for "obs now playing overlay for vlc"
Keep the snide comments to yourself. I never stated that there is an "issue" with the plugin. Anyway I have already developed a script to handle the process simply.
2023-04-26 15_20_02.jpg
 

Suslik V

Active Member
have already developed a script to handle the process simply...
You can share the solution here too:
 
Top