[FFmpeg-trac] #2431(undetermined:new): ffmpeg subtitle encoding of special characters does not working correctly

FFmpeg trac at avcodec.org
Thu Apr 4 14:39:09 CEST 2013


#2431: ffmpeg subtitle encoding of special characters does not working correctly
-------------------------------------+-------------------------------------
             Reporter:  Nick         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  sub srt      |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Nick):

 Replying to [comment:2 Cigaes]:
 > Your SRT file is not in UTF-8, and you did not specify any
 {{{-sub_charenc}}} option.

 [[BR]]
 Yes, my srt file is not (pre-)encoded in UTF-8!
 This srt file is (Windows/ANSI) plain text only, like other srt files
 created by tools like "Sub Rip" or subtitle files you can download from
 internet data bases.
 ''(All used special characters in my srt file are included in the windows
 default code page CP-1252 and ISO-8859-1)''

 '''The missing UTF-8 coding of the subtitle stream inside the mp4/mkv
 container seems the problem! '''
 ''(If you open the created container files with a Hex-Editor you can see
 the subtitle stream was not converted to UTF-8.)''

 '''Should not detect FFmpeg by itself whether the subtitle source file is
 plain text only or in UTF-8 and select the right encoding mode
 automatically?'''

 For the FFmpeg.exe (Windows Build) I did not found any documentation to
 using the '''-sub_charenc''' option and their possible parameters. (Is
 here also an automatic detection mode available?)
 Could you please show me a working command line example using -sub_charenc
 with ffmpeg.exe?

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2431#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list