Page 1 of 1

Playback issues

Posted: Wed Dec 07, 2022 2:37 pm
by bukharov
Hey All,

For some reason UMS is having trouble playing a particular video (Episode 5 of LOTR: The Rings Of Power) on my Samsung TV.
It stops playing immediately after starting (it shows a loading spinner for a few seconds).
It's a new headless installation on Ubuntu 22, perhaps I missed something?

The log is attached.

Thanks,
Denis

Re: Playback issues

Posted: Wed Dec 07, 2022 4:22 pm
by mik_s
It looks like UMS thinks your network connection to the TV is too slow to stream that video as it has a higher bitrate, so is trying to transcode it in a lower quality to be played.
The TV's estimated network speed is 7.71Mb/s (7000000 b/s) but that video has a bitrate of 8075574 b/s

Code: Select all

TRACE 2022-12-06 11:28:47.886 [jupnp-netty-worker-4] Matched support line f:mkv       v:h264|h265                                          a:aac-lc|he-aac|ac3|eac3|lpcm|mp3|mpa|wma|truehd      m:video/x-mkv
TRACE 2022-12-06 11:28:47.886 [jupnp-netty-worker-4] Using video bitrate limit from [TV] Samsung Q70 Series (75) configuration (7 Mb/s) because it is lower than the general configuration bitrate limit (90 Mb/s)
DEBUG 2022-12-06 11:28:47.887 [jupnp-netty-worker-4] Reading MaxVideoWidth: 4096 (default: 1920)
DEBUG 2022-12-06 11:28:47.887 [jupnp-netty-worker-4] Reading MaxVideoHeight: 2160 (default: 1080)
DEBUG 2022-12-06 11:28:47.887 [jupnp-netty-worker-4] File "The.Lord.of.the.Rings.The.Rings.of.Power.S01E05.Partings.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" will not be streamed because the bitrate (8075574 b/s) is too high (7000000 b/s).
DEBUG 2022-12-06 11:28:47.887 [jupnp-netty-worker-4] Final verdict: "The.Lord.of.the.Rings.The.Rings.of.Power.S01E05.Partings.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" will be transcoded with engine "FFmpeg Video" with mime type "video/x-matroska"
You can try and force UMS to not transcode by playing from the #--TRANSCODE--# folder and choose "No transcoding" but there is likely to be stutters.
(if you do not see it, enable "show the #--Transcode--# folder" in the GUI on the navigation tab)

I can't tell if you are on WiFi or not. If you are try a wired connection, at least to the TV from the router. This should improve the speed.

Re: Playback issues

Posted: Wed Dec 07, 2022 5:18 pm
by bukharov
Thanks for your reply mik_s!
I tried playing the video without transcoding using the TRANSCODE folder almost immediately after failure, but to no avail (same issue it wouldnt even start playing).
I don't have a log file with that though, but I'll try to get one tomorrow.

Re: Playback issues

Posted: Fri Dec 09, 2022 2:09 am
by bukharov
After a restart UMS stopped transcoding MKV files, so the issue kinda went away. Playback is still stopping sometimes at random, but those are really hard to catch.

Re: Playback issues

Posted: Fri Dec 09, 2022 4:48 am
by mik_s
There might be something using up bandwidth on your network which is slowing down the traffic needed by UMS, possibly other people streaming in you household. The connection speed to your TV seems really slow though. How have you cot things connected?

Re: Playback issues

Posted: Fri Dec 09, 2022 1:52 pm
by bukharov
Mesh WiFi 6, it's pretty fast. I was able to stream 4k without any issues with MiniDLNA. I switched to UMS because my TV does not support AVI video and DTS audio which is really annoying.

Re: Playback issues

Posted: Sat Dec 10, 2022 10:47 am
by mik_s
I don't know much about networking to help but I'm sure that should be fast enough. Something must be slowing it down.

Re: Playback issues

Posted: Fri Dec 16, 2022 2:35 pm
by bukharov
I disabled transcoding triggered by the network speed (automatic_maximum_bitrate = false) so it solved the problem for some files.
But when a file is transcoded for another reason UMS immediately stops playing it after starting. I've attached another log showing this issue (the file is "Operatsiya.Y.i.drugiye.priklyucheniya.Shurika.1965.1080p.BluRay.DTS.FLAC.x264.HDCLUB-SbR.mkv").