Skip to content

Instantly share code, notes, and snippets.

@paraita
Created March 1, 2021 05:23
Show Gist options
  • Save paraita/be2e90a5e487bfb1dacc44b87e97e846 to your computer and use it in GitHub Desktop.
Save paraita/be2e90a5e487bfb1dacc44b87e97e846 to your computer and use it in GitHub Desktop.
Working config (mind the REDACTED bridge data) everywhere (Mac/iPad/iPhone) but frame rate is meh
{
"bridge": {
"name": "Homebridge REDACTED",
"username": "11:11:11:11:11:11",
"port": REDACTED,
"pin": "111-22-333"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "Camera FFmpeg",
"cameras": [
{
"name": "Camera Pi",
"motion": true,
"switches": true,
"videoConfig": {
"source": "-re -f video4linux2 -video_size 1280x720 -input_format h264 -i /dev/video0",
"stillImageSource": "-video_size 1280x720 -f video4linux2 -i /dev/video0 -ss 1.5",
"maxStreams": 3,
"maxFPS": 30,
"maxBitrate": 320,
"maxWidth": 1280,
"maxHeight": 720,
"vcodec": "h264_omx",
"encoderOptions": "-b:v 320k -maxrate 320k",
"audio": false,
"debug": true
}
}
],
"platform": "Camera-ffmpeg"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment