Tuna

Tuna v1.9.9

Andre Brito

New Member
There's no way to do that, where should it get that information from?
Thanks for the answer. I have no idea where to get this information, but it is a tip for you to develop, it would be very useful for all DJs who do live on Facebook and be able to display the name of the song that is currently playing and display on OBS.
 

univrsal

Active Member
Thanks for the answer. I have no idea where to get this information, but it is a tip for you to develop, it would be very useful for all DJs who do live on Facebook and be able to display the name of the song that is currently playing and display on OBS.
The plugin can only get song information by requesting it from supported music sources, there's no universal way to just support every music player.
 

werelwolf

New Member
I have installed homebrew to my Mac (Cataline 10.15.3) and install Tuna (v1.4.1). I used to get an error preventing OBS (24.0.6) from using Tuna upon launch due to unknown developer and so the software can not be validated as 'safe', as per attached photo. As it turns out, I had to change the following file permissions for a few errors during install to disappear, as follows:

Werel@Smelly-Wolfs-MacBook-Pro ~ % sudo chown -R $(whoami) /usr/local/var/homebrew
Werel@Smelly-Wolfs-MacBook-Pro ~ % sudo chown -R $(whoami) /usr/local/etc/bash_completion.d
Werel@Smelly-Wolfs-MacBook-Pro ~ % sudo chown -R $(whoami) /usr/local/etc/bash_completion.d
Werel@Smelly-Wolfs-MacBook-Pro ~ % sudo chown -R $(whoami) /usr/local/Homebrew
Werel@Smelly-Wolfs-MacBook-Pro ~ %

The install then ran without any issue, with a log if as follows:

MacBook-Pro tuna.v1.4.1.mac % ./install-mac.sh
Checking for brew..
Checking for libmpdclient...
libmpdclient is already installed
Checking for taglib...
taglib is already installed
Uninstalling old version
Deleting /Users/Werel/Library/Application Support/obs-studio/plugins/tuna, is this ok? [y/N] y

Deleting...
Creating plugin folder
Moving plugin over
mv: rename tuna to /Users/Werel/Library/Application Support/obs-studio/plugins/tuna: No such file or directory
Done!

and OBS does not shout any trouble at me upon start up, now.

However, my issue is that I do not have any Tuna option in the Tools menu for OBS, as illustrated in the additional attachment.

I have also provided the latest OBS Log file text, which does not list tuna.so .

20:10:50.454: CPU Name: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
20:10:50.454: CPU Speed: 2600MHz
20:10:50.454: Physical Cores: 2, Logical Cores: 4
20:10:50.454: Physical Memory: 8192MB Total
20:10:50.454: OS Name: Mac OS X (NSMACHOperatingSystem)
20:10:50.454: OS Version: Version 10.15.3 (Build 19D76)
20:10:50.454: Kernel Version: 19.3.0
20:10:50.456: hotkeys-cocoa: Getting keyboard keys failed
20:10:50.457: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
20:10:50.457: Portable mode: false
20:10:50.567: OBS 24.0.6 (mac)
20:10:50.567: ---------------------------------
20:10:50.568: ---------------------------------
20:10:50.568: audio settings reset:
20:10:50.568: samples per sec: 44100
20:10:50.568: speakers: 2
20:10:50.570: ---------------------------------
20:10:50.570: Initializing OpenGL...
20:10:50.594: Loading up OpenGL on adapter Intel Inc. Intel Iris OpenGL Engine
20:10:50.594: OpenGL loaded successfully, version 4.1 INTEL-14.4.23, shading language 4.10
20:10:50.705: ---------------------------------
20:10:50.705: video settings reset:
20:10:50.705: base resolution: 1280x800
20:10:50.705: output resolution: 852x532
20:10:50.705: downscale filter: Bicubic
20:10:50.705: fps: 30/1
20:10:50.705: format: NV12
20:10:50.705: YUV mode: 601/Partial
20:10:50.705: NV12 texture support not available
20:10:50.705: Audio monitoring device:
20:10:50.705: name: Default
20:10:50.705: id: default
20:10:50.705: ---------------------------------
20:10:50.708: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
20:10:50.719: os_dlopen(libpython3.7m.dylib->libpython3.7m.dylib): dlopen(libpython3.7m.dylib, 257): image not found
20:10:50.719:
20:10:50.719: [Python] Could not load library: libpython3.7m.dylib
20:10:50.769: No blackmagic support
20:10:50.835: [VideoToolbox encoder]: Adding VideoToolbox H264 encoders
20:10:50.868: [obs-browser]: Version 2.7.16
20:10:50.879: os_dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib->/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib): dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 257): image not found
20:10:50.879:
20:10:50.879: Couldn't find VLC installation, VLC video source disabled
20:10:50.880: ---------------------------------
20:10:50.880: Loaded Modules:
20:10:50.880: vlc-video.so
20:10:50.880: text-freetype2.so
20:10:50.880: rtmp-services.so
20:10:50.880: obs-x264.so
20:10:50.880: obs-vst.so
20:10:50.880: obs-transitions.so
20:10:50.880: obs-outputs.so
20:10:50.880: obs-libfdk.so
20:10:50.880: obs-filters.so
20:10:50.880: obs-ffmpeg.so
20:10:50.880: obs-browser.so
20:10:50.880: mac-vth264.so
20:10:50.880: mac-syphon.so
20:10:50.880: mac-decklink.so
20:10:50.880: mac-capture.so
20:10:50.880: mac-avcapture.so
20:10:50.880: linux-jack.so
20:10:50.880: image-source.so
20:10:50.880: frontend-tools.so
20:10:50.880: decklink-ouput-ui.so
20:10:50.880: coreaudio-encoder.so
20:10:50.880: ---------------------------------
20:10:50.880: os_dlopen(../obs-plugins/obs-browser->../obs-plugins/obs-browser.so): dlopen(../obs-plugins/obs-browser.so, 257): image not found
20:10:50.880:
20:10:50.880: ==== Startup complete ===============================================
20:10:50.908: All scene data cleared
20:10:50.908: ------------------------------------------------
20:10:50.943: coreaudio: device 'Built-in Microphone' initialized
20:10:50.951: Ausdom Camera: Could not initialize device with unique ID '0x141000000bda58b0'
20:10:50.951: coreaudio: failed to find device uid: AppleUSBAudioEngine:Generic:FULL HD 1080P Webcam:200901010001:3, waiting for connection
20:10:51.017: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds (source: Mic/Aux)
20:10:51.017:
20:10:51.019: coreaudio: device 'iShowU Audio Capture' initialized
20:10:51.019: Switched to scene 'Painting'
20:10:51.019: ------------------------------------------------
20:10:51.019: Loaded scenes:
20:10:51.019: - scene 'Scene':
20:10:51.019: - source: 'Ausdom Camera' (av_capture_input)
20:10:51.019: - source: 'Ausdom Mic' (coreaudio_input_capture)
20:10:51.019: - scene 'Painting':
20:10:51.022: - source: 'Ausdom Camera' (av_capture_input)
20:10:51.022: - source: 'Ausdom Mic' (coreaudio_input_capture)
20:10:51.022: - source: 'WerelFrame' (image_source)
20:10:51.022: - source: 'iShow Desktop Capture' (coreaudio_input_capture)
20:10:51.022: ------------------------------------------------
20:11:46.413: User added source 'Text (FreeType 2)' (text_ft2_source) to scene 'Painting'
20:11:59.433: User Removed source 'Text (FreeType 2)' (text_ft2_source) from scene 'Painting'

Can anyone give my a hand about how to complete installation?

Thank you,

Werel Wolf
 

Attachments

  • Screen Shot 2020-03-22 at 7.58.58 PM.png
    Screen Shot 2020-03-22 at 7.58.58 PM.png
    74.3 KB · Views: 71
  • Screen Shot 2020-03-22 at 8.31.01 PM.png
    Screen Shot 2020-03-22 at 8.31.01 PM.png
    178.8 KB · Views: 69

werelwolf

New Member
I have installed homebrew to my Mac (Cataline 10.15.3) and install Tuna (v1.4.1). I used to get an error preventing OBS (24.0.6) from using Tuna upon launch due to unknown developer and so the software can not be validated as 'safe', as per attached photo. As it turns out, I had to change the following file permissions for a few errors during install to disappear, as follows:


The install then ran without any issue, with a log if as follows:


and OBS does not shout any trouble at me upon start up, now.

However, my issue is that I do not have any Tuna option in the Tools menu for OBS, as illustrated in the additional attachment.

I have also provided the latest OBS Log file text, which does not list tuna.so .


Can anyone give my a hand about how to complete installation?

Thank you,

Werel Wolf

I was able to resolve my issue. It turns out that it was not installing tuna into the plugins directory of my user/Library, but rather it built it inside the extracted downloaded zip folder of the plugin. I copied the tuna/ directory from where it build it and put it into my user/Library OBS plugins folder manually.

Upon OBS startup, I was again asked about that security issue as detailed in my previous post. I was able to follow This Link from the Apple Support website to allow the file to run.

I see the Tuna settings option from the Tools dropdown in OBS. I am getting the Spotify and tuna API playing together via the Wizard (or whatever it's called :9 )

Right now I am looking for the output path and how to grab the data. I think that information is already explained on the forum, I just need to find it.

Thank you,

Werelwolf
 

univrsal

Active Member
I was able to resolve my issue. It turns out that it was not installing tuna into the plugins directory of my user/Library, but rather it built it inside the extracted downloaded zip folder of the plugin. I copied the tuna/ directory from where it build it and put it into my user/Library OBS plugins folder manually.

Upon OBS startup, I was again asked about that security issue as detailed in my previous post. I was able to follow This Link from the Apple Support website to allow the file to run.

I see the Tuna settings option from the Tools dropdown in OBS. I am getting the Spotify and tuna API playing together via the Wizard (or whatever it's called :9 )

Right now I am looking for the output path and how to grab the data. I think that information is already explained on the forum, I just need to find it.

Thank you,

Werelwolf
The basics tab shows where the song information and cover image are saved to.
 

The Double V

New Member
The plugin can only get song information by requesting it from supported music sources, there's no universal way to just support every music player.

Dear @universalip

I don't know how they do it, but I'm Djing at CUE (https://cue.live/) just by streaming my external audio card, that has my DJ controller connected, no software in the middle, and the track is recognized as you can see. I would like to do the same with OBS. Being able to send music through my soundcard to some sort of Shazam in the cloud that writes the track info into a text file that can be read by OBS. Any idea?

Some DJ colleagues do it, but using a DJ software in the middle (Rekordbox, Traktor, etc), but I have an standalone equipment that doesn't need a computer. Apparently it's possible, as you can see with https://cue.live/ Any clue?
 

univrsal

Active Member
Dear @universalip

I don't know how they do it, but I'm Djing at CUE (https://cue.live/) just by streaming my external audio card, that has my DJ controller connected, no software in the middle, and the track is recognized as you can see. I would like to do the same with OBS. Being able to send music through my soundcard to some sort of Shazam in the cloud that writes the track info into a text file that can be read by OBS. Any idea?

Some DJ colleagues do it, but using a DJ software in the middle (Rekordbox, Traktor, etc), but I have an standalone equipment that doesn't need a computer. Apparently it's possible, as you can see with https://cue.live/ Any clue?
I just gave cue.live a test and it didn't recognize any of the songs I played, no matter if it's a popular one or something niche. Are you sure you don't send any additional meta data? The BUTT tool can send song metadata to let cue know what song is playing. Shazam doesn't offer any interface that allows thirdparties to identify songs, so there's no way for me to add anything like that unless someone knows of any other service that does the same and has an API.
 

The Double V

New Member
Thanks for testing. Maybe you tested out of a channel/room. This functionality is only included if you stream within a room. I will screenrecord and share with you. Thanks!!
 

The Double V

New Member
Hi @universallp
Back again with extra info for you.

I did some test already in CUE, using BUTT, but as said, the track name recognition only works when playing within a room like "Dance Music Initiative" or some other. BUTT allows you as you mentioned, to enter a collection file from your computer, I've never used before. I can see the track is recognized in both cases, using the collection.nml file or without it.

Screen Shot 2020-03-28 at 09.29.52.png
Screen Shot 2020-03-28 at 09.30.24.png


I asked a DJ mate and he told me that apparently they have some short of "Shazam" integrated, and when they receive the music, they sample some seconds from the stream and after some seconds later it's recognized and shown. I can see that sometimes fails (not much) and that it's not taking the name from my Collection.nml when I don't use it, as you can see here, that they printed slightly different names from what I have in my Collection

IMG-9943.jpg


In my equipment:

IMG-9944.jpg


In case you want to investigate more, and/or chat with the CUE developer, we have a Discord https://discord.gg/2qGgMz

If you could implement something like that for OBS would be.... amazing. Not needing Spotify, etc!! Really open.

Thanks and great job!!
 
Last edited:

univrsal

Active Member
He doesn't explain how where to get the text and image placeholders. I'm dumb and don't automatically know how to get those.
The text placeholder is in the tuna settings, the placeholder image is in the plugin data directory eg. C:\Program Files\obs-studio\data\obs-plugins\tuna
 

werelwolf

New Member
I am noticing that in my Tuna settings, the Song File Outputs keep resetting to their default of one text file %a - %t . I have tried changing this format as well as adding a new output to a different file, but everything gets removed and the details songs.txt and original format are restored. Same spec as above with my Macbook.

I completely closed OBS and relaunched it which resolved my issue for a couple seconds, but then it continues to happen again.

Any suggestions?
 

univrsal

Active Member
I am noticing that in my Tuna settings, the Song File Outputs keep resetting to their default of one text file %a - %t . I have tried changing this format as well as adding a new output to a different file, but everything gets removed and the details songs.txt and original format are restored. Same spec as above with my Macbook.

I completely closed OBS and relaunched it which resolved my issue for a couple seconds, but then it continues to happen again.

Any suggestions?
Can you give me the obs studio log file? Also can you make sure that the folder /Users/$USER/.config/ exists?
 

werelwolf

New Member
Can you give me the obs studio log file? Also can you make sure that the folder /Users/$USER/.config/ exists?

I also did not have that folder and have created it.

I have since found that tuna creates outputs.json . Testing so far has remediated my issue.

Thanks!!
 

Attachments

  • 2020-04-03 18-07-22.txt
    32 KB · Views: 36

DanHayes

New Member
I also did not have that folder and have created it.

I have since found that tuna creates outputs.json . Testing so far has remediated my issue.

Thanks!!
How did you make the .config folder in user. OS X says

"
You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name.
 

univrsal

Active Member
How did you make the .config folder in user. OS X says

"
You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name.
Open a terminal and enter mkdir ~/.config
 
Top