45clouds / homebridge-ip-camera

IP camera plugin for homebridge
50 stars 7 forks source link

Streaming on RPi Zero W doesn't work #11

Open allistoncarlos opened 7 years ago

allistoncarlos commented 7 years ago

I've installed MotionEye and Homebridge in the same Raspbian Stretch, on top of a RaspberryPi Zero W. Motion Eye streams great to VLC, for example, but in the Homebridge I just get the still images, receiving "Camera not responding" when I open the camera itself. Is there any configuration that I need to do, in order to see the camera also on Home app, instead of VLC?

Here's my config.json file

{ "platform": "Camera-IP", "cameras": [{ "name": "Main", "videoConfig": { "source": "http://192.168.1.24:8081", "stillImageSource": "-i http://192.168.1.24:8765/picture/1/current/?_username=admin&_signature=7f5a3f340c67bfe08fdea0425b83dcc32c70a335", "maxStreams": 3, "maxWidth": 320, "maxHeight": 240, "maxFPS": 15, "vcodec": "h264_omx" } }] }

45clouds commented 7 years ago

Please replace value for "source" parameter with: rtsp://user_if_any:password_if_any@192.168.1.24:554 or rtsp://user_if_any:password_if_any@192.168.1.24:8081 Afaik rtsp stream uses port 554 (tcp/udp) by default.

mkloock commented 7 years ago

I am using a similar setup (same camera) and it works for me. AFAIK, MotionEye is not streaming to RTSP (that would be nice). it seems to be http with MJPEG.

What I think is missing here is simple, two parameter prefixes -re and -i for the video URL:

"source": " -re -i http://192.168.1.24:8081"

45clouds commented 7 years ago

Yes. These parameters are important -re - Read input at native frame rate -i - Input