NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
412 stars 52 forks source link

fix FFmpeg No such file or directory #495

Closed twocolors closed 1 year ago

twocolors commented 1 year ago

fix error https://github.com/NRCHKB/node-red-contrib-homekit-docker/issues/70

Shaquu commented 1 year ago

I guess it is related to the empty addiitonalCommand?

twocolors commented 1 year ago

yes, this fixes the empty value of "addiitonalCommand"

If it is empty, then an error will be

node-red  | 2022-08-31T12:26:01.474Z CameraSource ffmpeg data:   Stream #0:0: Video: h264 (High), yuv420p(tv, progressive), 928x576, 20 fps, 20 tbr, 90k tbn
node-red  | 2022-08-31T12:26:01.476Z CameraSource ffmpeg data: : No such file or directory
node-red  | 2022-08-31T12:26:01.484Z CameraSource-Error ERROR: FFmpeg exited with code 1

because there are two spaces

-f rawvideo  -b:v 132k