[MPlayer-dev-eng] Subtitles modules
Nicolas George
nicolas.george at normalesup.org
Tue Nov 30 22:17:51 CET 2010
Le decadi 10 frimaire, an CCXIX, Clément Bœsch a écrit :
> Hi,
>
> subreader.c is huge file with lots of various, and I was planning to
> extract specific subtitles format functions into sub modules, just like
> libmpdemux, libmpcodecs, etc.
>
> So first step, I'd like to just put specific format functions into
> specific files:
<...>
> If I'm not wrong the second step would be to define some instance and info
> struct just like with at least init, read, postproc, dump and close
> function.
>
> The automatic type detection could be ported in the init function of each
> type.
>
> Does anyone has a grudge against this, or see a big obstacle?
I am all for it in principle, but there may be even better: libavformat has
recently gained the capacity to decode some text subtitles format (at least
ASS and SRT): rather than working on mplayer, you may want to try to port
the subtitles decoders that mplayer has and lavf does not have to lavf, and
then entirely rely on lavf in mplayer. On of the pros of this solution is
that lavf already has all the probe/init/read infrastructure designed.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20101130/f6675125/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list