History

lavc/libaribcaption.c: add ARIB caption decoder using libaribcaption

This patch add another ARIB caption decoder using libaribcaption external library. Unlike libaribb24, it supports 3 types of subtitle outputs: * text: plain text * ass: ASS formatted text * bitmap: bitmap image Default subtitle type is ass as same as libaribb24. Advantages compared with libaribb24 on ASS subtitle are: * Subtitle positioning. * Multi-rect subtitle: some captions are displayed at different position at a time. * More stability and reproducibility. To compile with this feature: * libaribcaption external library has to be pre-installed. https://github.com/xqq/libaribcaption * configure with `--enable-libaribcaption` option. `--enable-libaribb24` and `--enable-libaribcaption` options are not exclusive. If both enabled, libaribcaption precedes as order listed in `libavcodec/allcodecs.c`.

TADANO Tokumei committed 3 years ago

Commit b6138631 parent 38bb1376 files · +1329 −0Browse files

Showing the changes to libavcodec/allcodecs.c (1 of 6 files). Show all

Unified · Split

libavcodec/allcodecs.c+2−0
@@ -759,6 +759,8 @@ extern const FFCodec ff_pcm_mulaw_at_decoder; · 758 unmodified lines
759759 extern const FFCodec ff_qdmc_at_decoder;
760760 extern const FFCodec ff_qdm2_at_decoder;
761761 extern FFCodec ff_libaom_av1_encoder;
762+/* preferred over libaribb24 */
763+extern const FFCodec ff_libaribcaption_decoder;
762764 extern const FFCodec ff_libaribb24_decoder;
763765 extern const FFCodec ff_libcelt_decoder;
764766 extern const FFCodec ff_libcodec2_encoder;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t