[FFmpeg-trac] #2431(avcodec:new): Detect if subtitle streams do not contain valid utf-8

FFmpeg trac at avcodec.org
Fri Apr 5 11:42:15 CEST 2013


#2431: Detect if subtitle streams do not contain valid utf-8
-------------------------------------+-----------------------------------
             Reporter:  Nick         |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  sub srt      |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by cehoyos):

 Replying to [comment:12 Nick]:
 > Replying to [comment:11 cehoyos]:
 > > Since you know the encoding of your subtitle file, I suggest using
 -sub_charenc
 >
 > Ok, I know the encoding of my subtitle file but please show me:
 > How I can import and encode my "subtitle_test.srt" file to an mp4 or mkv
 file using "-sub_charenc"???

 As you told me in comment:5 (I didn't know before, I had never tested it):
 with -sub_charenc cp1252
 $ ffmpeg -f lavfi -i testsrc -sub_charenc cp1252 -i subtitle_test.srt
 -vcodec mpeg4 -scodec mov_text -t 60 out.mov

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


More information about the FFmpeg-trac mailing list