Hi, this moment I'm trying to understand how should I parse subtitles using FFmpeg libraries. I call avcodec_decode_subtitle() and investigate results in AVSubtitleRectstructure. Each time I got SUBTITLE_ASS type (even for STR subtitles), .text field is empty and .ass field filled as "ASS/SSA compatible event line" like this: Dialogue: 0,0:37:01.26,0:37:03.16,Default,,0000,0000,0000,,He couldn't have gone far. I found some basic description for ASS format but via AVSubtitleRect I got only Dialogue events and no any Format description. So I can not retrieve even text because Text field position is unknown for me (it should be last but delimiter , can be used in text). Could someone explain me how should I retrieve Format for ASS subtitles given by FFmpeg? Bitmap subtitles currently out-of-interest for me. Thanks! ----------------------------------------------- Kirill Gavrilov, Software designer.
On Sun, May 1, 2011 at 4:35 PM, Kirill Gavrilov <gavr.mail@gmail.com> wrote:
Hi,
this moment I'm trying to understand how should I parse subtitles using FFmpeg libraries.
I'm not sure, but questions like this usually go to the libav-user@ffmpeg.org mailing list. Use that: http://ffmpeg.org/mailman/listinfo/libav-user Though if someone knows they can still answer here.
participants (2)
-
Kirill Gavrilov -
Leo Izen