Anyone else getting the following error that I have for some weeks now. Working perfectly fine before that using the, “aarlo/camera_start_recording” and then the “aarlo/camera_request_video_to_file” service calls. With this I get a zero byte file created and the following error message on
on my iOs app. The logs show the following:
2021-12-20 10:18:47 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 358, in post
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/aarlo/camera.py", line 230, in async_service_callback
await hass.async_add_executor_job(service_callback, call)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/aarlo/camera.py", line 221, in service_callback
camera_video_to_file_service(hass, call)
File "/config/custom_components/aarlo/camera.py", line 1111, in camera_video_to_file_service
out_file.write(video)
TypeError: a bytes-like object is required, not 'NoneType'
2021-12-20 10:18:48 WARNING (recorder_save_worker) [libav.mov,mp4,m4a,3gp,3g2,mj2] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (10000000) and 'probesize' (5000000) options
If I use the following “camera/record” I get the same iOs app error and the following log errors
Consider increasing the value for the 'analyzeduration' (10000000) and 'probesize' (5000000) options
2021-12-20 09:44:16 ERROR (MainThread) [custom_components.aarlo.camera] Video not found for Alfresco. Is it older than 30 days?
2021-12-20 09:44:16 ERROR (MainThread) [custom_components.aarlo.camera] Video not found for Alfresco. Is it older than 30 days?
2021-12-20 09:44:18 ERROR (MainThread) [custom_components.aarlo.camera] Video not found for Alfresco. Is it older than 30 days?
2021-12-20 09:54:49 ERROR (MainThread) [frontend.js.latest.202112150] https://toowong-hass.duckdns.org/lovelace/0:0:0 Uncaught
2021-12-20 09:55:10 WARNING (recorder_save_worker) [libav.mov,mp4,m4a,3gp,3g2,mj2] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (10000000) and 'probesize' (5000000) options
Thanks