Motion - Feature Request 2005x 05x 06x 145420

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

Comments

Angel, Thanks for the detailed answer that clears that one up

-- RobertH - 06 May 2005
Topic revision: r5 - 29 May 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.