Hello Hackers, i working trying to make work VLC with the CAS-300 ip cameras.<br><br>This cameras have problems with VLC beacuse it's send the first header of the stream<br>in a bad format. When others send the header like this
<br><br>--video boundary--^M<br>Content-length: 58725^M<br>Date: 2000-01-01 00:28:21 IO_00000000_PT_000_114^M<br>Content-type: image/jpeg^M<br>......DATA...........<br><br>The CAS-300 send the first header like that<br><br>
--video boundary--Content-length: 58725^M<br>
Date: 2000-01-01 00:28:21 IO_00000000_PT_000_114^M<br>
Content-type: image/jpeg^M<br>.....DATA........<br><br>When the module mjpeg (modules/demux/mjpeg.c) try to find the separator<br>with the GetLine internal method fails, beacuse the method read all the line to the end.<br>
This obtains like separator --video boundary--Content-length: 58725^M, obvious its badly.<br><br>The best solution, for my, its get the boundary separtor from the http request header, after of the<br>Content-Type line have the exactly boundary separator (the modules/access/http.c do it well, see  access_sys_t->psz_mime).
<br><br>The problem it's that i don't now how fix, any help todo that is welcome.<br><br>Tanks in advice.<br><br>My Best Regards.<br>-- <br>Agustin Casiva                                                                 
<a href="http://www.osis.com.ar">http://www.osis.com.ar</a><br><a href="mailto:casivaagustin@gmail.com">casivaagustin@gmail.com</a>                                                 <a href="http://www.casivaagustin.com.ar">
http://www.casivaagustin.com.ar</a><br><br>Para leer adjuntos necesitará Open Office  <a href="http://es.openoffice.org/programa/">http://es.openoffice.org/programa/</a>