Kodi Community Forum
Kodi used as a dlna audio renderer (player) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Music Support (https://forum.kodi.tv/forumdisplay.php?fid=263)
+--- Thread: Kodi used as a dlna audio renderer (player) (/showthread.php?tid=368483)

Pages: 1 2


Kodi used as a dlna audio renderer (player) - Anthracite - 2022-06-03

I use (among other things) Kodi as a dlna (upnp) audio renderer.

My environment:
Kodi on an Apple Mac (with High Sierra), which is connected via USB to a DAC.
On the Mac there is BubbleUpnp, which controls Kodi via dlna/upnp. Kodi is the audio player/renderer.
On Android I use Linn Kazoo and the BubbleUpnp App as a remote control.
(If you ask why, this is the only known way to play Qobuz on Kodi. But that is not the point here.)

Mostly that works very well.
But there are some glitches, which I like to solve.

1) (most annoying)
Kodi can't do gapless playing. There is always a pause of two seconds between two songs. (You don't like that in live music, or if songs run into one another.)

2.)
After some time (probably after the Mac was in a sleeping state) it is not possible to change the sound volume via dlna any more.

3)
Is it possible to show the title of the song big in the middle?


Is it possible to solve these problems.
(Might be it is worth to have a look into the code? Where?)


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-12

Nada? Rien? Nichts? Nobody is using Kodi as a DLNA player?


RE: Kodi used as a dlna audio renderer (player) - Karellen - 2022-07-12

(2022-07-12, 10:08)Anthracite Wrote: Nobody is using Kodi as a DLNA player?
Not me.


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-12

(2022-07-12, 10:08)Anthracite Wrote: Nada? Rien? Nichts? Nobody is using Kodi as a DLNA player?

I use the Kodi music player it with the Mezzmo Kodi addon.  Normally I use it with a Mezzmo server but it supports other uPNP/DLNA sources.  Gapless audio is available with Mezzmo uPNP servers.  I can't speak for other DLNA servers.  I support the addon so it you want to try it and have questions, feel free to let me know.  There is a support thread here.  I am actually looking for more folks to use it for music to add features of interest.


Jeff


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-12

@jbinkley60 
Thanks. The next days I'll try the plugin.


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-13

(2022-07-12, 14:34)jbinkley60 Wrote: if you want to try it
I tried it and I failed. BubbleUpnp does not see the Mezzmo plugin, and the Mezzmo plugin can't find the BubbleUpnp server.

BubbleUpnp finds an audio renderer automatically or it does not find the renderer at all. In this case the latter. I only see normal Kodi there. I think I should see the Mezzmo plugin as a second audio renderer there, or do I have a misunderstanding in the way this is working?

In the other direction the plugin does not find BubbleUpnp. If I add the server manually in the Mizzmo plugin, then I can enter the IP and I get a list with around seven server types, but no BubbleUpnp there, and whatever I chose, when I enter the port number then, after 60 seconds I always get an error message. (The Mizzmo plugin can find my media server - Qnap standard - without any problems and that is working, but it does not solve my main problem.)

(By the way, when I configured a bad server manually, quit the plugin after that, then I can't enter the plugin again - the error message seems to hinder me - and I can't remove the bad server definition.)


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-13

(2022-07-13, 17:05)Anthracite Wrote:
(2022-07-12, 14:34)jbinkley60 Wrote: if you want to try it
I tried it and I failed. BubbleUpnp does not see the Mezzmo plugin, and the Mezzmo plugin can't find the BubbleUpnp server.

BubbleUpnp finds an audio renderer automatically or it does not find the renderer at all. In this case the latter. I only see normal Kodi there. I think I should see the Mezzmo plugin as a second audio renderer there, or do I have a misunderstanding in the way this is working?

In the other direction the plugin does not find BubbleUpnp. If I add the server manually in the Mizzmo plugin, then I can enter the IP and I get a list with around seven server types, but no BubbleUpnp there, and whatever I chose, when I enter the port number then, after 60 seconds I always get an error message. (The Mizzmo plugin can find my media server - Qnap standard - without any problems and that is working, but it does not solve my main problem.)

(By the way, when I configured a bad server manually, quit the plugin after that, then I can't enter the plugin again - the error message seems to hinder me - and I can't remove the bad server definition.)

BubbleUpnp will not see the addon (until it connects and you browse Bubbleupnp)  but the addon should see BubbleUpnp.  Bubbleupnp can't be added manually because it uses a dynamic connection string.  Bubbleupnp should respond to the addon broadcast which the addon will see and add it to the server list.  The addon is a DMP not a DMR.  They are similar except a DMR can be controlled remotely via DLNA commands.  The addon discovers DMS servers on your network and adds them to the server list for browsing, playback etc...  

Can you try a refresh ?  It will remove any bad entries and attempt to rediscover what is on your network.  After you do that look in your Kodi.log file and you'll see a section on what the Mezzmo addon saw on your network. 

It will look something like this:

2022-07-09 04:45:03.784 T:49528  NOTICE: Mezzmo uPNP server url: http://192.168.0.35:41952/description/fetch
2022-07-09 04:45:04.015 T:49528  NOTICE: Mezzmo uPNP server url: http://192.168.0.21:1854/DeviceDescription.xml
2022-07-09 04:45:04.257 T:49528  NOTICE: Mezzmo uPNP server url: http://192.168.0.35:2042/DeviceDescription.xml
2022-07-09 04:45:04.503 T:49528  NOTICE: Mezzmo uPNP server url: http://192.168.0.34:53168/desc
2022-07-09 04:46:07.310 T:12164  NOTICE: Mezzmo server search: 11 uPNP servers found.


Please post the entire section here and let me know the IP address of your Bubbleupnp server.  I've not done extensive testing with Bubbleupnp so it's possible it is responding with something the addon doesn't recognize.  Are both devices wired Ethernet or a mix ?


Thanks,

Jeff


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-14

Hi Jeff,

thanks for your support.

I found this in the log
Code:
2022-07-14 10:03:11.242 T:5132921    INFO <general>: Loading skin file: AddonBrowser.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:18.253 T:5132921    INFO <general>: Loading skin file: DialogAddonInfo.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:22.374 T:5132921    INFO <general>: Loading skin file: DialogAddonSettings.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:27.956 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:30.926 T:5132921    INFO <general>: Skipped 4 duplicate messages..
2022-07-14 10:03:30.926 T:5132921    INFO <general>: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:31.110 T:5134227    INFO <general>: initializing python engine.
2022-07-14 10:03:31.357 T:5132921    INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:31.424 T:5134227    INFO <general>: Mezzmo server search: 1 uPNP servers found.
2022-07-14 10:03:31.437 T:5134227    INFO <general>: Mezzmo uPNP server url: http://172.16.6.222:8200/rootDesc.xml
2022-07-14 10:03:31.607 T:5134227    INFO <general>: CPythonInvoker(2, /Users/privat/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 10:03:31.648 T:5134227    INFO <general>: Python interpreter stopped
2022-07-14 10:03:31.688 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:35.230 T:5134257    INFO <general>: Skipped 2 duplicate messages..
2022-07-14 10:03:35.229 T:5134257    INFO <general>: initializing python engine.
2022-07-14 10:03:41.559 T:5134257    INFO <general>: Mezzmo server search: 1 uPNP servers found.
2022-07-14 10:03:41.570 T:5134257    INFO <general>: Mezzmo uPNP server url: http://172.16.6.222:8200/rootDesc.xml
2022-07-14 10:03:41.742 T:5134257    INFO <general>: CPythonInvoker(3, /Users/xxx/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 10:03:41.749 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:41.788 T:5134257    INFO <general>: Python interpreter stopped
2022-07-14 10:03:41.805 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
The one uPNP server found on 172.16.6.222 is my Qnap media server. That is not the problem here.
BubbleUpnp is on 172.16.6.157 or localhost, i. e. Kodi and BubbleUpnp are running on the same machine.


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-14

(2022-07-14, 10:14)Anthracite Wrote: Hi Jeff,

thanks for your support.

I found this in the log
Code:
2022-07-14 10:03:11.242 T:5132921    INFO <general>: Loading skin file: AddonBrowser.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:18.253 T:5132921    INFO <general>: Loading skin file: DialogAddonInfo.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:22.374 T:5132921    INFO <general>: Loading skin file: DialogAddonSettings.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:27.956 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:30.926 T:5132921    INFO <general>: Skipped 4 duplicate messages..
2022-07-14 10:03:30.926 T:5132921    INFO <general>: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:31.110 T:5134227    INFO <general>: initializing python engine.
2022-07-14 10:03:31.357 T:5132921    INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-07-14 10:03:31.424 T:5134227    INFO <general>: Mezzmo server search: 1 uPNP servers found.
2022-07-14 10:03:31.437 T:5134227    INFO <general>: Mezzmo uPNP server url: http://172.16.6.222:8200/rootDesc.xml
2022-07-14 10:03:31.607 T:5134227    INFO <general>: CPythonInvoker(2, /Users/privat/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 10:03:31.648 T:5134227    INFO <general>: Python interpreter stopped
2022-07-14 10:03:31.688 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:35.230 T:5134257    INFO <general>: Skipped 2 duplicate messages..
2022-07-14 10:03:35.229 T:5134257    INFO <general>: initializing python engine.
2022-07-14 10:03:41.559 T:5134257    INFO <general>: Mezzmo server search: 1 uPNP servers found.
2022-07-14 10:03:41.570 T:5134257    INFO <general>: Mezzmo uPNP server url: http://172.16.6.222:8200/rootDesc.xml
2022-07-14 10:03:41.742 T:5134257    INFO <general>: CPythonInvoker(3, /Users/xxx/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 10:03:41.749 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-07-14 10:03:41.788 T:5134257    INFO <general>: Python interpreter stopped
2022-07-14 10:03:41.805 T:5132921 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
The one uPNP server found on 172.16.6.222 is my Qnap media server. That is not the problem here.
BubbleUpnp is on 172.16.6.157 or localhost, i. e. Kodi and BubbleUpnp are running on the same machine.

Thanks.  Based upon the logs this is happening at the network broadcast level and not the device interrogation level.  Let me try and replicate this.  I don't have a Qnap server but I can point BubbleUpnp at another uPNP sever.  Previously I've tested by pointing at my Mezzmo server but in that setup BubbleUpnp, Kodi and Mezmo are on three different systems.  This could be something like network security software running on your system impacting the broadcast.  An interesting test would be to enable Share your libraries in Kodi (turns Kodi into a DMS) and then try a refresh again with the addon and see if it is able to see Kodi.  I'll see if I can reproduce the issue too.


Jeff


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-14

(2022-07-14, 11:19)jbinkley60 Wrote: I don't have a Qnap server
I stopped the media server on Qnap and made a new refresh - just for the case the media server on Qnap should be source of the problem. It is not. BubbleUpnp still not found. I got this log:
Code:
2022-07-14 16:30:46.727 T:5213487    INFO <general>: Loading skin file: Settings.xml, load type: KEEP_IN_MEMORY
2022-07-14 16:30:48.629 T:5213487    INFO <general>: Loading skin file: AddonBrowser.xml, load type: KEEP_IN_MEMORY
2022-07-14 16:30:55.910 T:5213487    INFO <general>: Loading skin file: DialogAddonInfo.xml, load type: KEEP_IN_MEMORY
2022-07-14 16:30:58.331 T:5213487    INFO <general>: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
2022-07-14 16:30:58.515 T:5214230    INFO <general>: initializing python engine.
2022-07-14 16:30:58.762 T:5213487    INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-07-14 16:30:58.828 T:5214230    INFO <general>: Mezzmo server search: 0 uPNP servers found.
2022-07-14 16:30:58.880 T:5214230    INFO <general>: CPythonInvoker(2, /Users/xxx/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 16:30:58.920 T:5214230    INFO <general>: Python interpreter stopped
2022-07-14 16:31:00.772 T:5214241    INFO <general>: initializing python engine.
2022-07-14 16:31:07.098 T:5214241    INFO <general>: Mezzmo server search: 0 uPNP servers found.
2022-07-14 16:31:07.145 T:5214241    INFO <general>: CPythonInvoker(3, /Users/xxx/Library/Application Support/Kodi/addons/plugin.video.mezzmo/default.py): script successfully run
2022-07-14 16:31:07.185 T:5214241    INFO <general>: Python interpreter stopped
(2022-07-14, 11:19)jbinkley60 Wrote: but I can point BubbleUpnp at another uPNP sever
BubbleUpnp is running on Mac OS/X, same machine as Kodi is running on.


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-14

(2022-07-14, 16:36)Anthracite Wrote:
(2022-07-14, 11:19)jbinkley60 Wrote: I don't have a Qnap server
I stopped the media server on Qnap and made a new refresh - just for the case the media server on Qnap should be source of the problem. It is not. BubbleUpnp still not found. I got this log:
I don't think this is a valid test because I believe BubbleUpnp is more of a uPNP proxy vs. a full uPNP server.  When I did my initial testing I wasn't able to see BubbUpnp until I had Bubble pointed at something.  I just checked and I don't have BubbleUpnp loaded on my test system.  I'll get that loaded up again and test with my Kodi client on the same system.  I'll try pointing BubbleUpnp at a number of different uPNP servers I have in my test setup. 

What version of Kodi are you running ?  Can you look at the UPnp/DLNA services and let me know what is enabled ?  As a test can you enable uPNP support and Share my Libraries and then try a refresh again and see if the Mezzmo Kodi addon sees your Kodi client as a uPNP server ?


Thanks,

Jeff


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-14

@Jeff

Kodi 19.4.0

Upnp services: Using the German version all is named differently, I hope you can guess with my translation what it is:
UPnP support is activated.
No shared libraries.
Remote control is allowed.

Now I changed "No shared libraries" into "share libraries". As a result the addon's refresh finds two servers, the Qnap media server and Kodi itself as a server, but not BubbleUpnp, and nothing else changed. And where to share *your* libraries? Perhaps I did the wring thing and still don't share them?


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-15

(2022-07-14, 21:59)Anthracite Wrote: @Jeff

Kodi 19.4.0

Upnp services: Using the German version all is named differently, I hope you can guess with my translation what it is:
UPnP support is activated.
No shared libraries.
Remote control is allowed.

Now I changed "No shared libraries" into "share libraries". As a result the addon's refresh finds two servers, the Qnap media server and Kodi itself as a server, but not BubbleUpnp, and nothing else changed. And where to share *your* libraries? Perhaps I did the wring thing and still don't share them?

Ok, that means the addon broadcast works with Kodi and on your machine,  I've gotten BubbleUpnp reinstalled.  In BubbleUpnp, did you enable "Create a Proxy Media Server on this LAN" for your Qnap server ?  I have to enable that before BubbleUpnp will respond to a broadcast and the addon will find it.  The Share Your Libraries was simply a test to enable DMS services in Kodi.  That isn't needed for what you want to do.  You can disable it.


Jeff


RE: Kodi used as a dlna audio renderer (player) - Anthracite - 2022-07-15

(2022-07-15, 00:36)jbinkley60 Wrote: In BubbleUpnp, did you enable "Create a Proxy Media Server on this LAN" for your Qnap server ?
I didn't do that.

I tried it. Result:
- Now in the Mezzmo plugin I see the Qnap media server twice, one is directly, the second is the proxy from BubbleUpnp.
- But in the plugin neither I can't see BubbleUpnp directly nor I have access to the streaming (I didn't expect this, but the streaming with Qobuz was the background for the initial question).
- In BubbleUpnp I still do not see the Mezzmo Plugin nor I can access it.


RE: Kodi used as a dlna audio renderer (player) - jbinkley60 - 2022-07-15

(2022-07-15, 10:42)Anthracite Wrote:
(2022-07-15, 00:36)jbinkley60 Wrote: In BubbleUpnp, did you enable "Create a Proxy Media Server on this LAN" for your Qnap server ?
I didn't do that.

I tried it. Result:
- Now in the Mezzmo plugin I see the Qnap media server twice, one is directly, the second is the proxy from BubbleUpnp.
- But in the plugin neither I can't see BubbleUpnp directly nor I have access to the streaming (I didn't expect this, but the streaming with Qobuz was the background for the initial question).
- In BubbleUpnp I still do not see the Mezzmo Plugin nor I can access it.

Ok.  It seems to be working the way it is designed.  As mentioned before, the addon is not a DMR so BubbleUpnp won't see it as a renderer.  The addon is designed to improve Kodi being a DMP for Mezmo and other uPNP sources.  My apologies for not catching that you wanted to control Kodi with Oobuz as a full DMR.  I suspect that may be problematic in that you would have 2 pieces of software between your DMP (Oobuz) and your DMS (Qnap).  I am sorry if I wasted your time.  I don't see adding DMR capabilities to the addon in the near future.


Jeff


This forum uses Lukasz Tkacz MyBB addons.