[FFmpeg-trac] #4054(avformat:new): libavformat: subtitles: provide a mechanism to guess subtitle character encoding
FFmpeg
trac at avcodec.org
Thu Oct 23 13:29:38 CEST 2014
#4054: libavformat: subtitles: provide a mechanism to guess subtitle character
encoding
-------------------------------------+------------------------------------
Reporter: 11rcombs | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avformat
Version: git-master | Resolution:
Keywords: subtitles | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Changes (by gjdfgh):
* cc: nfxjfg@… (added)
Comment:
Some things to note:
- no subtitle charset detector is good/sufficient, and you will always
have the situation in which you have multiple guesses, and you want the
user to select which guess, etc.
- I think it's wrong to add detection directly to (or below) the subtitle
demuxers - instead, maybe there should be a function to guess subtitle
codec from a list of packets (you could provide a convenience function
which does that using the libavformat internal packet queue)
- the actual subtitle conversion should be somewhere else too, and maybe
work on the packets (or you could set it as sub charset option in
libavcodec, forgot the option name)
Also, this should probably be discussed on the mailing list. The bug
tracker sucks for this purpose.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4054#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list