vlc incorrectly opens cp1251 encoded sutitles

Bug #401911 reported by Ilya on 2009-07-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VLC media player
Invalid
Undecided
Unassigned
libass (Ubuntu)
Undecided
Unassigned
vlc (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: vlc

1) Ubuntu 9.04
2) vlc 0.9.9a-2ubuntu1

This is what happened: i opened the .avi file with the same name as .ass file (in the attachment), and subtitles loaded in wrong encoding, they where like "Ïîêà íåëüçÿ ïåðåâîðà÷èâàòü, ÿñíî?" and should be like "Пока нельзя переворачивать, ясно?", "Default encoding" option was properly set to cp1251.
          After what i did:

iconv -f cp1251 -t utf8 xxx.ass > yyy.ass
vlc yyy.avi

and it loaded properly, even thought i didn't change "default encodig" option. This suggests what in this case it just sets the utf8 encoding no matter what, and should set cp1251 by user's choice or automatically.

Ilya (kvva1g0n-j1nn) wrote :
description: updated
Ilya (kvva1g0n-j1nn) on 2009-07-22
description: updated
Changed in vlc (Ubuntu):
status: New → Incomplete
Changed in vlc:
assignee: nobody → Rémi Denis-Courmont (rdenis)
status: New → Invalid
status: Invalid → Confirmed
Changed in vlc:
milestone: none → 1.0.4
Changed in vlc (Ubuntu):
status: Incomplete → Confirmed
Rémi Denis-Courmont (rdenis) wrote :

The subsdec-encoding setting which you can find in the VLC preferences panel only applies to VLC-decoded subtitles. The Ubuntu VLC package uses libass instead of native VLC decoding for .ass files, so it ignores the value. There is no apparent ways to fix this with the current libass API.

My best guess is that this is a bug in the underlying libenca. Reassigning to libass anyway.

Changed in vlc:
status: Confirmed → Won't Fix
Rémi Denis-Courmont (rdenis) wrote :

By the way, as a work around, you can manually remove the VLC libass plugin (/usr/lib/vlc/codec/liblibass_plugin.so).

Changed in vlc:
milestone: 1.0.4 → none

Thank you for posting this bug.

Does this still happen in Lucid?

Changed in vlc (Ubuntu):
status: Confirmed → Incomplete
Changed in libass (Ubuntu):
status: New → Incomplete
Rémi Denis-Courmont (rdenis) wrote :

Not a VLC bug.

Changed in vlc:
status: Won't Fix → Invalid
Changed in vlc (Ubuntu):
status: Incomplete → Invalid
Changed in vlc:
assignee: Rémi Denis-Courmont (rdenis) → nobody
Launchpad Janitor (janitor) wrote :

[Expired for libass (Ubuntu) because there has been no activity for 60 days.]

Changed in libass (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers