Now Playing in texts

VLC Extensions streaming text

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
7.3
Description:

This plugin reads the tags of the currently played music, and writes into text files.
Ideal if you want to display the current music on your stream with your streaming software (OBS Studio...).

Basic files
The 6 basic files are automatically generated and contain the most basic metadata

np_title.txt = contains the title of the music.
np_artist.txt = contains the artist of the music.
np_album.txt = contains the album of the music.
np_artist_title.txt = contains the artist and the title of the music.
np_radio.txt = this text use a metadata that more relevant if you listen a web radio.
np_bandcamp.txt = Uses the Bandcamp metadata pattern.

Special files
The 3 special files are automatically generated and contain unique metadata or files useful for debugging.

np_metadata.txt = contains the list of metadata available for the current song.
np_metadata_full.txt = contains a list of all the metadata that can be used in Now Playing in texts, including those empty.
np_artwork.jpg = copy the cover image of the music. If no image is found, a blank/transparent image will be created.

Custom files
Now Playing in texts V2 integrates the possibility of creating its own metadata TXT files with your custom metadata pattern.
Read the HTML doc for more detail.

The TXTs files will be saved in the VLC user director which can be found in the following directory:
Linux: ~/.local/share/vlc/
Windows: %APPDATA%\vlc\
Mac OS X: /Users/%your_name%/Library/Application Support/org.videolan.vlc/

-------------------------
Installation Instructions

Place the "Now Playing in texts.lua" file in the corresponding folder and restart VLC or reload plugin extensions.

Linux:
Current User: ~/.local/share/vlc/lua/extensions/
All Users: /usr/lib/vlc/lua/extensions/

Windows:
Current User: %APPDATA%\vlc\lua\extensions
All Users: %ProgramFiles%\VideoLAN\VLC\lua\extensions\

Mac OS X:
Current User: /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/
All Users: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
Last changelog:

2.0 – Complete rewriting and Custom files 1 month ago

Thanks to a complete rewrite of the code, "Now Playing in texts" uses a custom pattern feature. You can create hundreds of personalized files, read the HTML doc for more detail.
And as a bonus, it is now possible to get the cover.

moustiluigi

8 months ago

For some reason, using VLC 3.0.11 standalone on W10 2004, the txt files don't spawn. VLC was restarted, plugin seems to be working fine. Is there anything I can do to fix that? I already tried to use previous version of the plugin, it doesn't seem to change anything.

Report

10leej

1 year ago

So running this on Debian which uses VLC 3.0.8-0+deb10u1 amd64
I can get this to spawn the .txt files but it won't poplate them, not getting any errors in the log

Report

10leej

1 year ago

Switch to v1.2 seems to have gotten it working

Report

boscotty

1 year ago

Hi! Is this only meant to work with VLC player? Even with both OBS and VLC running, I can't get the information to show up on the text tiles when I run VLC media source.

Report

C

un_pogaz

1 year ago

It is not possible to use Extensions in the "VLC source" of OBS (or I don't know how to do it). So you have to launch VLC separately to use it.

Report

ajthekj

1 year ago

Admittedly, I'm not familiar with lua language. I have managed to create a filename only version of this extension, but need to remove the file extension (i.e. - .mp3). In the function lines below, where do I put what (remove extension/last 3 of characters) in order to accomplish this? ( if item:metas()["filename"] then
io.write(item:metas()["filename"]))

Report

randomniichan

2 years ago

Hello, I extracted the .lua file into the addon folder, it appears into my addon list and in my view menu into my toolbar. However, when I click it in order to activate it, the check mark doesn't appear. I have another addon (VLCSub, a pre-installed addon), and when I click it, it activates.

Any idea how can I fix this ? Thanks !

Report

gly-s

2 years ago

Hi, is there a way to create a jpg or png from the current playing song's art cover in vlc? I would like to display the album cover.
Thank you for making this extension, it's very helpful!

Report

VLCJNR

2 years ago

Hi, is there support for title capture via OBS studio VLC media extension? Trying to capture song title and artist via a text file but the VLC extension is triggered via OBS. Any help appreciated.

Report

C

un_pogaz

2 years ago

No, I don't know how to activate a plugin, neither in the command line, nor in the OBS VLC extension

Report

nuklearapple

2 years ago

Hey man. I have a question. What is the command for the plugin to be checked? I want to auto check it on start since it doesn't save that.

Report

C

un_pogaz

2 years ago

There is no order, I don't know how to implement them

Report

nuklearapple

2 years ago

I see. Then is there a way to enable all plugins with a command?

Report

tonton

2 years ago

hi there !! on vlc there is no checked icon on script!! can someone tell me why?? i have to click always there for take the titles

Report

nuklearapple

2 years ago

Hey man,
you have no idea how long I was searching for this. Thank god.

Hey so I do not have any txt files from the out put. Can you help me with that?

Thanks

Report

nuklearapple

2 years ago

NVM Man Works like a charm

Report

VLCJNR

2 years ago

Thanks for your reply. Okay, still having issues with VLC extension in OBS Studios, when using advanced media options with monitor only (mute output) it makes the music really soft in stream but with it off its all fine.

Further to this i see the output files now but the content is empty in the files. Mind you media is played via the VLC extension with OBS Studios.

Please help.

URGENT!!!

Report

C

un_pogaz

2 years ago

You use VLC in OBS?
Um, unfortunately, it doesn't seem possible to activate an extension in this way

Lua scripts (like my extension) can only be activated by the GUI.

You have to launch VLC (standalone), activate the script. Then launch OBS (standalone) and read the texts (source GDI+)
The two software must work at the same time separately, sory.

If you discovered how to do it (in OBS) I would be interested too, thank you.

Report

VLCJNR

2 years ago

Is there still support for this? I've added the .lua to the folder and the extension in OBS is running. Unsure how to restart the plugin. And no output files can be found.

Report

C

un_pogaz

2 years ago

To enable the script in VLC - Menu > View > Now Playing in texts (there is a small "checked" if it is enabled)

Report

BootlegNL

3 years ago

Do you think it will be possible to implement a feature that lets the user edit the output of the string of text? For example, I would like to be able to display the song as:

Now Playing: Artist - Title

Also, the string just gets repeated right after eachother, without spaces like this:

Artist - TitleArtist - TitleArtist - Title

Even if only some space is added between the strings would be a huge improvement. Thanks!-

Report

BootlegNL

3 years ago

For anyone that wants a quick fix, I've got it to work like this:

Open the .lua file with notepad

Replace this string:

io.write(item:metas()["now_playing"]

With this edited string:

io.write(" Now Playing: " .. item:metas()["now_playing"])

I'm playing music with an internet radio stream through vlc so I edited the radio section of the code but I think this will work with any of the playing methods. Just make sure to edit the right section of the code.

Hope it helps!

Report

EdwardBackstrom

3 years ago

Is there a way to save a local file url for the current coverart to np_cover.txt? This would be useful for programs such as Rainmeter. The file just needs to be the url, the reading program would be responsible for handling the image regardless of file format.

Report

geekpeter

3 years ago

Instead of the mp3's actual file location i think un_pogaz means something like the album art jpg stored in %APPDATA%\vlc\art\artist, basically a means to get the current songs album cover art in a useable place just like your .txt files, any way to have the album art saved along with your txt files? i place the .txt files in my ramdrive to limit all those txt files writing tons of stuff to my hdd, the only thing missing for me is also album art to make OBS show everything i want from 1 source/addon.

Report

geekpeter

3 years ago

used wrong name above, meant to reply to edward :)

Report

2.0 – Complete rewriting and Custom files 1 month ago

Thanks to a complete rewrite of the code, "Now Playing in texts" uses a custom pattern feature. You can create hundreds of personalized files, read the HTML doc for more detail.
And as a bonus, it is now possible to get the cover.

1.5 - URI file location 3 years ago

Add "np_uri.txt" contains the file location in URI format.

1.4 - Web radio support 3 years ago

Add "np_radio.txt" contains the currently played music. (If you not listen a web radio, identical to np_title.txt)
(Thanks ronchristie52 for this tip)

1.3 - Clear TXT's if no track 4 years ago

*The TXT's are cleared if no track is played or found (Stop or end of playlist, but Pause keep the files).

1.2 - "Artist - Title" feature 4 years ago

*Add "np_artist_title.txt" containing the Artiste name and the Title in one line. *Code optimization.

1.1 - Fontion "Clear files" 4 years ago

*Add a fontion "Clear files", when you disable the plugin or left VLC, the TXT's files are cleared. *Add a msg's for debug.

12345678910
7
product-maker ragab Oct 29 2017 9 excellent
كيفية التحميل
product-maker aaraoadf Oct 01 2017 9 excellent
product-maker nsema13 May 16 2017 9 excellent
product-maker waleedkolkol May 03 2017 9 excellent
product-maker b1nary1 Apr 30 2017 9 excellent
product-maker RobbieDowns Mar 24 2017 9 excellent
product-maker st365 Mar 17 2017 9 excellent
Be the first to comment
arnoldwaswaiga
May 19 2018
YuryV
Apr 27 2018
Dupcys
Feb 07 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
2.0
updated May 09 2021
added Mar 12 2017
downloads 24h
7
mediaviews 24h 0
pageviews 24h 74
System Tags addon