[Solved] Camera no longer streams live

So I am migrating my installation from TrueNAS (FreeBSD) to Armbian. Both are HA core installations. I have a card on my dashboard that streamed my doorbell camera. It is an Amcrest and I have it configured to use rtsp in the configuration.yaml. On the new system, if I set the card to auto, it will show a still image from the camera. But when set to live, it looks like the image below.

image_2022-08-11_200230226

I have these errors in my log that may be related.

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/haffmpeg/core.py", line 136, in open
self._proc = await self._loop.run_in_executor(None, proc_func)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
2022-08-11 19:51:27.084 WARNING (MainThread) [haffmpeg.core] FFmpeg isn't running!
2022-08-11 19:51:27.088 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/camera/__init__.py", line 729, in get
return await self.handle(request, camera)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/camera/__init__.py", line 769, in handle
stream = await camera.handle_async_mjpeg_stream(request)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/amcrest/camera.py", line 272, in handle_async_mjpeg_stream
stream_reader = await stream.get_reader()
File "/srv/homeassistant/lib/python3.10/site-packages/haffmpeg/core.py", line 181, in get_reader
lambda: reader_protocol, self._proc.stdout
AttributeError: 'NoneType' object has no attribute 'stdout'

I figured it out. Ffmpeg is not installed with HA Core. A simple “apt install ffmpeg” with a reboot fixed my issue. This link clued me in on some things. It also has more info if this doesn’t resolve it for you.

Hello! Could you elaborate in how you fix it? I am having exactly the same problem. I had a ad410 that worked perfectly on HA. The actual doorbell malfuctioned so Amcrest sent me a replacement but the new one is behaving as yours. Any guidance is much appreciated. Thank you!