miniDLNA working but High quality/large file buffering issues on wired network

Hi, I’ve configured my turris omnia router to enable mini DLNA and I’ve mounted a 8Tb drive to store my films on. I have it working and for low quality films I have no problems, but with higher quality films I encounter constant pausing and buffering during playback both in VLC (local network universal plug’n’play browser) and windows media player equivalent, on my directly wired Windows 10 machine.

I’m getting especially bad results with a 20Gb .mkv file.

I’m at a complete loss as to how to resolve this issue. Please, might anyone be able to provide some help?

Firmware Version OpenWrt omnia 15.05 r47055 / LuCI d8558fdf88ff703852bd056b446b91db0aa03ed8 branch (git-19.101.33375-d8558fd)

I formatted the 8TB drive with ext4 and I have no trouble accessing the files on it browsing and like I say miniDLNA is working in general, though its not putting anything in the logs withe the specified log directory or the system log, which is not helping.

miniDLNA Status

The miniDLNA service is active, serving 13920 audio, 198 video and 2313 image files.

I thought it might need a swap file so I added one, 1Gb swapfile, but it doesn’t get used. from what I can tell.

free -k
             total       used       free     shared    buffers     cached
Mem:       1030732     938668      92064      11424      20056     633288
-/+ buffers/cache:     285324     745408
Swap:      1048572          0    1048572

The drive is mounted at /mnt/sda1

/dev/mmcblk0p1 on / type btrfs (rw,noatime,ssd,space_cache,commit=5,subvolid=265,subvol=/@)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
none on /sys/fs/cgroup type cgroup (rw,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda1 on /mnt/sda1 type ext4 (rw,relatime,data=ordered)

root@turris:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1            7.3G    274.0M      7.0G   4% /
tmpfs                   503.3M     11.2M    492.1M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 7.2T    439.5G      6.4T   6% /mnt/sda1

root@turris:/#  cat /proc/meminfo | head
MemTotal:        1030732 kB
MemFree:           25812 kB
MemAvailable:     773572 kB
Buffers:           17620 kB
Cached:           737152 kB
SwapCached:            0 kB
Active:           225640 kB
Inactive:         661168 kB
Active(anon):      65520 kB
Inactive(anon):    77988 kB

Main miniDLNA config…

root@turris:/# cat /etc/config/minidlna

config minidlna 'config'
        option enabled '1'
        option port '8200'
        option wide_links '0'
        option serial '12345678'
        option model_number '1'
        option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Foldejpg/folder.jpg/Thumb.jpg/thumb.jpg'
        option friendly_name 'OpenWrt DLNA Server test'
        list media_dir '/mnt/sda1/'
        option interface 'br-lan,wlan0,wlan1'
        option db_dir '/mnt/sda1/minidlna/db'
        option log_dir '/mnt/sda1/minidlna/log'
        option log_level 'debug'
        option inotify '1'
        option notify_interval '3600'
        option root_container 'B'

The only think I can find in the logs that looks wrong is this…

warning updater[11115]: planner.lua:344 (pkg_plan): Requested package luci-i18n-ddns-en that is missing, ignoring as requested.

I’ve looked and looked and there doesn’t appear to be many options to even play with regards to miniDLNA and the router doesn’t appear to have resource issues. I’m using a 6tb sata cable for the drive, so it shouldn;t be data transfer rates. Though when I was using an old ReadyNAS duo the same files could be streamed OK, so that’s not the issue.

Many thanks in advance!


Check with htop and/or netdata what’s the bottleneck when streaming. Assuming 20GB file of 1.5hr (5400s) of video = 3.8MB/s = 30 Mb/s datarate (compressed). So the bottleneck can be also the device on which you stream because it needs to decompress 4MB/s.

Hi and thanks for the reply.

From what I can tell, htop shows that there’s no resource issue. …

Tasks: 65, 9 thr; 1 runnning
Average CPU load 0.1, 0.12, 0.15. (jumped to 0.49,0.29, 0.26 at one point). 222M of memory use out of 1Gb luci-bwc 9 seems to be the biggest consumer of resources.

Whilst streaming and encountering the buffering, I see nothing in htop changing significantly really.

The device a Turris Omnia is way more powerful than the old Readynas Duo I was using. I’ve streamed this same 20Gb film on the Readynas to my same PC without buffering before.

Changing the nice process priority made no difference either :frowning:

Any other suggestions by chance?

Thank you!