Page 1 of 1

Subtitles: Special Characters Break Formatting

Posted: 13 Jun 2013 09:52
by aphirst
I've noticed a rendering issue with a handful of files with SSA/ASS (embedded) subtitles.

Subtitle lines with special characters in (e.g. ♥ ) render perfectly up to and including said character, but the remainder of the line loses any custom formatting it otherwise had.

Example in VLC 2.0.7 win32 on Windows 8: Link
Same frame correctly rendered in MPC-HC: Link

Here's a copy of the video file I first found the problem in: Link (The relevant section is between 21 and 25 seconds)
Edit: There's another example in the same file at 1m28 with a left-arrow (←)

I couldn't find any settings that seemed relevant to this to fiddle with, and I still get the error even if I perform a full reset of the preferences. It's also present with or without HW Accelerate enabled, though admittedly this particular file is Hi10P. I checked the debug output and there didn't seem to be anything acknowledging that the formatting had broken, just identical benign messages about creating textures for the subtitles.

I'm currently running Windows 8 x64, with up-to-date chipset and graphics drivers, using the 32-bit build of VLC 2.0.7
Edit: This also happens with the experimental 64-bit build.

If anyone is able to confirm this I'd be very interested, and will submit a proper bug report - I'd rather check in the forums first, though. I don't have access to my Linux box at the moment - I wasn't comfortable posting this in the 'General' section without testing that myself. If someone else does confirm this on Linux/Mac, feel free to move the thread. Also, let me know if there's more information needed.

Re: Subtitles: Special Characters Break Formatting

Posted: 14 Jun 2013 08:28
by Lotesdelere
You should create a new ticket on the VLC Trac with your messages log and the links to your file and to this thread.

Re: Subtitles: Special Characters Break Formatting

Posted: 14 Jun 2013 16:00
by Jean-Baptiste Kempf
It looks like a bug in libass. A ticket is necessary.

Re: Subtitles: Special Characters Break Formatting

Posted: 15 Jun 2013 02:23
by aphirst
Do you mean a ticket at the libass dev page?

EDIT: I've created a ticket the VLC Trac, #8799.

Re: Subtitles: Special Characters Break Formatting

Posted: 16 Jun 2013 01:17
by aphirst
As I've appended to my VLC Trac ticket, I submitted a bug report to libass directly, and someone there seems to have already diagnosed the problem and submitted a patch to their own repo clone. I hope this works its way into the main branch in the forseeable future. :D

EDIT: Since this indeed was a problem with libass rather than VLC, should this be moved to the "not specific to any OS" forum instead?