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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to