Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg becomes immediately unavailable #117

Open
Meow-ops opened this issue Aug 27, 2023 · 0 comments
Open

ffmpeg becomes immediately unavailable #117

Meow-ops opened this issue Aug 27, 2023 · 0 comments

Comments

@Meow-ops
Copy link

I am trying to use ffmpeg_motion on an image file:

binary_sensor:
    - name: ffmpeg_motion_on_file
      platform: ffmpeg_mtion
      input: "/media/my_snapshot_file.jpg"

Then use the developper services tab to start ffmpeg

service: ffmpeg.start
data: {}

The history shows that ffmpeg_motion tries to launch and immediatly becomes "unavailable"

I also tried specifying the ffmpeg binary manually in the configuration.yaml file:

ffmpeg:
    ffmpeg_bin: "/usr/bin/ffmpeg"

I can launch the ffmpeg utility manually using the ssh add-on without any trouble.

How could I get more logs about this so I can debug the problem?

I managed to get some more logs from HA but couldn't find any problem:

2023-08-27 01:04:10.824 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Received {'type': 'execute_script', 'sequence': [{'service': 'ffmpeg.start', 'data': {}}], 'id': 43}
2023-08-27 01:04:10.836 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event call_service[L]: domain=ffmpeg, service=start, service_data=>)
2023-08-27 01:04:10.845 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:01:45.815991+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:10.844378+02:00>>)
2023-08-27 01:04:10.847 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091050.844378,"c":"01H8T1EDAW9HHXZRZGHCDQ0VCZ"}}}}}
2023-08-27 01:04:10.848 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091050.844378,"c":"01H8T1EDAW9HHXZRZGHCDQ0VCZ"}}}}}
2023-08-27 01:04:10.851 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091050.844378,"c":"01H8T1EDAW9HHXZRZGHCDQ0VCZ"}}}}}
2023-08-27 01:04:10.853 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091050.844378,"c":"01H8T1EDAW9HHXZRZGHCDQ0VCZ"}}}}}
2023-08-27 01:04:11.002 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091051.001359,"c":"01H8T1EDFSZ2BJJ9Q1CCJFSVKG"}}}}}
2023-08-27 01:04:11.004 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:10.844378+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:11.001359+02:00>>)
2023-08-27 01:04:11.007 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091051.001359,"c":"01H8T1EDFSZ2BJJ9Q1CCJFSVKG"}}}}}
2023-08-27 01:04:11.008 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091051.001359,"c":"01H8T1EDFSZ2BJJ9Q1CCJFSVKG"}}}}}
2023-08-27 01:04:11.009 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091051.001359,"c":"01H8T1EDFSZ2BJJ9Q1CCJFSVKG"}}}}}
2023-08-27 01:04:11.207 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":43,"type":"event","event":{"events":[{"when":1693091050.844378,"state":"off","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"},{"when":1693091051.001359,"state":"unavailable","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"}]}}
2023-08-27 01:04:26.614 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Received {'type': 'execute_script', 'sequence': [{'service': 'ffmpeg.start', 'data': {}}], 'id': 44}
2023-08-27 01:04:26.622 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event call_service[L]: domain=ffmpeg, service=start, service_data=>)
2023-08-27 01:04:26.630 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:11.001359+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:26.629960+02:00>>)
2023-08-27 01:04:26.631 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091066.62996,"c":"01H8T1EWR58DV43Q593E0BWFQ6"}}}}}
2023-08-27 01:04:26.633 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091066.62996,"c":"01H8T1EWR58DV43Q593E0BWFQ6"}}}}}
2023-08-27 01:04:26.635 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091066.62996,"c":"01H8T1EWR58DV43Q593E0BWFQ6"}}}}}
2023-08-27 01:04:26.637 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091066.62996,"c":"01H8T1EWR58DV43Q593E0BWFQ6"}}}}}
2023-08-27 01:04:26.719 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091066.719074,"c":"01H8T1EWTZC9YRAD4P0VR3FKAQ"}}}}}
2023-08-27 01:04:26.720 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:26.629960+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:26.719074+02:00>>)
2023-08-27 01:04:26.722 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091066.719074,"c":"01H8T1EWTZC9YRAD4P0VR3FKAQ"}}}}}
2023-08-27 01:04:26.723 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091066.719074,"c":"01H8T1EWTZC9YRAD4P0VR3FKAQ"}}}}}
2023-08-27 01:04:26.724 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091066.719074,"c":"01H8T1EWTZC9YRAD4P0VR3FKAQ"}}}}}
2023-08-27 01:04:26.990 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":43,"type":"event","event":{"events":[{"when":1693091066.62996,"state":"off","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"},{"when":1693091066.719074,"state":"unavailable","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"}]}}
2023-08-27 01:04:53.387 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Received {'type': 'execute_script', 'sequence': [{'service': 'ffmpeg.start', 'data': {}}], 'id': 45}
2023-08-27 01:04:53.396 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event call_service[L]: domain=ffmpeg, service=start, service_data=>)
2023-08-27 01:04:53.403 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:26.719074+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:53.403692+02:00>>)
2023-08-27 01:04:53.405 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091093.403692,"c":"01H8T1FPWVRP3Z8ZB2E9GDVH2B"}}}}}
2023-08-27 01:04:53.408 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091093.403692,"c":"01H8T1FPWVRP3Z8ZB2E9GDVH2B"}}}}}
2023-08-27 01:04:53.410 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091093.403692,"c":"01H8T1FPWVRP3Z8ZB2E9GDVH2B"}}}}}
2023-08-27 01:04:53.412 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"off","lc":1693091093.403692,"c":"01H8T1FPWVRP3Z8ZB2E9GDVH2B"}}}}}
2023-08-27 01:04:53.516 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357270976] <user> from <IP_addr> (<UserAgent>): Sending {"id":296,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091093.516572,"c":"01H8T1FQ0C7MJTVCT0SKVS21XN"}}}}}
2023-08-27 01:04:53.519 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=binary_sensor.ffmpeg_motion_camera_snapshot, old_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=off; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:53.403692+02:00>, new_state=<state binary_sensor.ffmpeg_motion_camera_snapshot=unavailable; device_class=motion, friendly_name=ffmpeg_motion_camera_snapshot @ 2023-08-27T01:04:53.516572+02:00>>)
2023-08-27 01:04:53.521 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":20,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091093.516572,"c":"01H8T1FQ0C7MJTVCT0SKVS21XN"}}}}}
2023-08-27 01:04:53.523 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357713344] <user> from <IP_addr> (<UserAgent>): Sending {"id":19,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091093.516572,"c":"01H8T1FQ0C7MJTVCT0SKVS21XN"}}}}}
2023-08-27 01:04:53.524 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474357725248] <user> from <IP_addr> (<UserAgent>): Sending {"id":21,"type":"event","event":{"c":{"binary_sensor.ffmpeg_motion_camera_snapshot":{"+":{"s":"unavailable","lc":1693091093.516572,"c":"01H8T1FQ0C7MJTVCT0SKVS21XN"}}}}}
2023-08-27 01:04:53.775 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140474356993344] <user> from <IP_addr> (<UserAgent>): Sending {"id":43,"type":"event","event":{"events":[{"when":1693091093.403692,"state":"off","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"},{"when":1693091093.516572,"state":"unavailable","entity_id":"binary_sensor.ffmpeg_motion_camera_snapshot"}]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant