bakercp / ofxIpVideoGrabber

An openFrameworks addon for MJPEG streams (Axis IP Camera, mjpeg-streamer, etc.).
MIT License
104 stars 28 forks source link

Exception: Invalid HTTP Reponse : ??? when reading mjpg_streamer stream #14

Closed cgimenez closed 8 years ago

cgimenez commented 8 years ago

On Raspberry, using https://github.com/jacksonliam/mjpg-streamer (fork of original mjpg-streamer for Raspberry Pi), ofxIpVideoGrabber fails to open the stream with

[ error ] IPVideoGrabber: Exception : [CAM1]: Exception: Invalid HTTP Reponse : ???

Stream command line

./mjpg_streamer -i "./input_uvc.so -f 60 -r 320x240" -o "./output_http.so -w ./www"

OfApp setup is

void ofApp::setup(){
    SharedIPVideoGrabber grabber = IPVideoGrabber::makeShared();
    grabber->setCameraName("CAM1");
    grabber->setURI("http://192.168.1.90:8080/?action=stream");
    grabber->connect(); // connect immediately
}

curl head gives

Server: MJPG-Streamer/0.2
Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0
Pragma: no-cache
Expires: Mon, 3 Jan 2000 12:34:56 GMT
Content-Type: multipart/x-mixed-replace;boundary=boundarydonotcross

--boundarydonotcross
Content-Type: image/jpeg
Content-Length: 7988
X-Timestamp: 6997.869066

����!AVI1xx��C
bakercp commented 8 years ago

Could you try this with the latest master branch and of 0.9.0?

bakercp commented 8 years ago

Closing this due to lack of information.