Page 1 of 2

[Solved] Newer versions of UMS no longer transcode subtitles

Posted: Mon Jun 08, 2020 4:47 am
by kaworu17
Hello,

I've been using UMS for several years, mostly to stream anime to my television through my PS4. However, around versions after 9.1, it no longer transcodes subtitles. I created logs per the reporting guide, and have attached the logs from the version that still transcodes them, and the latest 9.5 build.

Re: Newer versions of UMS no longer transcode subtitles

Posted: Thu Jun 11, 2020 10:27 am
by mik_s
Looking at your logs UMS is not transcoding in v9.5, but streaming straight to your PS4. There is no need to burn in the subtitles as the PS4 can display them itself (as well as changing audio tracks)

In your 9.1 log, UMS was incorrectly transcoding due to continuing to try and match formats even though it already had one.
in 9.1

Code: Select all

net.pms.dlna.DLNAResource Matched internal subtitles track for "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv": Embedded, id: 0, type: ASS, lang: eng
net.pms.dlna.DLNAResource This video has embedded subtitles that must be transcoded
net.pms.formats.FormatFactory Getting player for resource "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv"
net.pms.formats.FormatFactory Returning compatible player "FFmpeg Video"
net.pms.configuration.FormatConfiguration Format "mkv" failed to match supported line f:avi      v:mp4|h264     a:aac-lc|ac3|mp3                           m:video/avi
net.pms.configuration.FormatConfiguration Matched support line f:mkv      v:h264         a:aac-lc|ac3|mp3                           m:video/x-matroska
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:avi      v:mp4|h264     a:aac-lc|ac3|mp3                           m:video/avi
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:mkv      v:h264         a:aac-lc|ac3|mp3                           m:video/x-matroska
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:mkv      v:h264         a:he-aac        n:2                        m:video/x-matroska
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:mp4      v:h264         a:aac-lc|ac3             w:3840   h:2160   m:video/mp4
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:mp4      v:h264         a:he-aac        n:2      w:3840   h:2160   m:video/mp4
net.pms.configuration.FormatConfiguration Format "mpegts" failed to match supported line f:mpegps   v:mpeg2        a:aac-lc|ac3|lpcm|mpa                      m:video/mpeg
net.pms.configuration.FormatConfiguration Matched support line f:mpegts   v:mpeg2|h264   a:aac-lc|ac3|mpa                           m:video/mpeg
net.pms.dlna.DLNAResource Final verdict: "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv" will be transcoded with player "FFmpeg Video" with mime type "video/mpeg"
in 9.5

Code: Select all

net.pms.dlna.DLNAResource Matched internal subtitles track for "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv": Embedded, id: 0, type: ASS, lang: eng
net.pms.dlna.DLNAResource This video has embedded subtitles that must be transcoded
net.pms.formats.FormatFactory Getting player for resource "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv"
net.pms.formats.FormatFactory Returning compatible player "FFmpeg Video"
net.pms.configuration.FormatConfiguration Format "mkv" failed to match supported line f:avi      v:mp4|h264     a:aac-lc|ac3|mp3                           m:video/avi
net.pms.configuration.FormatConfiguration Matched support line f:mkv      v:h264         a:aac-lc|ac3|mp3                           m:video/x-matroska
net.pms.dlna.DLNAResource Final verdict: "[HorribleSubs] Mairimashita! Iruma-kun - 01 [1080p].mkv" will be streamed

If you press the options button on you PS4 when watching a video, "(....)" lets you select the subtitle you want and "cc" lets you customise how to display them.

Re: Newer versions of UMS no longer transcode subtitles

Posted: Thu Jun 11, 2020 10:35 am
by Nadahar
@mik_s The 9.1 log can be a bit confusing, but it's not actually wrong what it does. Note the difference between 'Format "mkv"' and 'Format "mpegts"'. What actually happens there is that it first finds a match according to the "supported" lines for Matroska, but then decides it can't stream anyway for some reason (probably subtitles). It then starts looking for a match for "mpegts" which is the transcoding target format.

It's a bit silly because if the renderer configuration doesn't "support" the transcoding target, UMS is out of options and simply can't serve the file, but regardless, the matching is always done "twice" when transcoding and it isn't an error as such.

Re: Newer versions of UMS no longer transcode subtitles

Posted: Thu Jun 11, 2020 11:10 am
by mik_s
Yes it might be the subtitles, the config only has support for SUBRIP but the internal subs for that file is ASS. so I guess that 9.5 should be transcoding :?

However just tested a similar file on my PS4 with internal ASS subtitles and it plays fine (from usb as it is on a separate network and cba to change it)
I think the PS4 conf needs updating a bit. The one I use is modified from an old version and there have been some changes since but works for me, although I hardly use my PS4 for that.

Re: Newer versions of UMS no longer transcode subtitles

Posted: Thu Jun 11, 2020 4:47 pm
by SubJunk
Thanks to the nice logs provided, I have reproduced the bug where internal subtitles are not transcoded when they should be, and you can try the fix at https://www.universalmediaserver.com/up ... coding.exe and it will likely be in our next release, very soon
The issue for reference is https://github.com/UniversalMediaServer ... ssues/2091

Re: Newer versions of UMS no longer transcode subtitles

Posted: Fri Jun 12, 2020 5:02 am
by kaworu17
Thanks for the reply, I tested your fix and now it's working perfectly with the files that didn't work before. Thanks for your work!

Re: Newer versions of UMS no longer transcode subtitles

Posted: Fri Jun 12, 2020 8:49 am
by SubJunk
Awesome, thanks for confirming. I'll mark this as solved now :)

Re: [Solved] Newer versions of UMS no longer transcode subtitles

Posted: Fri Jun 12, 2020 9:53 am
by mik_s
Good to hear.

Did you try activating the subs on your PS4 when not transcoding?

Re: [Solved] Newer versions of UMS no longer transcode subtitles

Posted: Sat Jun 13, 2020 12:46 pm
by kaworu17
I tried turning the subtitles on or off using the options button but it didn’t seem to have any noticeable effect at all. Hope this helps.

Re: [Solved] Newer versions of UMS no longer transcode subtitles

Posted: Sat Jun 13, 2020 12:55 pm
by mik_s
Did it show that there was any subtitles at all with the options button when selecting (....)?