Skip to content

FFMpeg times out, automation never finishes #549

@SteveDinn

Description

@SteveDinn

Checklist

  • I'm running the newest version of LLM Vision https://github.com/valentinfrlch/ha-llmvision/releases/latest
  • I have enabled debug logging for the integration.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This is a bug and not a feature request.
  • I have searched open issues for my problem.

Describe the issue

Periodically (I haven't been able to reproduce this deterministically), ffmpeg times out and my automation never finishes. Since this automation was set to 'queued', this jams up the queue and the automation does not run until I disable and re-enable the trigger.

I know any potential bugs in ffmpeg are out of scope here, but ffmpeg's failure should not hang my automation's queue.

Reproduction steps

Unfortunately, I haven't been able to reproduce this with deterministic steps, but it seems to happen at least every couple of days. It doesn't seem to matter how many times the automation actually runs prior to the failure.

LLMVision is running against videos from my Blink doorbell camera. These videos are at most 1 minute long and have never been more than 5 megabytes. When it succeeds (which is most of the time), the entire LLMVision operation (including the AI query) completes in 2 or 3 seconds.

Debug logs

2025-10-28 06:00:00.182 INFO (MainThread) [homeassistant.components.automation.update_blink_camera_thumbnails] Update Blink Camera Thumbnails: Running automation actions
2025-10-28 06:00:00.182 INFO (MainThread) [homeassistant.components.automation.update_blink_camera_thumbnails] Update Blink Camera Thumbnails: Executing step call service
2025-10-28 06:00:00.187 INFO (MainThread) [homeassistant.components.automation.update_blink_camera_thumbnails] Update Blink Camera Thumbnails: Executing step call service
2025-10-28 06:00:00.652 INFO (MainThread) [blinkpy.camera] Saved 1 of 1 recent clips from 'Front Door' to directory /media/cameras/videos/2025/10/28/
2025-10-28 06:00:00.658 INFO (MainThread) [homeassistant.components.automation.motion_notification_with_ai_description] Motion Notification with AI Description: Running automation actions
2025-10-28 06:00:00.658 INFO (MainThread) [homeassistant.components.automation.motion_notification_with_ai_description] Motion Notification with AI Description: Executing step assigning variables
2025-10-28 06:00:00.659 INFO (MainThread) [homeassistant.components.automation.motion_notification_with_ai_description] Motion Notification with AI Description: Executing step assigning variables
2025-10-28 06:00:00.659 INFO (MainThread) [homeassistant.components.automation.motion_notification_with_ai_description] Motion Notification with AI Description: Use LLMVision: Running automation actions
2025-10-28 06:00:00.660 INFO (MainThread) [homeassistant.components.automation.motion_notification_with_ai_description] Motion Notification with AI Description: Use LLMVision: Executing step call service
2025-10-28 06:00:01.135 INFO (MainThread) [custom_components.llmvision.media_handlers] Started ffmpeg pid=24669 (stdin=inherit, stdout=pipe, stderr=devnull)
2025-10-28 06:00:31.144 WARNING (MainThread) [custom_components.llmvision.media_handlers] Timeout while waiting for ffmpeg stdout read; terminating read loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions