Motion - Bug Report 2005x 05x 02x 205307

BUG: webcam.c

HTTP Protocol not compatible some clients like pclient (palantir) can't read header

i changed the code, it's on http://www.roberto.spadim.com.br/webcam.c

now it's all right! smile thanks for this very beautifull program wink

Test case

use pclient (palantir)

Environment

Motion version: 3.1.19
ffmpeg version: 0.4.9pre1
Shared libraries: curl, ffmpeg, mysql
Server OS: Linux 2.6.10

-- RobertoSpadim - 02 May 2005

Follow up

As far as I can see you have turned Motion into something that streams exactly like Palantir and even identifies itself as Palantir.

That makes no sense.

What in the mjpeg stream is required changed to make it compatible? I am sure not all your changes are needed.

-- KennethLavrsen - 02 May 2005

\n is not newline 100% compatible with many clients, so i changed \n to \r\n, and flush data before and after header, before --mp-boundary was need \r\n and after mult-part headers \r\n\r\n, the size was incorrect (content-lenght) now every thing is working (with 2005-05-05 webcam.c file)

-- RobertoSpadim - 05 May 2005

Fix record

This patch fixes the bug

-- AngelCarpintero - 06 May 2005


Fixed in http://www.lavrsen.dk/twiki/bin/view/Motion/MotionRelease3x2x1snap16

-- KennethLavrsen - 08 May 2005
Topic revision: r7 - 27 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.