2012/12/5 Eric Beuque <span dir="ltr"><<a href="mailto:eric.beuque@gmail.com" target="_blank">eric.beuque@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>VLC have a very nice feature. It supports decoding of SRT file within the AVI container through a txts stream.<br><br>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.<br>


<br>I look at the VLC source code and i found that limitation in the AVI_ExtractSubtitle: <br><br>    if( i_size > 1000000 )<br>        goto exit;<br><br><br>I would like to know if someone know why there is this restriction, and if there is any way to go over this.<br>
</blockquote><div><br></div><div>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)</div><div><a href="http://www.alexander-noe.com/video/documentation/avi.pdf">http://www.alexander-noe.com/video/documentation/avi.pdf</a> (6 Subtitles in AVI format)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>Thank you very much.<br>
<br>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br></blockquote></div><br>