[FFmpeg-trac] #3496(avformat:open): Support UTF-16 subtitles
FFmpeg
trac at avcodec.org
Tue Mar 25 10:50:53 CET 2014
#3496: Support UTF-16 subtitles
-------------------------------------+------------------------------------
Reporter: klpu | Owner:
Type: enhancement | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: subtitle | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by gjdfgh):
This would be pretty simple to achieve:
1. add a readline function that can convert utf16 to utf8 on the fly (but
also can read utf8 alone - based on the function parameter)
2. in the probe function, try all 3 fundamental encodings: 8 bit
(codepage/multibyte, ASCII compatible), UTF16be, UTF16le.
This would be pretty simple, and is the approach used by mplayer. It
wouldn't need any complicated charset detection and conversion code.
If nobody objects, I could write a patch.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3496#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list