I am having a very weird problem with Minidlna and the LG Music Flow app. I like to cast mp3 files directly to my LG SJ6 SoundBar as that way I can use the remote to play any song from a given folder or playlist. Here comes the issue. When I initially set the router. Linksys WRT 1900 AC v2. It shows up the friendly DLNA name in the app and I am able to choose the song I want to play but then in a few minutes time the friendly name is gone and I cannot change to a different folder if needed. DLNA still works as I checked via the webpage it serves the files and also checked via different apps like VLC I can see the files being served.
The weirdest issue is that I thought maybe I have changed some sort of setting on the router but I was sure that I have not so I decided to reflash the router and set it up once again. Once I set it up same scenario It shows the friendly DLNA name and then after a few minutes it is gone. I have no idea why this is happening but it is getting on my nerves. The usb stick I use has a FAT32 format and shows correctly mounted under the mount points however showing as not present under the mount configurations. I have tried formatting a USB into ext4 but same scenario there even if I give full permission to everyone.
I have also tried if it is related to minidlna directly in some way and installed it on a Kubuntu linux and it shows up correctly in the LG Music Flow app.
Could anyone shed some light to this weird problem.
I am using the latest OpenWrt build from Davidc502 but also tried the standard one from OpenWrt on another Linksys router specifically EA8500 and the scenario is the same.
My configuration is as follows:
config minidlna 'config'
option user 'minidlna'
option interface 'br-lan'
option inotify '1'
option root_container '.'
option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg'
list media_dir '/mnt/sda1'
option db_dir '/mnt/sda1/minidlna/'
option log_dir '/mnt/sda1/minidlna'
option presentation_url 'http://192.168.1.1'
option serial '41568792'
option model_number '2.0'
option notify_interval '890'
option enabled '1'
option port '8200'
option friendly_name 'Music DLNA'
the minidlna.log is :
[2019/09/30 09:33:40] getifaddr.c:110: error: Network interface br-lan not found
[2019/09/30 09:33:40] getifaddr.c:110: error: Network interface br-lan not found
[2019/09/30 09:33:40] getifaddr.c:110: error: Network interface br-lan not found
[2019/09/30 09:45:42] minidlna.c:1062: error: Unable to set db_path [/mnt/sda1/minidlna] ownership to 65536: Operation not permitted
HI Jeff,
I have found found a weird situation again. When I reboot the router and keep the LG Music Flow app open and my phone reconnect to WiFi in 'time' then I ca see the Music DLNA being broadcasted, however if I switch off the app and start it again or if the Wifi on the phone does not connect in time to the router then the Music DLNA server is not visible in the app anymore.
Perhaps something during router startup is interfering with the discovery service ?? Do you have any idea what this could be?