45clouds / homebridge-ip-camera

IP camera plugin for homebridge
50 stars 7 forks source link

Read Stream from ANOTHER Raspberry Pi with motion installed #12

Closed sroettgermann closed 7 years ago

sroettgermann commented 7 years ago

Hello!

Is there any experience regarding my thread title? I want to read the video stream from another RPi where I have installed motion and a USB webcam. The Stream is working on http://RPI-IPADDRESS:8081 but Home won't be able to enable the camera.

45clouds commented 7 years ago

Are you sure that the stream is working? Can you please use VLC and open the stream using this app. The address should rstp://rpi-address:8081 in your case.

45clouds commented 7 years ago

Sorry... my mistake. Correct link is:

rtsp://user_if_any:password_if_any@192.168.1.24:8081

or better

rtsp://user_if_any:password_if_any@rpi-address:554

because rtsp stream uses port 554 (tcp/udp) by default.

sroettgermann commented 7 years ago

Okay. I made it to work with the http address. But the question is, can I devide between video and still-image source somewhere?

45clouds commented 7 years ago

Can you explain what do you want to achieve? :)

sroettgermann commented 7 years ago

homebridge-ip-camera has different options for source and still-image-source. Maybe I don't understand it correctly, but in my opinion there should be an address for still images and one for video image source?! Right?

45clouds commented 7 years ago

Yes. That's right. For example I use HikVision cameras and they offer rtsp stream and still-image source (screenshots). They have different URL's inside camera. That's why I use:

                "source": "-re -i rtsp://ip_address:554/Streaming/Channels/101",
                "stillImageSource": "-i http://ip_address:80/Streaming/channels/1/picture",

in my configuration file.

sroettgermann commented 7 years ago

Okay, thank you!