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

Add instructions for custom go2rtc build #6333

Merged
merged 2 commits into from
Apr 30, 2023
Merged

Conversation

NickM-27
Copy link
Sponsor Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Apr 30, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 4c90418
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/644ec7a64a44900008bc345b
😎 Deploy Preview https://deploy-preview-6333--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@NickM-27 NickM-27 merged commit 82aa238 into master Apr 30, 2023
@NickM-27 NickM-27 deleted the custom-go2rtc-docs branch April 30, 2023 20:04
@cybertza
Copy link

cybertza commented Sep 20, 2023

SYSTEM 0.13.0-6AEDC39 now using:
go2rtc 1.7.1

@blakeblackshear

May also be worth it to split the configs for 1.7 since it writes back keys to the config if you use homekit output, unless you have a plan for such ;p

I am busy testing it now, managed to setup the HK pairing on a docker insance on Unraid, and its super quick to stream cameras as apposed to frig=>ha=>HK

@NickM-27
Copy link
Sponsor Collaborator Author

yeah, we'll need to support that, unfortunately don't have anything to test myself so will be difficult

@cybertza
Copy link

Hey so it writes back something to this effect, not knowing if the keys are important i blocked them out
homekit:
front_gate_Right:
pin: 12345678
name: Front Gate Right
device_id: GATE_FR
pairings:
- client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_public=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&permissions=1

 it writes 4 per stream and its go2rtc that writes it back to its own config, so i assume the hard part here is to inject the  birdseye reliably, since i beleive thats the part that overwrites the config. it definately overwrites, ive just tested it, so i will pad my frig config and chec, im sure it will work, but i have my keys, the keys also seem the exact same for all the streams, so it may just be something defined, but it does occur at pairing time, and the pairing creates the cam entity on the HK, there is also cool stuff from there that HK supports like a still image when "there is someone at the gate" and so forth, that would be great to take advantage of, but they would prob have to be configured as triggers on go2 side, so ultimatley the 2 projects would have to work close knit to support the ease of config for the 2, ot go2 can drop the keys as assets similar as Home assistant does. Its a very cool stuff all together.
 
 streams:

birdseye: exec:ffmpeg -hide_banner -f rawvideo -pix_fmt yuv420p -video_size 1280x720
-r 10 -i /tmp/cache/birdseye -c:v libx264 -g 50 -profile:v high -level:v 4.1 -preset:v
superfast -tune:v zerolatency -rtsp_transport tcp -f rtsp {output}

this injection , but its not really like its configurable, and go2 already has an file editor installed, so my recomendation may be to have it in the docs untill the way forward is better understood, so that a person would know, or to be cowboy like and have a inject Birdseye restream button on the config page, look for the string, and then if it doesnt exist, inject it right after the streams key into go2rtc

very cool stuff both ways thou

@cybertza
Copy link

cybertza commented Sep 20, 2023

Ok so i didnt quite do it this way, but WE, what i would recommend you do to test this is the following

add the homekit to your FFrig config, then set it up with the PIN, (unique per cam) and what is entered on the HK config under find additional devices, my device isnt shown and then pair it, then go into your go2rtc config, and copy that key that its added to the cam, and add that your frig config

image

@cybertza
Copy link

Any idea how i would get this to work with Homekit?

birdseye: exec:ffmpeg -hide_banner -f rawvideo -pix_fmt yuv420p -video_size 1280x720
   -r 10 -i /tmp/cache/birdseye -c:v libx264 -g 50 -profile:v high -level:v 4.1 -preset:v
   superfast -tune:v zerolatency -rtsp_transport tcp -f rtsp {output}
  

Reason im trying this is since i assume the problem is that there is a problem somehow related to that, since i am having issues streaming to HK, all the other streams works fine with the config as described above, but as i understand this is h264 output, but somewhere its not

I am a bit out of my depth with why the Birdseye does not want to restream, I get the static frame but no stream, the rest of the cams are wokring well, when i look at the consumers i do not notice a difference, so i would then assume its somewhere in the producers area that the problem would be. Well, atleast i have gotten the cameras in with huge proformace increase vs pulling them via HA,

There is so nice oppertunity now for also creating "last detected" and an "birdseye alike" last of person detected over all the cams, as a stream if people would want that.

Hope the above assists someone going down this path of early adoption, im sure that all this will be much easier in the future anyway ;p

@NickM-27
Copy link
Sponsor Collaborator Author

are you saying that birdseye restream isn't working in the frigate webUI, or that it specifically isn't working in homekit?

@cybertza
Copy link

Its working in the Frigate WebUi, Its not streaming in HomeKit, but it does show the preview, Then when you open the stream it takes some time and then goes to "No Response"

i have recreated the cam in HomeKit, and so forth as well to test, same result, other cameras work great.

So in short everything / all cams work well both places just HK doesnt stream the Birdseye.

config is

CAMS => Go2rtc => frig (with go2rtc as inputs)

            Go2rtc => HomekIt
            
            frig Birdseye => go2rtc => Homekit

@NickM-27
Copy link
Sponsor Collaborator Author

I wonder if homekit requires audio

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

Successfully merging this pull request may close these issues.

None yet

3 participants