Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
565 stars 112 forks source link

HTTP stream with/without credentials not working #87

Closed fotisK69 closed 3 years ago

fotisK69 commented 3 years ago

hi,

i have a raspberry pi zero W with the according raspberry camera that is using motion and everything seems to work fine since i am able to view from my laptop via the http-stream url the cameras streaming video.

So, in my case the url that i am using to view is: http://<ip>:8081/?login=<user>&password=<passwd>

I am trying not to start adding this stream to your very nice application but it seems that something is going wrong. Now, having said that, i am not sure if this is due to using http-stream instead of rtsp or due to any other configuration issues that i miss in displaycameras! Like video size or what ever else needs to be configured.

From the motion.config:

# Image width (pixels). Valid range: Camera dependent, default: 320
width 640

# Image height (pixels). Valid range: Camera dependent, default: 240
height 480

# The mini-http server listens to this port for requests (default: 0 = disabled)
stream_port 8081

So, the question is does displaycameras work with http-stream and credentials:

camera_feeds=( \
# Low-Res
#Driveway
"http://<ip>:8081/?login=<user>&password=<passwd>” \
)

In case this is not possible do have any suggestion how I can configure motion to stream http and rtsp (to different port I guess).

Thanks in adv.

Anonymousdog commented 3 years ago

The README.MD contains debugging information. Use the interactive command line omxplayer instructions to test the feed with omxplayer. The config file looks right; you may have to rewrite a bit of the main script to support http.

On Thu, Dec 3, 2020, 9:52 AM fotisK69 notifications@github.com wrote:

hi,

i have a raspberry pi zero W with the according raspberry camera that is using motion and everything seems to work fine since i am able to view from my laptop via the http-stream url the cameras streaming video.

So, in my case the url that i am using to view is: http://:8081/?login=&password=

I am trying not to start adding this stream to your very nice application but it seems that something is going wrong. Now, having said that, i am not sure if this is due to using http-stream instead of rtsp or due to any other configuration issues that i miss in displaycameras! Like video size or what ever else needs to be configured.

From the motion.config: Image width (pixels). Valid range: Camera dependent, default: 320

width 640 Image height (pixels). Valid range: Camera dependent, default: 240

height 480 The mini-http server listens to this port for requests (default: 0 = disabled)

stream_port 8081

So, the question is does displaycameras work with http-stream and credentials: camera_feeds=( \ Low-Res

Driveway

"http://:8081/?login=&password=” )

In case this is not possible do have any suggestion how I can configure motion to stream http and rtsp (to different port I guess).

Thanks in adv.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKO5BHUZLKU6VTG2NE3SS6Q4DANCNFSM4UMCXIPA .

fotisK69 commented 3 years ago

Hi,

thanks for your time. I got it working with this kind of setup: http://<user>:<passwd>@<ip>/video/mjpg.cgi

The last part /video/mjpg.cgi depends on the camera and how it stream the video.

Thanks again