[FFmpeg-trac] #2431(undetermined:new): ffmpeg subtitle encoding of special characters does not working correctly
FFmpeg
trac at avcodec.org
Thu Apr 4 17:11:32 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:4 cehoyos]:
> How?
If the source srt/ass '''text file''' is codec in UTF-8 it can be detected
with the UTF-8 BOM sequence 0xEF,0xBB,0xBF
([http://en.wikipedia.org/wiki/Byte_order_mark Byte Order Mark]).
If UTF-8 BOM was not found it should be a plain text file which should be
converted from CP-1252/ISO-8859-1 to UTF-8 as default.
[[BR]]
Replying to [comment:4 cehoyos]:
> * http://ffmpeg.org/ffmpeg-codecs.html#Codec-Options
> * $ ffmpeg -h full
For option -sub_charenc I found only:
{{{
-sub_charenc <string> .D...S set input text subtitles character
encoding
}}}
and
{{{
‘sub_charenc encoding (decoding,subtitles)’
Set the input subtitles character encoding.
}}}
Seems only a decoder option!(?) What can be used as <encoding string>?
cp1252, ...?
Sorry, I do not get it to work with this option. Please show me a working
command line example!
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2431#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list