[vlc-devel] Problems with Boundary separator on demux/mjpeg
Agustin Casiva
casivaagustin at gmail.com
Tue Oct 2 17:11:36 CEST 2007
Hello Hackers, i working trying to make work VLC with the CAS-300 ip
cameras.
This cameras have problems with VLC beacuse it's send the first header of
the stream
in a bad format. When others send the header like this
--video boundary--^M
Content-length: 58725^M
Date: 2000-01-01 00:28:21 IO_00000000_PT_000_114^M
Content-type: image/jpeg^M
......DATA...........
The CAS-300 send the first header like that
--video boundary--Content-length: 58725^M
Date: 2000-01-01 00:28:21 IO_00000000_PT_000_114^M
Content-type: image/jpeg^M
.....DATA........
When the module mjpeg (modules/demux/mjpeg.c) try to find the separator
with the GetLine internal method fails, beacuse the method read all the line
to the end.
This obtains like separator --video boundary--Content-length: 58725^M,
obvious its badly.
The best solution, for my, its get the boundary separtor from the http
request header, after of the
Content-Type line have the exactly boundary separator (the
modules/access/http.c do it well, see access_sys_t->psz_mime).
The problem it's that i don't now how fix, any help todo that is welcome.
Tanks in advice.
My Best Regards.
--
Agustin
Casiva
http://www.osis.com.ar
casivaagustin at gmail.com
http://www.casivaagustin.com.ar
Para leer adjuntos necesitará Open Office
http://es.openoffice.org/programa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071002/47f28e5b/attachment.html>
More information about the vlc-devel
mailing list