操作系统:NixOS 不稳定应用程序:minidlna
我在 Debian 和我的电视上成功地使用了 minidlna。但是我在使用 NixOS 时遇到了问题。
这是我的 NixOS 配置 ( /etc/nixos/configuration.nix
):
#DLNA
services.minidlna.enable = true;
services.minidlna.settings = {
friendly_name = "PCMEDIA";
media_dir = ["V,/mnt/ORION/DLNA/"];
log_level = "debug";
};
这是我尝试用电视连接到 DLNA 服务器时的日志:
$ sudo journalctl --unit minidlna -r
May 06 08:08:54 nixos minidlnad[40642]: EXT:
May 06 08:08:54 nixos minidlnad[40642]: Date: Sat, 06 May 2023 02:38:54 GMT
May 06 08:08:54 nixos minidlnad[40642]: Server: 5.15.93 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.3.1
May 06 08:08:54 nixos minidlnad[40642]: Content-Length: 2196
May 06 08:08:54 nixos minidlnad[40642]: Connection: close
May 06 08:08:54 nixos minidlnad[40642]: Content-Type: text/xml; charset="utf-8"
May 06 08:08:54 nixos minidlnad[40642]: upnphttp.c:1277: debug: HTTP RESPONSE: HTTP/1.1 200 OK
May 06 08:08:54 nixos minidlnad[40642]:
May 06 08:08:54 nixos minidlnad[40642]: 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[40642]: X-PANASONIC-Registration: (hexadecimal number)
May 06 08:08:54 nixos minidlnad[40642]: Host: 192.168.1.180:8200
May 06 08:08:54 nixos minidlnad[40642]: User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50
May 06 08:08:54 nixos minidlnad[40642]: upnphttp.c:916: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.1
May 06 08:08:54 nixos minidlnad[40642]: clients.c:357: debug: Client found in cache. [Panasonic/entry 0]
May 06 08:08:54 nixos minidlnad[40642]: minidlna.c:170: debug: HTTP connection from 192.168.1.184:58601
May 06 08:08:53 nixos minidlnad[40642]: 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[40642]: 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[40642]: 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[40642]: 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[40642]: 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[40642]: 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[40642]: <root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><device><deviceType>urn:schemas-upnp-org:dev>
May 06 08:07:54 nixos minidlnad[40642]: <?xml version="1.0"?>
如何让 minidlna 发挥作用?不仅仅是我的电视,它不适用于 VLC 或任何其他支持 DLNA 的应用程序。