[Support] binhex - MiniDLNA


Recommended Posts

So, I'm not exactly a dev but I just tested it this does work.

 

The problem, when DSD is sent as x-dsd many renderers like Jriver, BubbleUPnP, USB Audio Player, even receivers that should support DSD properly over DLNA are actually receiving PCM 352Mhz instead of 2.8Mhz.

 

I forked somebody's copy of MiniDLNA (since the original source isn't on github) and made the changes here:

https://github.com/fandangos/minidlna/commit/0f402a51120ca19d15d70291ae3d9cd629d76062

 

I tested it inside Unraid but since I compiled it on Ubuntu it required a lot of dependencies. 

After copying all to binhex-MiniDLNA docker container alongside my compiled binary

- deps went to /usr/lib

- binary went to /usb/sbin/minidlnad

 

I can say it worked as it should :)

 

I created a snapshot from binhex-minidlna container on my server but this resulted in a 1.5GB tar file and this isn't pratical to share. 

 

So, if anyone knows how to build a docker image I can share here for anyone interested in pure DSD playback. 

Link to comment
  • 1 month later...

Hey guys,

I have been using this forever, but it stopped working in the last week. 

This is the log



___. .__ .__
\_ |__ |__| ____ | |__ ____ ___ ___
| __ \| |/ \| | \_/ __ \\ \/ /
| \_\ \ | | \ Y \ ___/ > <
|___ /__|___| /___| /\___ >__/\_ \
\/ \/ \/ \/ \/
https://hub.docker.com/u/binhex/

2022-09-20 11:38:27.952087 [info] Host is running unRAID
2022-09-20 11:38:28.646084 [info] System information Linux b145c01db624 5.10.21-Unraid #1 SMP Sun Mar 7 13:39:02 PST 2021 x86_64 GNU/Linux
2022-09-20 11:38:29.539366 [info] OS_ARCH defined as 'x86-64'
2022-09-20 11:38:30.777404 [info] PUID defined as '99'
2022-09-20 11:38:32.657967 [info] PGID defined as '100'
2022-09-20 11:38:51.489580 [info] UMASK defined as '000'
2022-09-20 11:38:51.528883 [info] Permissions already set for '/config'
2022-09-20 11:38:53.063372 [info] Deleting files in /tmp (non recursive)...
2022-09-20 11:38:53.847467 [info] SCAN_ON_BOOT defined as 'Yes'
2022-09-20 11:38:53.877272 [info] SCHEDULE_SCAN_DAYS defined as '06'
2022-09-20 11:38:53.907330 [info] SCHEDULE_SCAN_HOURS defined as '02'
2022-09-20 11:38:54.050392 [info] Starting Supervisor...
2022-09-20 11:40:16,300 INFO Included extra file "/etc/supervisor/conf.d/minidlna.conf" during parsing
2022-09-20 11:40:16,301 INFO Set uid to user 0 succeeded
2022-09-20 11:40:17,122 INFO supervisord started with pid 6
2022-09-20 11:40:18,124 INFO spawned: 'crond' with pid 72
2022-09-20 11:40:18,126 INFO spawned: 'start' with pid 73
2022-09-20 11:40:18,127 INFO reaped unknown pid 7 (exit status 0)
2022-09-20 11:40:18,134 DEBG 'start' stdout output:
[info] PID file from previous run found, deleting file /home/nobody/.config/minidlna/minidlna.pid...

2022-09-20 11:40:18,134 INFO success: start entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-09-20 11:40:19,135 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-09-20 11:40:51,153 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 22775648492304 for <Subprocess at 22775648487024 with name start in state RUNNING> (stdout)>
2022-09-20 11:40:51,153 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 22775648492352 for <Subprocess at 22775648487024 with name start in state RUNNING> (stderr)>
2022-09-20 11:40:51,153 INFO exited: start (exit status 0; expected)
2022-09-20 11:40:51,154 DEBG received SIGCHLD indicating a child quit

 

Seems to just quit, I have tried deleting the .pid, reinstalled, entire directory delete + reinstall, plus I rebooted my server.. 

I'm out of idea's.. anyone able to point me in the correct direction?

Link to comment
  • 6 months later...

Hey everyone,

Trying very unsuccessfully to get Unraid SMB to work with a Denon HEOS amp.  Realized SMB 1 has been long discontinued and, since the app doesn't support SMB 2, I'm stuck looking at alternatives.

Currently, I have multiple paths with music stored in them.  That is, I have a folder structure that looks something like this:

AUDIO LOSSLESS/ALBUMS

AUDIO LOSSLESS/Hi-RES (which has BLU-RAY AUDIO, DSF 2.0, DSF 5.1, DVD-A (FLAC), and FLAC in it)

AUDIO LOSSLESS/SOME OTHER FOLDERS

AUDIO LOSSY/ALBUMS

 

Here's the conundrum.  I've tried setting up two PATHS within the minidlna config because I don't want it looking at every single folder (i.e., BLU-RAY AUDIO won't help a 2.0 receiver NOR will DSF 5.1 or DVD-A FLAC files for that matter).  Assuming it's looking for "/media", when it attempts to rebuild the config files, it errors out and drops the docker off my machine and I have to install.

 

What I want to do is have it look at a handful of the above paths, specifically:

AUDIO LOSSLESS/ALBUMS/
AUDIO LOSSLESS/HI-RES/DSF/2.0
AUDIO LOSSLESS/HI-RES/FLAC
AUDIO LOSSLESS/A COUPLE OF OTHER FOLDERS
AUDIO LOSSY/ALBUMS


Is there a way to point to multiple paths within the config?  Or do I have to edit something manually? Or, am I stuck doing what I really DON'T want to do, and put what I want to be seen in one folder so it can scan accordingly?  I really don't want to do the last option so any help here is appreciated.

EDIT/UPDATE: I did some further digging and could never get it to look at the folders structured the way I did.  Only way around this was to restructure my folders into Stereo and Multi-Channel within one parent.  Problem is solved but did notice another issue.

When scrubbing (using the HEOS app), DSF files will get all static-y when they start playing from where they resume.  Not a huge thing but noticed this quirk.  I'm just glad to have my hi-res audio playable on my 2.0 amp now.

Edited by AdrianF
Updated at bottom of question
Link to comment
  • 4 months later...
On 9/19/2022 at 10:26 PM, Addy said:

Hey guys,

I have been using this forever, but it stopped working in the last week. 

This is the log



___. .__ .__
\_ |__ |__| ____ | |__ ____ ___ ___
| __ \| |/ \| | \_/ __ \\ \/ /
| \_\ \ | | \ Y \ ___/ > <
|___ /__|___| /___| /\___ >__/\_ \
\/ \/ \/ \/ \/
https://hub.docker.com/u/binhex/

2022-09-20 11:38:27.952087 [info] Host is running unRAID
2022-09-20 11:38:28.646084 [info] System information Linux b145c01db624 5.10.21-Unraid #1 SMP Sun Mar 7 13:39:02 PST 2021 x86_64 GNU/Linux
2022-09-20 11:38:29.539366 [info] OS_ARCH defined as 'x86-64'
2022-09-20 11:38:30.777404 [info] PUID defined as '99'
2022-09-20 11:38:32.657967 [info] PGID defined as '100'
2022-09-20 11:38:51.489580 [info] UMASK defined as '000'
2022-09-20 11:38:51.528883 [info] Permissions already set for '/config'
2022-09-20 11:38:53.063372 [info] Deleting files in /tmp (non recursive)...
2022-09-20 11:38:53.847467 [info] SCAN_ON_BOOT defined as 'Yes'
2022-09-20 11:38:53.877272 [info] SCHEDULE_SCAN_DAYS defined as '06'
2022-09-20 11:38:53.907330 [info] SCHEDULE_SCAN_HOURS defined as '02'
2022-09-20 11:38:54.050392 [info] Starting Supervisor...
2022-09-20 11:40:16,300 INFO Included extra file "/etc/supervisor/conf.d/minidlna.conf" during parsing
2022-09-20 11:40:16,301 INFO Set uid to user 0 succeeded
2022-09-20 11:40:17,122 INFO supervisord started with pid 6
2022-09-20 11:40:18,124 INFO spawned: 'crond' with pid 72
2022-09-20 11:40:18,126 INFO spawned: 'start' with pid 73
2022-09-20 11:40:18,127 INFO reaped unknown pid 7 (exit status 0)
2022-09-20 11:40:18,134 DEBG 'start' stdout output:
[info] PID file from previous run found, deleting file /home/nobody/.config/minidlna/minidlna.pid...

2022-09-20 11:40:18,134 INFO success: start entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-09-20 11:40:19,135 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-09-20 11:40:51,153 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 22775648492304 for <Subprocess at 22775648487024 with name start in state RUNNING> (stdout)>
2022-09-20 11:40:51,153 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 22775648492352 for <Subprocess at 22775648487024 with name start in state RUNNING> (stderr)>
2022-09-20 11:40:51,153 INFO exited: start (exit status 0; expected)
2022-09-20 11:40:51,154 DEBG received SIGCHLD indicating a child quit

 

Seems to just quit, I have tried deleting the .pid, reinstalled, entire directory delete + reinstall, plus I rebooted my server.. 

I'm out of idea's.. anyone able to point me in the correct direction?

Seeing this exact same issue.  Did you ever get it resolved?  I even tried completely deleting the container/appdata and i'm still getting the issue.

Link to comment
Seeing this exact same issue.  Did you ever get it resolved?  I even tried completely deleting the container/appdata and i'm still getting the issue.
This is odd! I am using this image myself, just restarted the container and it started with no problems.

Can you verify that the host path you set for /media exists and has the correct permissions set

Sent from my 22021211RG using Tapatalk

Link to comment
  • 1 month later...
On 8/14/2023 at 2:29 PM, binhex said:

This is odd! I am using this image myself, just restarted the container and it started with no problems.

Can you verify that the host path you set for /media exists and has the correct permissions set

Sent from my 22021211RG using Tapatalk
 

Apologies for the very late reply! I didn't get a notification email (I need to check the settings on this forum).  The media folder did exist and the correct perms were there.  It was working fine for a while and then just stopped one day.  I did get it working again, however that was over a month ago and I don't exactly remember what I did to get it going again (I hate that I've now authored one of "those" posts).  I want to say that maybe it was related to a change in the docker network settings (this was around the time that there were issues with macvlan with an unraid update).  I currently have ipvlan in the docker settings.

Link to comment
  • 4 months later...

I found: https://github.com/ZsBT/minidlna-custom-icon

 

I´ve add these at the end of config:

icon_png_small=/config/icons/icon_x48.png # 48px PNG icon
icon_png_large=/config/icons/icon_x120.png # 120px PNG icon
icon_jpeg_small=/config/icons/icon_x48.jpg # 48px JPEG icon
icon_jpeg_large=/config/icons/icon_x120.jpg # 120px JPEG icon

 

copied them:

cp -r  /mnt/user/media/icons/ /mnt/user/appdata/binhex-minidlna/icons/
chown -cR nobody:users /mnt/user/appdata/binhex-minidlna/icons/

 

restarted the docker --> error about the icons

😞

 

Edited by Avenga
Link to comment
  • 1 month later...

why cant i get it to work?
Simply ran the container, cant get to 8200, nor can i get vlc or my denon heos app to find it.
I tried adding port 8200 manually, but to no avail.
Logs:
 


2024-04-08 21:39:05.019086 [info] Host is running unRAID
2024-04-08 21:39:05.045991 [info] System information Linux server 6.1.79-Unraid #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024 x86_64 GNU/Linux
2024-04-08 21:39:05.081450 [info] PUID defined as '99'
2024-04-08 21:39:05.139614 [info] PGID defined as '100'
2024-04-08 21:39:05.217453 [info] UMASK defined as '000'
2024-04-08 21:39:05.249474 [info] Permissions already set for '/config'
2024-04-08 21:39:05.285858 [info] Deleting files in /tmp (non recursive)...
2024-04-08 21:39:05.320576 [info] SCAN_ON_BOOT defined as 'yes'
2024-04-08 21:39:05.355345 [info] SCHEDULE_SCAN_DAYS defined as '06'
2024-04-08 21:39:05.384852 [info] SCHEDULE_SCAN_HOURS defined as '02'
2024-04-08 21:39:05.422548 [info] Starting Supervisor...
2024-04-08 21:39:05,735 INFO Included extra file "/etc/supervisor/conf.d/minidlna.conf" during parsing
2024-04-08 21:39:05,735 INFO Set uid to user 0 succeeded
2024-04-08 21:39:05,738 INFO supervisord started with pid 7
2024-04-08 21:39:06,742 INFO spawned: 'crond' with pid 62
2024-04-08 21:39:06,744 INFO spawned: 'start' with pid 63
2024-04-08 21:39:06,745 INFO reaped unknown pid 8 (exit status 0)
2024-04-08 21:39:06,902 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 22398605550800 for <Subprocess at 22398605392464 with name start in state STARTING> (stdout)>
2024-04-08 21:39:06,903 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 22398603333648 for <Subprocess at 22398605392464 with name start in state STARTING> (stderr)>
2024-04-08 21:39:06,903 INFO success: start entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-04-08 21:39:06,903 INFO exited: start (exit status 0; expected)
2024-04-08 21:39:06,903 DEBG received SIGCHLD indicating a child quit
2024-04-08 21:39:07,904 INFO success: crond entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

 

Link to comment
3 minutes ago, Kees Fluitman said:

Simply ran the container, cant get to 8200, nor can i get vlc or my denon heos app to find it.
I tried adding port 8200 manually, but to no avail.

the 'network type' should be set to 'bridge' is this the case? the reason i ask is that in bridge mode you do not specify ports.

Link to comment

it was set to host. Doesn't work both ways. either bridge or host...
Also, nothing is listening on port 8200 on my unraid server when the container is running...

 

[2024/04/08 21:59:54] scanner.c:820: warn: Scanning /media finished (6871 files)!
[2024/04/08 21:59:54] playlist.c:135: warn: Parsing playlists...
[2024/04/08 21:59:54] playlist.c:269: warn: Finished parsing playlists.
[2024/04/08 22:01:37] minidlna.c:1134: warn: Starting MiniDLNA version 1.3.3.
[2024/04/08 22:01:37] minidlna.c:394: warn: Creating new database at /config/files.db
[2024/04/08 22:01:37] minissdp.c:132: error: bind(udp): Address already in use
[2024/04/08 22:01:37] getifaddr.c:110: error: Network interface eth0 not found
[2024/04/08 22:01:37] minissdp.c:848: error: connect("/var/run/minissdpd.sock"): No such file or directory[2024/04/08 22:01:37] minidlna.c:1170: fatal: Failed to connect to MiniSSDPd. EXITING[2024/04/08 22:01:37] scanner.c:731: warn: Scanning /media
[2024/04/08 22:03:10] minidlna.c:1134: warn: Starting MiniDLNA version 1.3.3.
[2024/04/08 22:03:10] minidlna.c:394: warn: Creating new database at /config/files.db
[2024/04/08 22:03:10] minissdp.c:132: error: bind(udp): Address already in use
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 192.168.1.165
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 10.253.0.1
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 192.168.1.223
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 192.168.122.1
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 100.91.251.7
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 172.23.0.1
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 172.22.0.1
[2024/04/08 22:03:10] minissdp.c:84: error: setsockopt(udp, IP_ADD_MEMBERSHIP): Bad file descriptor
[2024/04/08 22:03:10] minissdp.c:198: warn: Failed to add multicast membership for address 172.18.0.1
[2024/04/08 22:03:10] scanner.c:731: warn: Scanning /media
[2024/04/08 22:03:11] minissdp.c:816: error: sendto(udp_shutdown=7): Required key not available
[2024/04/08 22:03:11] minissdp.c:816: error: sendto(udp_shutdown=7): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:11] minissdp.c:324: error: sendto(udp_notify=7, 10.253.0.1): Required key not available
[2024/04/08 22:03:12] minissdp.c:848: error: connect("/var/run/minissdpd.sock"): No such file or directory[2024/04/08 22:03:12] minidlna.c:1170: fatal: Failed to connect to MiniSSDPd. 

When i set network interface to br0.
I dont get that error anymore, but still get this
 

[2024/04/08 22:09:18] minissdp.c:132: error: bind(udp): Address already in use


Ah ic. I think it's because jellyfin is already using port 1900. Ill check.
 

Edited by Kees Fluitman
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.