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

Usage in frigate #1

Closed
dipiex opened this issue Jun 13, 2023 · 6 comments
Closed

Usage in frigate #1

dipiex opened this issue Jun 13, 2023 · 6 comments

Comments

@dipiex
Copy link

dipiex commented Jun 13, 2023

Could you assist me?
I'm having trouble understanding how to use go2rtc with dvrip to retrieve images from an icsee camera without relying on onvif.

I have two PCs, one for frigate and another for hass. Both are running on docker-compose.
Should I install go2rtc on my docker alongside frigate?

I'm a little confused about the streaming connection as well.
Will frigate be able to interpret this "dvrip://" link?
"dvrip://admin:my_cam_password@192.168.178.27:34567"

Thank you for your time

@dbuezas
Copy link
Owner

dbuezas commented Jun 13, 2023

Frigate comes with go2rtc preinstalled. In your frigate.yaml add

go2rtc:
  streams:
     my_cam: dvrip://admin:your_pass@192.168.x.x

Then in the frigate section you can use my_cam instead of a url

@dbuezas dbuezas changed the title Question: Usage in frigate Jun 13, 2023
@dipiex
Copy link
Author

dipiex commented Jun 13, 2023

Thank you so much, it works perfectly!

By the way, do you know how to obtain the sub stream?

@dbuezas
Copy link
Owner

dbuezas commented Jun 13, 2023

Glad to hear! 🎉

For rhe lower res stream Add &subtype=1 to the dvrip url.
Here are the relevant go2rtc docs: https://github.com/AlexxIT/go2rtc#source-dvrip

@dbuezas
Copy link
Owner

dbuezas commented Jun 13, 2023

Finding these should become easier once this PR is merged AlexxIT/go2rtc#462

@dipiex
Copy link
Author

dipiex commented Jun 14, 2023

Unfortunately, the substream didn't work on the provided URL with the ending "?channel=0&subtype=1".
It still shows the main stream.

@dbuezas
Copy link
Owner

dbuezas commented Jun 14, 2023

You can also try channel=1, but i think it should be subtype

@dbuezas dbuezas closed this as completed Jul 9, 2023
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