diff --git a/docker/main/rootfs/usr/local/go2rtc/create_config.py b/docker/main/rootfs/usr/local/go2rtc/create_config.py index ea5bc3cf5..b51d008f5 100644 --- a/docker/main/rootfs/usr/local/go2rtc/create_config.py +++ b/docker/main/rootfs/usr/local/go2rtc/create_config.py @@ -120,9 +120,9 @@ else: ffmpeg_path = f"{path}/bin/ffmpeg" if go2rtc_config.get("ffmpeg") is None: - go2rtc_config["ffmpeg"] = {"path": ffmpeg_path} -elif go2rtc_config["ffmpeg"].get("path") is None: - go2rtc_config["ffmpeg"]["path"] = ffmpeg_path + go2rtc_config["ffmpeg"] = {"bin": ffmpeg_path} +elif go2rtc_config["ffmpeg"].get("bin") is None: + go2rtc_config["ffmpeg"]["bin"] = ffmpeg_path # need to replace ffmpeg command when using ffmpeg4 if int(os.environ["LIBAVFORMAT_VERSION_MAJOR"]) < 59: