Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

livestream with usb webcam #333

Closed
SAM4191 opened this issue Sep 30, 2019 · 3 comments
Closed

livestream with usb webcam #333

SAM4191 opened this issue Sep 30, 2019 · 3 comments

Comments

@SAM4191
Copy link

SAM4191 commented Sep 30, 2019

I am running TerrarirumPI on my RPi 2B. Installation was straightforward without any problems.

I've read these tutorials from stuart:
https://medium.com/@jinky32/using-the-raspberrypi-camera-with-terrariumpi-and-web-streaming-your-reptile-4c6676bbb1aa
https://medium.com/@jinky32/adding-a-camera-to-raspberrypi-for-use-in-terrariumpi-9629b027c746

He writes "It is possible to set up a streaming camera which uses HLS. In order to do this you go through exactly the same process as above but in the location field you need to use rpicam_live rather than /dev/Video0 in the location field.
Does rpicam_live mean it has to be an rpi-camera or should usb-webcams work as well?
So far I haven't got the live video working with my USB-Webcam (Microsoft livecam 3000).

When I change the Location to rpicam_live and restart TerrariumPi I get "Error code: hls:networkError_manifestLoadError".
I tried clearing the cache and using a different browser.

The log from screen -r looks fine to me.
terrariumWrapper - Starting TerrariumPI server at location: http://:8090 ...
2019-09-24 22:57:10,685 - WARNING - terrariumSensor - OWFS file system is not actve / installed on this device! If this is not correct, try 'i2cdetect -y 1' to see if device is connected.
2019-09-24 22:57:11,136 - WARNING - terrariumBluetoothSensor - Bluetooth scanning is not enabled for normal users or there are zero Bluetooth LE devices available.... bluetooth is disabled!
2019-09-24 22:57:19,000 - INFO - terrariumWebserver - Running webserver at :::8090

Screenshot_2019-09-25-10-59-31-313_com android chrome

@theyosh
Copy link
Owner

theyosh commented Oct 1, 2019

Hi,

unfortunately, live streaming is only available with the Raspberry PI camera. USB camera's can only be used as a static webcam.

Or you have to setup a second RPI that only does the transcoding of the USB webcam to HLS. But this is rather hard, and takes a lot of CPU power. So, I would stick to the static webcam for your USB webcam.

@theyosh
Copy link
Owner

theyosh commented Oct 1, 2019

More info here: #223 (comment)

@SAM4191
Copy link
Author

SAM4191 commented Oct 1, 2019

Thanks for your answer
I'm gonna buy an rpicam and use the USB as static then.
Will add pics of my terrarium soon.

@SAM4191 SAM4191 closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants