Skip to content

Instantly share code, notes, and snippets.

@idcrook
Last active October 18, 2023 21:31
Show Gist options
  • Save idcrook/613bfb96c3e66544a34662dbb2f9b4e2 to your computer and use it in GitHub Desktop.
Save idcrook/613bfb96c3e66544a34662dbb2f9b4e2 to your computer and use it in GitHub Desktop.
Configure homebridge-camera-ffmpeg homebridge plugin for USB-attached webcam
{
"platform": "Camera-ffmpeg",
"videoProcessor": "/usr/local/bin/ffmpeg",
"cameras": [
{
"name": "BasementCam",
"videoConfig": {
"source": "-re -f v4l2 -video_size 1280x720 -i /dev/video0",
"stillImageSource": "-f video4linux2 -input_format mjpeg -video_size 1280x720 -ss 0.9 -i /dev/video0 -frames:v 1",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"audio": false,
"vcodec": "h264_omx",
"debug": false
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment