Closed onfoot closed 4 years ago
I finally got around to toy with this and succeeded. The setup is:
homebridge-camera-ffmpeg
config:
{
"name": "Vacuum",
"videoConfig": {
"source": "-loop 1 -i http://localhost:3030/api/map/image",
"videoFilter": "pad='ih*16/9:ih:(ow-iw)/2:(oh-ih)/2',scale=1920:1080",
"maxFPS": 5
}
}
-loop 1
sets up ffmpeg so it's constantly loading the generated png for each framepad
filter is set up so it expands the generated png to an 16:9 aspect ratio image so it looks right in Home app, then it's scaled using scale
down to 1920x1080maxFPS
set to a reasonable value; at 1
it was having hard time to start live streaming in Home app; at 5
it's instantaneousLooks cool!
Would you please a step by step guide, this would be awesome :)
One would need to be able to create a single-digit-fps MJPEG stream from images generated either by I can't believe it's valetudo or the plugin itself, then dump it using ffmpeg to HomeKit.