core: Stream - Malformed AAC bitstream detected

The problem

When trying to access a stream from a Netatmo camera it loads forever. This happens on a RaspberryPi 3 with Ubuntu 20.04 inside a venv. Unfortunately I can’t reproduce this in my dev environment, Ubuntu 18.04.5 LTS with ffmpeg 7:4.3-2~18.04.york0.

Environment

Problem-relevant configuration.yaml


Traceback/Error logs

Sep 09 10:59:11 hapi hass[1991]: 2020-09-09 10:59:11 ERROR (stream_worker) [libav.mp4] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
Sep 09 10:59:12 hapi hass[1991]: Exception ignored in: 'av.container.output.OutputContainer.__dealloc__'
Sep 09 10:59:12 hapi hass[1991]: Traceback (most recent call last):
Sep 09 10:59:12 hapi hass[1991]:   File "av/container/output.pyx", line 23, in av.container.output.close_output
Sep 09 10:59:12 hapi hass[1991]:   File "av/container/core.pyx", line 257, in av.container.core.Container.err_check
Sep 09 10:59:12 hapi hass[1991]:   File "av/error.pyx", line 323, in av.error.err_check
Sep 09 10:59:12 hapi hass[1991]:   File "av/container/pyio.pyx", line 39, in av.container.pyio.pyio_write_gil
Sep 09 10:59:12 hapi hass[1991]: TypeError: 'NoneType' object is not callable

Additional information

Installed ffmpeg version: 7:4.2.2-1ubuntu1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (24 by maintainers)

Most upvoted comments

FWIW, my vote is to remove audio for now since these users currently don’t have it in Home Assistant anyway.

Thank you, guys, for the quick fix.

I’ll disable audio for HLS sources for now. Post a PR in a bit. BTW, I’m working on top of that other overflow/non-monotonic timestamp PR I made…want me to take that out?

Thanks. I think we have identified the issue, just need to make a workaround.