Does anyone know if there is a developer API available for Stagelinq? I have been live streaming sets using OBS for quite a long time, and it would be fantastic to be able to get the now playing information from the denon players in order to create a “now playing” widget for live streaming. I have experimented with some cloud based recognition API’s, however these are generally paid for solutions based on a quota which is a little overkill for this use case.
I know the data is sent, as it is visible in Resolume, however I haven’t come across anything as yet that would let me tap into the data being passed around.
If there is no currently available API, are there any plans to release one?
I don’t think it’s available but I think it’s a great idea and I encourage you to submit it as a feature request. Not sure how much data is communicated via the Stagelinq connect or it’s expandability/limitations.
This would be a great request for both Rekorbox and Serato as I know that these software already capture playlist information.
Thanks for the replies on this one. I think I will pop it in as a feature request. It would certainly be well used from my perspective for live streaming!! There are a lot of OBS solutions out there for serato and virtual DJ that I have noticed, and some for VLC and other players, but nothing yet that can tap into the data sent through Pioneer or Denon’s proprietary protocols.
I may have a look through wireshark to see if there is anything in there I can pick out, but it would certainly be nice if an official API was released for us to develop against as they have for Resolume and Soundswitch.
@crimsonsimon I doubt they would release it to the general public, but it must exist as it’s been used by the companies you mention. Serato and Atomix also used a Denon API to add support to their DJ software.
Have you contacted anyone at Denon? If you’re a developer and meet their requirements then presumably they would work with you.
Ok so I spent a few hours with Wireshark and was able to figure out a decent bit of the protocol.
It’s possible to get the value of almost any parameter on the console. Song info, knob & fader positions, loop status, etc.
Synchronization data on the other hand is much more difficult. I can’t figure out what the data means, but it does appear to be some sort of clock. It isn’t MIDI clock, MTC, or SMPTE though. I’ll dig around more and see if I can get bpm info anywhere.
It should be relatively easy to create an app that fires a midi trigger when a specific song is played. Having it fire at specific points in a song will be much more difficult.
If any developers out there want to help me out on this please send me a message. I don’t have much time to spare on this.
Thanks for this. I haven’t had a chance yet to dig into wireshark, but from what you have found it certainly looks like there is more than enough info to do a simple OBS plugin for now playing…
I will experiment with pcap.net and see if I can write something to that effect.
Great find!! I have downloaded that project and installed golang which is pretty good.
Have tried the code, after a bit of fiddling to get the code to pull from a local repository rather than GitHub and it does appear to work with the sc5000’s.
I am able to pull out all the information required to create a now playing solution which is great. The only drawback to the example is it was written for a prime4 and so is single threaded so I will need to rewrite it to cater for multiple prime devices on the network but so far so good.
Being able to send the track ID to an OBS video overlay would be perfection. I currently use Radr.dj to send track ID to Twitter as a playlist and knowing I could output from my Prime 4 to either to OBS or getting Radr to locally listen somehow (maybe via a plugin).
Well, so far have managed to reverse engineer the GoLang code to make it multi-threaded. Now able to connect to both my SC5000’s at the same time and receive data. Additionally, and this is really useful, I am able to get fader positions from the mixer, so able to check if the fader volume is up on a specific deck which will be useful for updating the now playing info.
A couple of things I need to do, firstly, be able to differentiate between the two SC5000’s as they both send deck1 and deck two information which leads to ambiguous output…should be able to do this from the connection object array I have created which contains the IP.
Secondly need to write the output to a text file in a useful format to use as a text source in OBS…this will need some fine tuning, but so far so good! Exciting!!
I use something called “Now Playing” in Serato DJ and it works exactly like this. Maybe we could pull both of you guys together to incorporate the data as he has already written the code to write track names to a .txt file which refreshes upon each track loaded (with a delay preset - mine is 45 seconds). There is options for prefixing and double lines for each field.
Your method is better as it has fader position will give an even accurate way of knowing which track is ‘on air’ rather than rely on a time delay.
What you have found could be incorporated into his project or vice versa. His configurable menu options for configuring how the text is written work really well in OBS as a text file so maybe you could look at how it is done?
I’ll have to find your stream and see it in action. I get a permanent lower third with the Serato Now Playing app that switches each time the new track kicks in and this seems like you have nailed everything else. Spot on!
EDIT: I guess the “broadcast” commands in the screenshot relate to the new broadcast function in the X1800/X1850 firmware that was just released.
Any chance of sharing the code? I managed to compile the github go library and it does output a bit lot of information…but I’m not a coder as such and my head started to hurt when I tried to filter the text and output it to a file as it kept throwing up errors in the compiler
Hi all, apologies for going awol, I have been playing around with this. At the moment the code is sc5000 only, as that is what I have. It’s been a bit of a nightmare with soundswitch though, takes a couple of attempts to get the two to play nicely together…I think it is because I am running them together on the same machine.
Sadly I haven’t had much luck finding a good debugger to find out what is actually happening behind the scenes when they interfere with each other.
If you would like a copy of the main.go code send me a PM and I will pass on what I have as a starting point.