Jump to content


Photo

Transcode srt subtitles in other charset than CP-1252

subtitle

  • Please log in to reply
6 replies to this topic

#1 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 21 August 2014 - 04:16 AM

Hi,

Sorry to bring this topic again - I'm pulling my hairs out to find a workaround but without luck.

I have a lot of videos with simplied or traditional chinese which are encoded in GB2312/BIG5 charsets. When mediabrowser server transcodes the videos, it assumes the encoding is CP-1252 which causes the subtitles not being displayed correctly. The problem only affect external srt subtitles, ass subtitles work fine, ssa subtitles don't work at all. I've tried several things without any luck:

  • Change srt file name to include "chn" , "chs" or "cht"
  • Convert srt file to UTF-8 encoding
  • Convert srt file to CP-1252 (all chars become "?" after convertion)

I understand it will take time to develop something to support asian subtitles, and it won't be the high priority now.

As a workaround, can I, in anyway to enforce FFMpeg to use a certain charset when transcoding srt subtitles? Please see the following command I found in another thread, I assume it will work if the -sub_charenc is configured correctly.

 

C:\Users\thoror\AppData\Roaming\MediaBrowser-Server\ffmpeg\ffmpeg20131011\ffmpeg.exe -sub_charenc GB2312 -i "\\AUSTIN\media\TV Series\The Big Bang Theory\Season 1\The.Big.Bang.Theory.S01E02.720p.BluRay.x264-SiNNERS.chs.srt" "C:\Users\thoror\AppData\Roaming\MediaBrowser-Server\cache\subtitles\1\1329e16a-7e00-b6cb-5f3f-00e0c93fbfc6.ass"

 

 

Please share your suggestion, thank you in advance!



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153457 posts
  • Local time: 05:02 PM

Posted 21 August 2014 - 07:26 PM

I'll play with this a little soon.



#3 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 22 August 2014 - 02:10 AM

I'll play with this a little soon.

Hi Luke, thank you for looking into this!

I attach a srt file in GB2312 encoding which I hope you can use for investigation.

Attached Files



#4 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 26 August 2014 - 02:12 AM

I'll play with this a little soon.

Hi Luke, could it be a good idea to add an option to choose encoding charset in transcode configuration for unknown language for now?

#5 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 10 September 2014 - 04:20 AM

I'll play with this a little soon.

Hi Luke, do you know if the new beta version have some changes to support subtitles in other languages?

Thank you!



#6 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 02 January 2015 - 04:47 PM

Sorry to bump up an old topic, but I recently tried the latest version of MB3 and I still seem to get problem with subtitles encoded in other charset other than CP-1252.

Is it solved?



#7 somy OFFLINE  

somy

    Advanced Member

  • Members
  • 309 posts
  • Local time: 09:02 PM

Posted 05 January 2015 - 05:14 AM

Link to: http://mediabrowser....acter-encoding/

I'm no longer sure if this is a server issue or web client issue......







Also tagged with one or more of these keywords: subtitle

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users