defvol / Paparazzo.js

A high performance web proxy for serving MJPG streams to the masses.
197 stars 38 forks source link

New Camera - stream not serving correctly with custom boundry #35

Open Dayjo opened 9 years ago

Dayjo commented 9 years ago

So I got myself a new IP Camera, and trying to get it work with Paparazzo but having some issues.

The full url to the stream is here; http://fc8774.myfoscam.org:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=thesite&pwd=sitepassword

The user is only set to be a visitor and it's a public camera so no hacking :+1:

After doing a readfile command on my stream which receives something like this;

--ThisString Content-type:image/jpeg Content-Length:35564 ÿØÿàJFIFÿÛÅ  &/"$&8 ...

I'm wondering whether it's the wrong kind of stream.

I realised I need to edit paparazzo to specify what the custom boundry would be, so I edited it and set the boundry to --ThisString, this now at least got it downloading (or appearing to be downloading) the stream.

The logs do display that it'd downloaded some of the images and even served when I go to the http url for the server;

However the response from the server despite having a content-length of 42kb (way t and content-type jpg just returns no image. Here's the har from Chrome DevTools;

Any help here would be muchly appreciated!

Dayjo commented 9 years ago

Going to try and have another look at this tomorrow evening to try and determine where exactly the problem lies.