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 2 years ago

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

ronchristie52

2 years 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

2 years 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

ronchristie52

2 years ago

I forgot to mention that the vlc.item array element is labeled "now_playing", for those interested in doing something similar.

Report

9

ragab

2 years ago

9 كيفية التحميل

Report

whodafispaul

2 years ago

Does not work, have it in lua extenesions, but no text file is created in any folder on my comp, searched every file on my hard drive and its not there.

Report

C

un_pogaz

2 years ago

The extension is not active by default.
To activate the extension, go to the Menu Bar > View > Now Playing in texts
A small check mark ✔ will appear if the extension is active.

Report

Sabretori

3 years ago

Errors:
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: File::seek() -- Failed to set the file pointer.
TagLib: File::length() -- Failed to get the file size.
... Ad Infinitum

Report

PalmaBeats

3 years ago

Can you make it to read the chapters and then write them in a file? It would be so helpful for me. Thanks!

Report

C

un_pogaz

3 years ago

Chapters? Are about Track Number?

Report

PalmaBeats

3 years ago

I mean, these chapters (http://i.imgur.com/Hb3BXRn.png). They are usually found in audiobooks or podcasts of iTunes. Thanks :)

Report

C

un_pogaz

3 years ago

Oh, this.
No, sorry, I do not think it is possible.
(But if it's possible, it's way too much above my skills)
But if you wanted to retrieve chapters (for other usage), use MKVToolNix and MKVExtractGUI-2

Report

PalmaBeats

3 years ago

Thanks for replying.
Unfortunately, MKVExtractGUI-2 extracts only embeded contents of mkv files :/

Report

C

un_pogaz

3 years ago

Transform your original file in a .mkv via MKVToolNix, then use MKVExtract
[Stop off topic / End of discussion]

Report

1.5 - URI file location 2 years ago

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

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

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

1.1 - Fontion "Clear files" 3 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 pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.5
updated May 05 2018
added Mar 12 2017
downloads 24h
4
mediaviews 24h 0
pageviews 24h 34
System Tags addon