[FFmpeg-devel] [PATCH 00/12] I added text to bitmap subtitle conversion functionality!
Traian Coza
traian.coza at gmail.com
Tue May 3 19:13:16 EEST 2022
I added the possibility of converting text-based subtitle tracks (such as subrip or ass) to bitmap-based subtitle tracks (such as dvd_subtitle).
I accomplished this by using libass, and basically using the code from vf_subtitles.c to render text subtitles and store the images in the AVSubtitle structure.
Of course, this functionality will only work when ffmpeg is configured with --enable-libass.
Traian Coza (12):
Implemented text to bitmap subtitles!
Render only when necessary
Retreive width and height from video stream!
Initialize ass library only once!
Cleaned up
Wrote proper headers
Close libass after using
Added standard headers
Rearranged files, all tests are passing!
Rearranged files, all tests are passing!
Added logging
Added more logging
fftools/Makefile | 2 +
fftools/ffmpeg.c | 35 ++++-
fftools/text_to_bitmap.c | 300 +++++++++++++++++++++++++++++++++++++++
fftools/text_to_bitmap.h | 37 +++++
libavcodec/avcodec.h | 9 ++
5 files changed, 382 insertions(+), 1 deletion(-)
create mode 100644 fftools/text_to_bitmap.c
create mode 100644 fftools/text_to_bitmap.h
--
2.34.1
More information about the ffmpeg-devel
mailing list