Setup: I have a RPi 4 with miniDLNA (ReadyMedia) and samba each running in a docker, a SSD connected via USB3 to the RPi and a TV connected via WiFi. All devices are in my locale network. The SSD is formatted as ext4. I have access via samba to a folder on my SSD which also functions as the miniDLNA volume.
I have transfer speeds of around 90MB/s via LAN and WiFi to my samba share. But the issue is when streaming videos via miniDLNA I notice long buffering times and it usually gets stuck after watching for just a few seconds (both on TV [WiFi] as well as on a Win10 machine [LAN]). Until now, I didn't notice this behaviour with .mp4 files, only with .mkv files. The video files are 1080p.
The two docker files I use are from dperson/samba and ypopovych/readymedia, respectively.
I do not think this is an issue with my docker-compose file, rather than an encoding issue, but nevertheless here is my docker-compose file:
version: '3.4'
services:
samba:
image: dperson/samba
environment:
TZ: 'Europe/Berlin'
USER: 'username;password'
SHARE: 'share;/mnt/transit;yes;no;yes'
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
restart: unless-stopped
volumes:
- "/mnt/transit:/mnt/transit"
command: '-p'
dlna:
image: ypopovych/readymedia
network_mode: "host"
environment:
FRIENDLY_NAME: "DLNA4B"
VIDEO_DIR1: "/media"
volumes:
- "/mnt/transit/videos:/media"
- "readymediacache:/cache"
ports:
- 8200:8200
restart: unless-stopped
depends_on:
- "samba"
volumes:
readymediacache:
Does anybody have some pointers or experienced similar behaviours?
Edit: After some further testing I can rule out miniDLNA and samba. I created a share on the SD-card on my RPi and played a mkv video from there. No buffering problems at all. As soon as I play it from my SSD connected via USB3, I get the buffering problems every few seconds. When that happens the SSD does not respond at all for a couple of seconds. This is strange, because reading and writing from the SSD works with constant 90-100MB/s via network.