Page 1 of 1

TV-IP301W format

Posted: Fri Oct 05, 2007 7:55 am
by denis
hi all again!
i'm thinking that i've understand TV-IP301W mjpeg format.
it's not standard because it's recognised such a "multipart/mixed",
but it's similar to "multipart/x-mixed-replace" .
but the problem is that the standard function in zoneminder can't interpret subheader of this stream.
so i'm asking to you:
in zm_remote_camera.cpp when i see "multipart/mixed" i don't go to SUBHEADER but i'm going to a new case that i'm going to make.
in this function i've to:

1- read some byte (300)
2- Look in this string and search for Content-Length: and setting the variable content_length to appropriate value.
3- Jumping (some bytes) to jpeg starting (FF D8)
4- going to "CONTENT" case.

someone can explain me how to make the first 3 points? (the 4th is simple :D ).

thank you a lot!!!
ps: i can't use regexp with this camera!