GNOME Bugzilla – Bug 750975
playbin subtitle-encoding ignored
Last modified: 2015-06-15 10:40:01 UTC
Playbins subtitle-encoding parameter is ignored in 1.5.1, worked well in older versions. How to reproduce: unset GST_SUBTITLE_ENCODING; export GST_SUBTITLE_ENCODING gst-launch-1.0 playbin uri=file:///tmp/test.avi suburi=file:///tmp/test.srt subtitle-encoding=cp1250 Subtitles are not ecoded properly. Works well if I set GST_SUBTITLE_ENCODING=cp1250. Looks like evironment variable has priority even if not set.
Seems to work fine here, it uses the subtitle-encoding property value whenever set and only falls back to the environment variable if the property is NULL or "". However it will ignore each of those if the subtitles look like valid UTF8, or it detects a unicode BOM at the very beginning. Can you check in gstsubparse.c in convert_encoding() which code paths are taken and which values are used for the encoding there?
This might be related to bug #750785, which was fixed after 1.5.1 release.
Confirmed to be a dup of bug #750785 *** This bug has been marked as a duplicate of bug 750785 ***