Project

General

Profile

Bug #2133

Bad subtitle encoding

Added by c0m m0n over 10 years ago. Updated about 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
-
Start date:
2014-06-11
Due date:
% Done:

0%

Estimated time:
Found in version:
3.9.817
Affected Versions:

Description

Hi,

I'm France with french TV, and I've tried absolutely everything on my side to have subtitle encoding work with no success.

Here I provide a mkv made by tvheadend : https://dl.dropboxusercontent.com/u/1266842/Subtitle_encoding_example.mkv

On Mac iMkvextract says the subtitle are UTF8, i'm not sure that's right (on this channel I've tried to change to latin-1 with no success in the thv encoding section for service mapped to this channel)

Here's the extracted sub file : https://dl.dropboxusercontent.com/u/1266842/subtitles4.srt

I can provide any


Files

Canal+_Family_HD.mkv (8.53 MB) Canal+_Family_HD.mkv MKV from TVH c0m m0n, 2014-06-11 00:44
subtitles4.srt (244 Bytes) subtitles4.srt Extracted subtitle from MKV c0m m0n, 2014-06-11 00:44

History

#1

Updated by c0m m0n over 10 years ago

Found the bug !

French is badly detected in teletext parser. Hardcoding french in languages for tt parsing fixes the bug

Line 170 replacing

int no = laG0_nat_opts_lookup[Gtriplet & 0xf][natopts & 0x7];

by this

int no = 3;

I'll try to dig more.

#2

Updated by c0m m0n over 10 years ago

Fixed in latest master, thanks perexg !

This also should fix encoding for any languages.

#3

Updated by Jaroslav Kysela about 10 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF