[Solved] Newer versions of UMS no longer transcode subtitles

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
kaworu17
Posts: 4
Joined: Mon Jun 08, 2020 4:44 am

[Solved] Newer versions of UMS no longer transcode subtitles

Post 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.
Attachments
ums_dbg - 9.5.zip
This one does not display subtitles
(107.3 KiB) Downloaded 717 times
ums_dbg - 9.1.zip
This one still displays the subtitles as normal
(111.28 KiB) Downloaded 764 times
User avatar
mik_s
Moderator
Posts: 1464
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Newer versions of UMS no longer transcode subtitles

Post 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.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Newer versions of UMS no longer transcode subtitles

Post 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.
User avatar
mik_s
Moderator
Posts: 1464
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Newer versions of UMS no longer transcode subtitles

Post 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.
Attachments
Sony-PlayStation4 mod.conf
(2.09 KiB) Downloaded 520 times
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
User avatar
SubJunk
Lead Developer
Posts: 3805
Joined: Sun May 27, 2012 4:12 pm

Re: Newer versions of UMS no longer transcode subtitles

Post 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
kaworu17
Posts: 4
Joined: Mon Jun 08, 2020 4:44 am

Re: Newer versions of UMS no longer transcode subtitles

Post 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!
User avatar
SubJunk
Lead Developer
Posts: 3805
Joined: Sun May 27, 2012 4:12 pm

Re: Newer versions of UMS no longer transcode subtitles

Post by SubJunk »

Awesome, thanks for confirming. I'll mark this as solved now :)
User avatar
mik_s
Moderator
Posts: 1464
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

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

Post by mik_s »

Good to hear.

Did you try activating the subs on your PS4 when not transcoding?
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
kaworu17
Posts: 4
Joined: Mon Jun 08, 2020 4:44 am

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

Post 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.
User avatar
mik_s
Moderator
Posts: 1464
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

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

Post by mik_s »

Did it show that there was any subtitles at all with the options button when selecting (....)?
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Post Reply