go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Adding USB-camera With Home Assistant Feedback / Suggestions

Open DudeShift opened this issue 3 years ago • 1 comments

I wanted to give feedback to make the experience of adding a USB webcam to go2rtc via the Home Assistant Addon better for everyone (or anyone getting stuck can read this issue for help).

Web Interface

After adding the addon, I could see on the go2rtc web interface on the device tab my usb webcam. However I was unable to figure out how to add it via the web interface. I tried the only option I had (entering the name "/dev/video1" into the url field and pressing add.) There is also no way to go back to the main page after clicking into the device tab.

I saw that usb cameras were just recently added a week ago, I would suggest if possible a button within the web interface to quickly add the device. Or at least a warning that one has to add usb cam streams via the go2rtc.yaml

go2rtc.yaml

After creating a go2rtc.yaml in my Home Assistant config folder, I tried following the guide for adding a USB camera stream however I think that it needs to be updated to explain that you have to add the full device name / path after "ffmpeg:device?" instead of just "video0" (ie, in my case it needed to be "ffmpeg:device?/dev/video1")

After following the "windows_webcam" stream example using the device name / path after device? the usb camera was added and I tested webrtc and rtsp streams working well (great fps compared to getting like 1fps with motioneye on a Wyse Thinclient). I misread the different stream types not as where the usb cameras are located but rather the viewing source (thats why I used windows_webcam when usb camera is plugged into my Home Assistant so I should have used "linux_usbcam" where one of the arguments is manually setting the resolution).


I apologize if this sounds like simple problems but every bit of easy of use goes a long way for anyone. I have been researching for a long time for a high framerate / simple way to stream a usb camera plugged into Home Assistant over my network and happy to have found this today and it works very well.

DudeShift avatar Aug 31 '22 21:08 DudeShift

Whole project released only 2 weeks ago. And it's only in alpha version for now. The documentation is still weak. I just don't have time to improve all of this.

The devices page is only for listing your USB devices. Because in different OS they has different names.

You should use device?video=0 your device number in any OS. Starting from zero. And adds it to YAML config.

Also devices page should have list of available resolutions and framerates. Will be someone in the future.

PS. Thanks for positive feedfack. Glad the feature is useful to someone.

AlexxIT avatar Sep 01 '22 03:09 AlexxIT

https://github.com/AlexxIT/Blog/issues/11

AlexxIT avatar Jul 11 '23 12:07 AlexxIT