Now Playing in texts

VLC Extensions streaming

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
Score 75.5%
Description:

This plugin reads the tags "Title", "Artist" and "Album" of the currently played music, and writes into 5 text files ( np_album.txt | np_artist.txt | np_artist_title.txt | np_title.txt | np_radio.txt )
Note: if no "Title" as found, the file name is used.

Can be used together with any software that can read input from a text file, such as streaming software (OBS, OBS Studio...).

np_album.txt = Contains just the Album.
np_artist.txt = Contains just the Artist.
np_title.txt = Contains just the Title.
np_artist_title.txt = Contains the name of Artist and the Title in one line.
np_radio.txt = Contains the currently played music. Ideal if you listen a web radio. (If you not listen a web radio, identical to np_title.txt )
np_uri.txt = Contains the file location in URI format.

If you have other ideas for outputs TXT's, do not hesitate to proposed.

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

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

Place this 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:

1.5 - URI file location 1 year ago

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

boscotty

23 days 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

21 days 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

3 months 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

5 months 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

9 months 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

9 months 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

9 months ago

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

Report

nuklearapple

10 months 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

10 months ago

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

Report

nuklearapple

10 months ago

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

Report

tonton

11 months 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

11 months 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

11 months ago

NVM Man Works like a charm

Report

VLCJNR

1 year 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

1 year 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

1 year 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

1 year ago

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

Report

BootlegNL

1 year 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

1 year 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

1 year 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

1 year 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

1 year ago

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

Report

C

un_pogaz

1 year ago

I added "np url.text" which contains the location of the file in URI format.
This should work, the URI is just a, more technical, alternative for location of a file.

Report

ronchristie52

1 year ago

First of all, thanks for this extension. I listen to bluesradio.gr (if you're a blues fan, you've got to check it out!) and I took your lua file and added another function to handle the "Now Playing" metadata item. I send it to a np_now_playing.txt file, then pick that up in my raspberry pi screensaver, dump the text to the display, and I've got a continuously updated display of what I'm listening to. Works like a charm.

Report

C

un_pogaz

1 year ago

and now it's a official feature. Thank for the tip.
Note: the output file is called "np_radio.txt" because, except if you listen a web radio, is identical to "np_title.txt"

Report

1.5 - URI file location 1 year ago

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

1.4 - Web radio support 1 year 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 2 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 2 years ago

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

1.1 - Fontion "Clear files" 2 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
product-maker Base: 4 x 5.0 Ratings
arnoldwaswaiga
May 19 2018
YuryV
Apr 26 2018
Dupcys
Feb 06 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
1.5
updated May 05 2018
added Mar 12 2017
downloads 24h
5
page views 24h 40
System Tags addon