-
Notifications
You must be signed in to change notification settings - Fork 118
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
feature request: replace v4l2rtspserver with go2rtc+ffmpeg #550
Comments
added in latest master. feel free to leave feedback here. |
example to view stream in browser: |
So the v4l2rtspserver can be completely disabled? Will the cmd commands run without it running? |
Yes, and yes. They are independent of each other. |
is there a new build we can download to switch over to webrtc? or it is already ready and we just pull new git? |
Download master, it's ready |
I've updated my cameras and I can't seem to figure out how to use this new release, is there a setting that must be enabled? I've tried your example links and nothing comes up. http://(Cams IP):1984/stream.html?src=1080p&mode=webrtc and nothing shows up. |
What model camera? Does the web UI show up at http://(Cams IP):1984/ ? Can you share your wz_mini.conf? |
I have V3's I'm using and no, I do not get a web UI at all going to that URL for the cameras. This is the wz_mini.cof from the cameras. #wz_mini configuration W E B CAMERA#####THIS MODE DISABLES EVERYTHING AND IT WILL WORK AS A WEB CAMERA FOR YOUR PC ONLYWEB_CAM_ENABLE="false" #####NETWORKING##### ENABLE_USB_ETH="false" ENABLE_USB_DIRECT="false" ENABLE_USB_RNDIS="false" ENABLE_IPV6="false" ENABLE_WIREGUARD="false" ENABLE_IPTABLES="false" ENABLE_NFSv4="false" ENABLE_RTL8189FS_DRIVER="true" NETWORK INTERFACE BONDINGBONDING_ENABLED="false" #####ACCESSORIES##### #####VIDEO STREAM##### RTSP_HI_RES_ENABLED="true" RTSP_LOW_RES_ENABLED="false" RTSP_AUTH_DISABLE="true" #####RTMP STREAMING##### REQUIRES RTSPAND RTSP AUDIORTMP_STREAM_ENABLED="false" #####GENERAL##### #####DEBUG##### ####WEB#### #####SCRIPTING##### |
you have an old version of wz_mini.conf. you can either do a fresh install, or copy /opt/wz_mini/etc/wz_mini.conf.d to /opt/wz_mini/wz_mini.conf (this will overwrite your old config) to get the new go2rtc options. |
@gtxaspec first of all thanks for implementing go2rtc as a potential replacement for v4l2rtspserver! long story short after lots of testing with tinycam ( #340):
@mrlt8 maybe this is also interesting for your wyze-bridge Other findings while testing
CONCLUSION At least from my perspective go2rtc is working fantastic and after changing back to opus as default audio output or adding some notes for tinycam to the wiki I see no reason not to deprecate v4l2rtspserver! |
Have you tried with the regular aac codec? (Not libfdk) |
No, but since I’m going to figure out the lowest compression level for opus that still delivers audio quality on par with the original stream during the weekend, it shouldn’t be a problem to do some further testing wit aac as well |
I've got some other latency fixes coming, if they work out. Hopefully we can eliminate using v4l2loopback.ko and ALSA altogether, and pipe them straight to ffmpeg. |
Latency fixes are always welcome and cutting out v4l2loopback.ko and ALSA sounds like big potential - really looking forward to test them! Below my additional test results. All tests were performed with wyzeCam V3, tinyCam app on Android 13 an the following settings:
|
@gtxaspec when you added it to frigate did you use go2rtc in frigate? If so what was the config you used? I tried setting this:
When I try to view it from the frigate server the page just keeps restarting and I don't see a connection. Maybe I'm using the wrong configuration? UPDATE: turns out it was a go2rtc problem since ffmpeg didn't support pcml. I changed the cameras to look like this
|
Positive feedback: |
@mega3st have 6ou tried with straight pcm audio using copy? |
@mega3st This is brilliant. Working great for me. Wyzecam v3, Tinycam Pro on Android. For the less technically minded like me:
|
Ok I've had some time to mess with this, I got one camera up and running. It's a v3 but I'm having issues seeing video. Clicking on the stream button for 1080p displays a black screen but I do hear Audio, not sure if I'm missing a something on my end. |
@jemershaw curious if you followed #550 (comment) for your wz_mini setup? I can pull streams in VLC but as soon as I limit go2rtc to |
@pdobrien3 have you checked the go2rtc logs? what do they say when it fails |
So I actually ended up getting a working config. It is late and I am tired so this isn't all inclusive. My wz_mini config is pretty basic. I ended up leaving the go2rtc config at the default and setup Frigate like this:
camera config:
The streams are a little blotchy and I am sure they can be improved upon but, I wanted to just get something up and running. Audio is also a little off sync but really not bad. Will be interesting to see if Frigate makes it through the night without any ffmpeg crashes. I honestly have no clue what I am doing and feel pretty lucky to get working streams in Frigate. Any advice is greatly appreciated!!! |
woke up to a bunch of this, any idea?
|
so, I changed:
to:
I will edit my post above for future visitors. and frigate has been running rock solid all day. Thanks @gtxaspec for the dev work on go2rtc. I have been struggling with my V3s for a long time. There is some minor audio sync issues but nothing critical and haven't played with any settings. I have all the options in the go2rtc un-hashed, which doesn't jive with this string but things are working. |
I didn't realize that the VIDEO settings in the wz_mini.config file also apply to go2rtc... I just bumped up the bitrate there and set to capped quality and now all is good. |
Can anyone share the go2rtc config file line from the wyzecam that sends audio out with raw pcma or pcmu? I saw @gtxaspec mention PCM above but I am unsure what to add to the go2rtc file on the cam to make that happen. For codec issues downstream I need the cams to actually send raw pcm instead of opus or aac. Thanks! |
initial testing seems ok, 1080p/360p 30fps OK via webrtc / hls web streaming, go2rtc binary running on device.
rtsp OK
audio works, aac+rtsp, libopus+webrtc
test with frigate: frigate recordings are good.
if testing is good, we will deprecate v4l2rtspserver in favor of go2rtc.
The text was updated successfully, but these errors were encountered: