Wednesday, January 14, 2026

Scraping music or VLC video source data in OBS using TUNA

This will show how you can parse some data out of an OBS VLC Playlist.


First create scene with a VLC Playlist with some content.  

In this example there are two MP4 files with color bars.  ColorBars#1 and Colorbars#2



Install TUNA

https://obsproject.com/forum/resources/tuna.843/

Open OBS and go to TOOLS - TUNA SETTINGS

Select "ADD NEW" 

In the "OUTPUT EDITOR" window

Click on the "..." in the "Song info Path"

This will be the TXT file that TUNA will store the info it collects (to be read by OBS later)


Create a file name and click "SAVE"
In this example we are creating a file called "TunaTest"

You'll be taken back to the "OUTPUT EDITOR" window, at the bottom under the variable list, there is a blank bar. 

Enter in the value: {title}

Click on "OK



You'll be taken back to the "TUNA SETTINGS" box.
You should see something similar to below, showing the "title" in the song format, and the path to your text file.


At the bottom of the window 

Select "SONG SOURCE" as "VLC"

Make sure that "Tuna is Running" (press start button if not)

Click on the VLC tab at the top

Beside scene, you will see a drop box containing the different scenes in your OBS, make sure it matches the one that contains your VLC play list.

Beside "SOURCE" you should see your VLC play list, click on "ADD"


You'll see it appear at the bottom

Click on "OK"


Go to your SCENE that contains your VLC Play list and create a "TEXT (GDI+)" source


Select "READ FROM FILE"

Click on "BROWSE" and select your TunaTest file


Click on "SELECT FONT"

Give it a suitable size for your test



Align your test


Assuming your VLC play list is playing, you should see this value changing between the different file names



No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.