6.7.0 and Subtitles

For help and support with Universal Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Madoka
Posts: 283
Joined: Fri Jun 01, 2012 12:51 pm

6.7.0 and Subtitles

Post by Madoka » Sun Jun 11, 2017 10:35 am

This is from the 6.7.0 announcement thread:
One thing is that the included FFmpeg breaks subtitles. I get no buffer, and the PS3 throws an error. I put ffmpeg-20161006-0212867-win64-static back in, and subtitles work again. I had tried a newer static a few weeks ago, and it still didn't work.
SJ asked me to post the logs. The first file Hiyokko has external .ass files and Asa ga Kita has external .srt files. Both failed to play.
Attachments
ums_dbg.zip
(119.83 KiB) Downloaded 18 times

User avatar
SubJunk
Lead Developer
Posts: 2570
Joined: Sun May 27, 2012 4:12 pm

Re: 6.7.0 and Subtitles

Post by SubJunk » Sat Jun 17, 2017 2:50 pm

Thanks for this Madoka. I found one of the videos but can you attach the subs (Hiyokko Week 09 Ep049 (848x480 x264).ass) so I can test?

Madoka
Posts: 283
Joined: Fri Jun 01, 2012 12:51 pm

Re: 6.7.0 and Subtitles

Post by Madoka » Sun Jun 18, 2017 4:41 am

Here are the subs.
Attachments
Hiyokko Week 09 Ep049 (848x480 x264).zip
(7.38 KiB) Downloaded 13 times

User avatar
SubJunk
Lead Developer
Posts: 2570
Joined: Sun May 27, 2012 4:12 pm

Re: 6.7.0 and Subtitles

Post by SubJunk » Sun Jun 18, 2017 4:19 pm

Running the same command as you on the same file works for me, so I have a hunch that the issue is related to CPU flags or a GCC upgrade by the Zeranoe team. I used to sometimes encounter the same issues when I released the binaries and fixed them by disabling certain CPU flags in the compiler options.
Unfortunately other than reporting the issue to their team we don't have much control over it.

It also could be a UMS issue and be happening earlier in the chain for some reason so to make sure can you please run the following command and let me know if it produces a playable video?

Code: Select all

"C:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe" -y -loglevel info -i "F:\J-Drama\~Asadoras~\Hiyokko\Hiyokko Week 09 (848x480 x264)\Hiyokko Week 09 Ep049 (848x480 x264).mp4" -filter_complex "subtitles=D\\:/J-Drama/~Asadoras~/Hiyokko/Hiyokko Week 09 (848x480 x264)/Hiyokko Week 09 Ep049 (848x480 x264).ass" -bufsize 1835k -maxrate 127000k -g 25 -q:v 1 -qmin 2 -qmax 3 -ab 448k -ar 48000 -c:a ac3 -c:v mpeg2video -f vob file.mpg

Madoka
Posts: 283
Joined: Fri Jun 01, 2012 12:51 pm

Re: 6.7.0 and Subtitles

Post by Madoka » Sun Jun 18, 2017 4:38 pm

Putting that code in resulted in an error where the subtitles were not found. I changed the D to and F as it's on my F drive. I hope that was ok. I don't understands these commands. I ran it twice, once with the FFmpeg that works for me (as I forgot that that was what I'm currently using) and again with the FFmpeg included with 6.7.1.

Both produce playable files. BUT!!! the new FFmpeg included with 6.7.1 pauses for a long, long time at the first [Parsed_subtitltesxxxxx] Shaper: FriBidi 0.19.6 <Simple>. It pauses again at the second one as well, but not as long. If I wait a long time, it will continue to produce a file. Perhaps it's this delay that times out making the UMS buffer? The older FFmpeg does not pause at all.

User avatar
SubJunk
Lead Developer
Posts: 2570
Joined: Sun May 27, 2012 4:12 pm

Re: 6.7.0 and Subtitles

Post by SubJunk » Sun Jun 18, 2017 4:58 pm

Yeah that was my mistake with the drive letter. Ah interesting results. Yes it could be the long pause causing the issue. I think I will roll back the FFmpeg version and create a bug report for it on the Zeranoe forums.
Can you see what happens if you delete the "fonts" directory?

Madoka
Posts: 283
Joined: Fri Jun 01, 2012 12:51 pm

Re: 6.7.0 and Subtitles

Post by Madoka » Sun Jun 18, 2017 5:08 pm

I assume you meant the one in the UMS/win32 folder. :D

It does not pause, but then the video has no subtitles. "No useable fontconfig files." and "Cannot load default config file."

User avatar
SubJunk
Lead Developer
Posts: 2570
Joined: Sun May 27, 2012 4:12 pm

Re: 6.7.0 and Subtitles

Post by SubJunk » Sun Jun 18, 2017 5:42 pm

Ah cool. Ok does it work with either of these versions of FFmpeg? https://ffmpeg.zeranoe.com/builds/win64 ... static.zip or https://ffmpeg.zeranoe.com/builds/win64 ... static.zip
They're just the latest versions

User avatar
SubJunk
Lead Developer
Posts: 2570
Joined: Sun May 27, 2012 4:12 pm

Re: 6.7.0 and Subtitles

Post by SubJunk » Sun Jun 18, 2017 5:54 pm


Madoka
Posts: 283
Joined: Fri Jun 01, 2012 12:51 pm

Re: 6.7.0 and Subtitles

Post by Madoka » Sun Jun 18, 2017 6:31 pm

Neither of those statics work. I also ran that code and got the same pauses as before.

Post Reply