[vlc-devel] AVI and txts stream limited to 1000000 bytes

Kaarlo Räihä kaarlo.raiha at gmail.com
Wed Dec 5 18:26:44 CET 2012

2012/12/5 Eric Beuque <eric.beuque at gmail.com>

> Hi,
> VLC have a very nice feature. It supports decoding of SRT file within the
> AVI container through a txts stream.
> I use this feature to generate an AVI file from an IP Camera stream, and i
> add SRT data (GAB2) in the txts stream containing the frame datetime and
> stream name. This allow me to avoid printing the text directly in the
> picture (which is less faster, because i don't need to decode/modify/encode
> the frame). It works fine but i discover there is a limitation to 1000000
> bytes in the txts stream data. The problem, is that my method generate a
> big amount of srt entry (one per frame), and i really need to get one entry
> per frame to keep the precision.
> I look at the VLC source code and i found that limitation in the
> AVI_ExtractSubtitle:
>     if( i_size > 1000000 )
>         goto exit;
> I would like to know if someone know why there is this restriction, and if
> there is any way to go over this.

My guess would be that the restriction is just value chosen at some point.
At least I cannot find limit like that. (only limit I find for size text
stream is DWORD)
http://www.alexander-noe.com/video/documentation/avi.pdf (6 Subtitles in
AVI format)

> Thank you very much.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20121205/2ff33fcc/attachment.html>

More information about the vlc-devel mailing list