Feature Request: adding pixel_dif in the mjpeg stream
Description
I was wondering if it would be possible to add the pixel dif count in the mjpeg stream. Somewhere between the boundary and content_length field or would this violate the protocol? My motivation for doing so is to react to motion changes in the mjpeg stream. Since all the calculations are already performed on the original image prior to compression it would be great to get this info here.
--
RobertH - 06 May 2005
Follow up
There're not an official standard for multipart/x-mixed-replace jpeg stream although is wide used . But there's an unofficial standard that most of software developers follows and are based in HTTP rfcs like :
HTTP/1.0 200 OK^M
Connection: Close^M
Server: Camd^M
Content-Type: multipart/x-mixed-replace; boundary=--myboundary^M
--myboundary^M
Content-Type: image/jpeg^M
Content-Length: 56290^M
<image>^M
--myboundary^M
Content-Type: image/jpeg^M
Content-Length: 53290^M
<image>^M
Note : ^M is \r\n
So what you want is out from the HTTP rfcs and if we include it we will break the multipart/x-mixed-replace jpeg stream .
--
AngelCarpintero - 06 May 2005
Angel,
Thanks for the detailed answer that clears that one up
--
RobertH - 06 May 2005