Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
58
views
Will minidlna create a DLNA sink
I have a DLNA renderer on my network, and an AlmaLinux 9 server (in text mode) where I would like to play sound. I want to send the sounds from my AlmaLinux 9 server to the DLNA renderer, but I have no sound device (sink) on my server. I have pipewire installed, and pipewire-pulseaudio. I just can't...
I have a DLNA renderer on my network, and an AlmaLinux 9 server (in text mode) where I would like to play sound.
I want to send the sounds from my AlmaLinux 9 server to the DLNA renderer, but I have no sound device (sink) on my server. I have pipewire installed, and pipewire-pulseaudio. I just can't figure out how to create the sink. My google searches keep pointing my to minidlna - but will minidlna create the sink (for local sounds to be sent to)? I don't want a dlna server (playing music files), just a virtual sound device that all programs can send audio to.
TSG
(1983 rep)
Sep 20, 2024, 01:20 PM
• Last activity: Sep 20, 2024, 01:30 PM
0
votes
0
answers
175
views
COnfigure pipewire to run on server without GUI, no sound card
I have an almalinux 9 installation, and I would like to play audio to a DLNA renderer on my network. The system runs in text mode (no GUI) - and must stay that way. aplay -l confirms no audio devices available, yet pipewire is already running. Is there a control panel I can launch (I have an X serve...
I have an almalinux 9 installation, and I would like to play audio to a DLNA renderer on my network. The system runs in text mode (no GUI) - and must stay that way.
aplay -l confirms no audio devices available, yet pipewire is already running. Is there a control panel I can launch (I have an X server running locally) to manage pipewire? If not, how do I configure pipewire to send audio to a DLNA renderer, and create a local audio device I can send audio to.
I read that pavucontrol will manage pipewire too, but pavucontrol cannot create a DLNA sink linked to my DLNA renderer.
TSG
(1983 rep)
Sep 20, 2024, 01:30 AM
• Last activity: Sep 20, 2024, 02:03 AM
0
votes
1
answers
144
views
Can minidlna play random tracks?
I have my music on a small NAS, which includes a version of minidlna, and I listen over UPnP. My client will play albums, artists and playlists etc. I cannot upgrade either the server nor the client, nor use any other transport or protocol. I would like to be able to play a random selection of music...
I have my music on a small NAS, which includes a version of minidlna, and I listen over UPnP. My client will play albums, artists and playlists etc.
I cannot upgrade either the server nor the client, nor use any other transport or protocol.
I would like to be able to play a random selection of music each day, but neither the server nor the client have this feature. How can I best achieve this?
Mark Williams
(101 rep)
Jan 14, 2024, 12:37 PM
• Last activity: Jan 14, 2024, 02:54 PM
0
votes
2
answers
239
views
Why is minidlna closing connections with clients?
OS: NixOS unstable App: [minidlna][1] I used minidlna successfully with Debian and my TV. But I am having problems with NixOS. This is my NixOS config (`/etc/nixos/configuration.nix`): ``` #DLNA services.minidlna.enable = true; services.minidlna.settings = { friendly_name = "PCMEDIA"; media_dir = ["...
OS: NixOS unstable
App: minidlna
I used minidlna successfully with Debian and my TV. But I am having problems with NixOS.
This is my NixOS config (
/etc/nixos/configuration.nix
):
#DLNA
services.minidlna.enable = true;
services.minidlna.settings = {
friendly_name = "PCMEDIA";
media_dir = ["V,/mnt/ORION/DLNA/"];
log_level = "debug";
};
This is the log when I try to connect to the DLNA server with my TV:
$ sudo journalctl --unit minidlna -r
May 06 08:08:54 nixos minidlnad: EXT:
May 06 08:08:54 nixos minidlnad: Date: Sat, 06 May 2023 02:38:54 GMT
May 06 08:08:54 nixos minidlnad: Server: 5.15.93 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.3.1
May 06 08:08:54 nixos minidlnad: Content-Length: 2196
May 06 08:08:54 nixos minidlnad: Connection: close
May 06 08:08:54 nixos minidlnad: Content-Type: text/xml; charset="utf-8"
May 06 08:08:54 nixos minidlnad: upnphttp.c:1277: debug: HTTP RESPONSE: HTTP/1.1 200 OK
May 06 08:08:54 nixos minidlnad:
May 06 08:08:54 nixos minidlnad: X-PANASONIC-DMP-Profile: MPEG_PS_PAL JPEG_SM PV_DIVX_DIV3 PV_DIVX_DIV4 PV_DIVX_DIVX PV_DIVX_DX50 PV_DRM_DIVX_DIV3 PV_DRM_DIVX_DIV4 PV_DRM_DIVX_DIVX P>
May 06 08:08:54 nixos minidlnad: X-PANASONIC-Registration: (hexadecimal number)
May 06 08:08:54 nixos minidlnad: Host: 192.168.1.180:8200
May 06 08:08:54 nixos minidlnad: User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50
May 06 08:08:54 nixos minidlnad: upnphttp.c:916: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.1
May 06 08:08:54 nixos minidlnad: clients.c:357: debug: Client found in cache. [Panasonic/entry 0]
May 06 08:08:54 nixos minidlnad: minidlna.c:170: debug: HTTP connection from 192.168.1.184:58601
May 06 08:08:53 nixos minidlnad: minissdp.c:710: debug: SSDP M-SEARCH from 192.168.1.184:50051 ST: urn:schemas-upnp-org:device:MediaServer:2, MX: 1, MAN: "ssdp:discover"
May 06 08:08:53 nixos minidlnad: minissdp.c:710: debug: SSDP M-SEARCH from 192.168.1.184:50051 ST: urn:schemas-upnp-org:device:MediaServer:2, MX: 1, MAN: "ssdp:discover"
May 06 08:08:53 nixos minidlnad: minissdp.c:265: debug: Sending M-SEARCH response to 192.168.1.184:50050 ST: urn:schemas-upnp-org:device:MediaServer:
May 06 08:08:53 nixos minidlnad: minissdp.c:710: debug: SSDP M-SEARCH from 192.168.1.184:50050 ST: urn:schemas-upnp-org:device:MediaServer:1, MX: 1, MAN: "ssdp:discover"
May 06 08:08:53 nixos minidlnad: minissdp.c:265: debug: Sending M-SEARCH response to 192.168.1.184:50050 ST: urn:schemas-upnp-org:device:MediaServer:
May 06 08:08:53 nixos minidlnad: minissdp.c:710: debug: SSDP M-SEARCH from 192.168.1.184:50050 ST: urn:schemas-upnp-org:device:MediaServer:1, MX: 1, MAN: "ssdp:discover"
May 06 08:07:54 nixos minidlnad: 10urn:schemas-upnp-org:dev>
May 06 08:07:54 nixos minidlnad:
How to make minidlna work? Not just my TV, it doesn't work with VLC or any other DLNA capable application.
Finch
(175 rep)
May 6, 2023, 02:43 AM
• Last activity: May 10, 2023, 08:57 PM
3
votes
1
answers
4138
views
mpd to remote dlna
I currently use an `mpd` with 4 configured outputs, wired to speakers in the ceilings as home-made "multiroom" audio system. I would like to add wireless speakers, e.g. one like [this][1]. The question is: How can I tell `mpd` that there is an output which is in fact remote a dlna/upnp (even aiyplay...
I currently use an
mpd
with 4 configured outputs, wired to speakers in the ceilings as home-made "multiroom" audio system.
I would like to add wireless speakers, e.g. one like this .
The question is:
How can I tell mpd
that there is an output which is in fact remote a dlna/upnp (even aiyplay would be fine) ip-device ?
Is it possible at all ?
**Edit 1:**
I found a way , though through pulseaudio
and not dlna
(which could be a use for one of my Raspberry Pi
s).
yglodt
(283 rep)
Jul 30, 2014, 11:05 AM
• Last activity: Nov 10, 2021, 05:21 PM
1
votes
1
answers
277
views
Permissions and owner when drive moved from one server to another
I'm pretty sure this question is distribution and hardware neutral. I have a USB drive formatted ext4 with a directory (plus subs) configured for minidlna, owned root:minidlna with permissions 775. It was recently moved to a new installation, on which was also installed minidlna, using the same user...
I'm pretty sure this question is distribution and hardware neutral. I have a USB drive formatted ext4 with a directory (plus subs) configured for minidlna, owned root:minidlna with permissions 775. It was recently moved to a new installation, on which was also installed minidlna, using the same user name. Yet on this new install, minidlna cannot read contents of this directory.
The hardware in each case is a Raspberry Pi 4 with Ubuntu server 21.04
(Furthermore, I have this directory's parent as the data directory for a Snap installed instance of Nextcloud, which accesses the directories as root, and I'm getting some permission denied issues with creating new files in existing directories - as
root!! I suspect issues are related and when I understand why for minidlna, I'll understand for nextcloud snap.)
Following suggestions, I have checked:
id minidlna
returns uid 112 and gid 120 and ls -aln
returns matching gid of 120
>drwxrwxr-x 17 0 120 4096 Aug 10 16:55 .
To make sure, I did chown -R 112:120
on the directory and still makes no difference. If I restart the minidlna daemon and then check its status, it is always (truncated)
>minidlna.c:670: error: Media directory "/media/path_to/directory" not accessible [Permission denied]
David1618
(21 rep)
Sep 18, 2021, 02:11 PM
• Last activity: Sep 19, 2021, 11:01 PM
3
votes
3
answers
7878
views
Remote DLNA / UPnP Media Client / Controller
I have a MiniDLNA + Bubble UPnP Server running at home and I would like to access it remotely from my PC at work. I can check that the server is properly accessible though the Bubble UPnP App for Android, where I can enter the URL to my server. There is a wide range of UPnP client software for Linux...
I have a MiniDLNA + Bubble UPnP Server running at home and I would like to access it remotely from my PC at work. I can check that the server is properly accessible though the Bubble UPnP App for Android, where I can enter the URL to my server.
There is a wide range of UPnP client software for Linux, but non of them offers the possibility to enter an URL, which is quite hard to believe. During my search I checked all of them listed here on wikipedia , and all of them just search the local network for servers.
Does anybody know a UPnP client / controller software which can deal with remote servers?
Rob
(169 rep)
Sep 28, 2015, 11:11 AM
• Last activity: Aug 4, 2021, 05:31 PM
2
votes
0
answers
178
views
Audio and Video Out of Sync when Streaming From Arch Linux MiniDLNA Server to Roku TV
Last week I switched over from Ubuntu 19.2 to Arch. On Ubuntu I was running a MiniDLNA server. I would use that to stream movies to my Roku TV. I don't ever recall having any problems with audio and video syncing up. I attempted the same setup on Arch, however now I am finding that audio and video a...
Last week I switched over from Ubuntu 19.2 to Arch. On Ubuntu I was running a MiniDLNA server. I would use that to stream movies to my Roku TV. I don't ever recall having any problems with audio and video syncing up.
I attempted the same setup on Arch, however now I am finding that audio and video are not exactly synchronizing. This is odd to me because I am using the same files as I was using previously, and the audio and video seemed like they were synced up back then, and additionally when I try running those same files in VLC, the audio and video are synchronized.
My system should be fully up to date, and I am running Minidlna 1.3.0. Any ideas as to what I might be able to try to fix this?
Thanks!
Dargscisyhp
(261 rep)
Dec 1, 2020, 07:22 AM
• Last activity: Dec 1, 2020, 07:37 AM
3
votes
1
answers
5098
views
Can't get ufw rules to allow dlna/upnp traffic between pc and stereo
I'm using pulseaudio-dlna+pavucontrol to direct sound output from my laptop (192.168.2.159) to my yamaha stereo (192.168.2.160) This only works when I disable ufw with `sudo ufw disable` I struggle to find the right rule to allow that specific traffic. `sudo tail -f /var/log/ufw.log` shows block mes...
I'm using pulseaudio-dlna+pavucontrol to direct sound output from my laptop (192.168.2.159) to my yamaha stereo (192.168.2.160)
This only works when I disable ufw with
sudo ufw disable
I struggle to find the right rule to allow that specific traffic.
sudo tail -f /var/log/ufw.log
shows block messages like:
Apr 21 20:40:50 foo kernel: [ 5349.911161] [UFW BLOCK] IN=wlo1 OUT= MAC=01:00:5e:7f:ff:ff:ff:ff:ff:65:c3:04:08:00 SRC=192.168.2.160 DST=239.255.255.250 LEN=204 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=UDP SPT=40760 DPT=51200 LEN=184
As you can see I already added various rules without the desired effect, which I want to remove again when I found the right config:
sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN 192.168.2.0/24
80/tcp ALLOW IN 192.168.2.0/24
80/udp ALLOW IN 192.168.2.0/24
1900/udp ALLOW IN 192.168.2.0/24
1900/udp ALLOW IN 239.255.255.0/24
1900/udp ALLOW IN Anywhere
3689 ALLOW IN Anywhere
1901/udp ALLOW IN 192.168.0.0/24 1900/udp
51200/udp ALLOW IN 192.168.0.0/24 40760/udp
8080/udp ALLOW IN 192.168.0.0/24 40760/udp
40760/udp ALLOW IN 192.168.0.0/24 51200/udp
51200/udp ALLOW IN 239.255.255.0/24 40760/udp
8080/tcp ALLOW IN 192.168.2.0/24 3393/tcp
40760/udp ALLOW IN 239.255.255.0/24 51200/udp
1900/udp (v6) ALLOW IN Anywhere (v6)
3689 (v6) ALLOW IN Anywhere (v6)
40760/udp ALLOW OUT 239.255.255.0/24 51200/udp
51200/udp ALLOW OUT 239.255.255.0/24 40760/udp
user640916
(368 rep)
Apr 21, 2019, 06:46 PM
• Last activity: May 23, 2019, 07:21 AM
1
votes
0
answers
36
views
External network display for playing media
On my Windows 10 computer I was able to right click a media file (video) and choose "Play To ..." and then select my Sony Tv which was plugged into the network. The video would then play with the controls shown on the computer but the media being output on the television. I am unsure of the specific...
On my Windows 10 computer I was able to right click a media file (video) and choose "Play To ..." and then select my Sony Tv which was plugged into the network. The video would then play with the controls shown on the computer but the media being output on the television.
I am unsure of the specifics of how this worked. Perhaps the tv announced itself as a dlna monitor or something.
Is there any support for this sort of functionality on Linux? Even if it's not as tightly integrated. I don't mind using the console, etc but it would be great to be able to send media to the tv like I could from Windows if this is possible.
Tim
(111 rep)
May 12, 2019, 04:06 AM
6
votes
1
answers
12751
views
What is multicast snooping and why does it break UPnP/DLNA?
I have a server which, amongst other things, serves media over DLNA (UPnP) using `mediatomb`. Clients use *Simple Service Discovery Protocol* (SSDP) to locate the server on the network. I found that the SSDP discovery `M-SEARCH` queries were not being responded to and eventually tracked the problem...
I have a server which, amongst other things, serves media over DLNA (UPnP) using
mediatomb
. Clients use *Simple Service Discovery Protocol* (SSDP) to locate the server on the network.
I found that the SSDP discovery M-SEARCH
queries were not being responded to and eventually tracked the problem down to the fact that the server was using a bridged interface which had *multicast snooping* enabled (because bridges have this enabled by default).
I fixed my problem with
echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
However, although this works in my situation, I don't understand what it's doing and if there are any implications that I am unaware of. Hence the question....
What is multicast snooping, why does it break SSDP, why it would be wanted and why it is enabled by default on a bridge, and what problems may be caused by disabling it because It's presumably enabled by default with good reason ?
starfry
(7710 rep)
Sep 11, 2017, 07:23 PM
• Last activity: Dec 31, 2017, 02:17 PM
0
votes
1
answers
643
views
Cast to Kodi from "YouTube Cast" android application
Android's YouTube application finds my web connected (smart) TV and prompts me to cast a video to it, then the TV opens the YouTube app and plays the video. How can I have the same functionality to Kodi? I've already enabled the zeroconf/DLNA/etc. services in Kodi and I'm able to stream to it like a...
Android's YouTube application finds my web connected (smart) TV and prompts me to cast a video to it, then the TV opens the YouTube app and plays the video. How can I have the same functionality to Kodi?
I've already enabled the zeroconf/DLNA/etc. services in Kodi and I'm able to stream to it like a normal DLNA device from various Android application but not from the YouTube app itself. I know that I can stream it through Yatse app but that's not what I'm trying to do.
dzervas
(511 rep)
Aug 22, 2016, 02:16 PM
• Last activity: Feb 8, 2017, 05:09 AM
4
votes
1
answers
516
views
What changed between kernels 3.2 and 3.9 that affect MiniDLNA?
I'm using Debian testing, and I've problems with MiniDLNA on kernel > 3.2. The DLNA client works about 30 min, after that it lost the connection with the minidlna server and can't discover the server again. But if I load with an old kernel (3.2) all works fine. The time that minidlna works (30 min)...
I'm using Debian testing, and I've problems with MiniDLNA on kernel > 3.2. The DLNA client works about 30 min, after that it lost the connection with the minidlna server and can't discover the server again.
But if I load with an old kernel (3.2) all works fine. The time that minidlna works (30 min) may be related to the notify_interval parameter, which by default is 15 min.
**Problem solved**. It was related to my network configuration. My network config:
iface br0 inet static
address 192.168.5.2
netmask 255.255.255.0
gateway 192.168.5.1
bridge_ports eth0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
In 3.5 kernel was [added multicast_querier toggle and disabled queries by default](https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/net/bridge/br_multicast.c?id=c5c23260594c5701af66ef754916775ba6a46bbc) which broke my DLNA on bridge interface.
Now I just enable multicast_querier and all works as before.
# echo 1 > /sys/class/net/br0/bridge/multicast_querier
abobov
(61 rep)
Sep 21, 2013, 04:45 PM
• Last activity: Oct 8, 2013, 01:32 AM
3
votes
0
answers
635
views
Check via Shell-script if server currently streams via dlna
Currently I'm running **uShare** to stream videos from my home-server via DLNA to the TV. On the server there is also running a bash-script which checks if a user is connected via ssh or Samba. If this is not the case, then the server goes to _hibernation-mode_. Is there any possibility to check via...
Currently I'm running **uShare** to stream videos from my home-server via DLNA to the TV. On the server there is also running a bash-script which checks if a user is connected via ssh or Samba. If this is not the case, then the server goes to _hibernation-mode_.
Is there any possibility to check via bash-script if the server currently streams a video to my TV? If so, I would like to see a little code example which I could include in my script which check the ssh or Samba connection.
Chrispie
(3893 rep)
Oct 3, 2013, 09:28 AM
• Last activity: Oct 3, 2013, 10:42 PM
Showing page 1 of 14 total questions