TV-IP301W format

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
denis
Posts: 16
Joined: Thu Jun 21, 2007 6:08 pm

TV-IP301W format

Post 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!
Post Reply