-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Stream - Malformed AAC bitstream detected #47084
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
Comments
I'm having the same issue - hassio on a RPI4 in my case with two 810A cameras. I saw errors using the Reolink integration and added some lovelace cards which do display the static periodic images fine. Whilst hunting down another problem I saw errors in the log opening the RTMP stream and switched to RTSP with no luck - the live previews don't work still but the errors in my log have now changed:
I then switched back to RTMP with the sub (and not main) stream and now have working previews. As I understand it the main stream is H265 and the sub is H264. I'm still seeing errors in the log - but they're referring to RTSP. I can see both cameras live.. Weird. Gonna reboot the server.. Core 2021.2.3, HA OS 5,12, Integration: https://github.com/fwestenberg/reolink_dev |
Rebooted, still got live streams in lovelace. No errors in the log this time - will keep an eye on it. So for now RTMP + stream 'sub' - works! |
No luck for me. I tried the RTMP stream with the generic component with no success. |
After tinkering around i found that disabling the stream component (commenting out in config) all camera components started to work. I now can see the live stream (main and sub) in the Onvif integration, generic and ffmpeg component. So the stream component is clear causing the above mentioned errors. Only the generic component does show the main stream in 4k fluent the other components bring the entire server to a stand still. But this however is unrelated i think and probable due the the ffmpeg handling of H265 streams. |
Just saw this - it's essentially the same issue as #41932. The problem is coming from the audio stream - due to the options we use, the bitstream filter to correct the audio track is not automatically applied, and we currently have no way to apply it using the current library. We were able to work around it with other cameras by disabling the audio stream either by disabling it outright or selecting an unusable codec, but admittedly this is kind of a hack.
|
Hi uvjustin, Thanks for the feedback. I have tried to disable de audio on the camera itself with no luck. I can surely run the code. But i have no idea how >.<. |
stream documentation |
From the bash shell in your container, type " |
i get this syntax error: `
i have done this is the 'execute bash' in portainer. |
The indentations/spaces are important in python - the body of the for statement and the if statement have to be indented consistently. Can you try again? |
Thanks for the screenshot. Add one extra blank line before the |
Great, I think that might be enough for me to work on a fix. Thanks |
okee great! thank you for the support. |
I am seeing the same behaviour with a Reolink RLC-510WA on 2021.4.3. Is this fixed in 2021.4? And if not, when is it likely to arrive? Apologies if this is a stupid question, I'm not sure how to tell from Github.
|
I am having the same issue with RLC-810A. Cannot get the stream working at all, even with audio disabled. Would be great to see some movement on this. I was able to get this working with the Reolink HAC component as noted above: https://github.com/fwestenberg/reolink_dev |
A google search shows there seems to be some kind of problem with Reolink's RTSP implementation and ffmpeg. There are documented problems on several video projects. A common workaround is to use the RTMP feed. Try using the RTMP feed in
|
I tried all sorts of combinations (different streams) between RTSP and RTMP without luck. The only thing I could get working was https://github.com/fwestenberg/reolink_dev. Glad to see this is re-opened and going to get another look and potential fix. |
What version of HA are you on? Make sure you are on 2021.4 or later. Can you post the errors in your log when using the RTMP stream? |
I am on the latest, 2021.5.1. Yeah, I can get you the logs later on today. |
@krushmike Did you get a chance to capture your logs? |
Hi! I also have a similar problem. I run the docker image: homeassistant/raspberrypi4-homeassistant:latest (pulled today) on a rpi4. When trying to stream video from my Reolink RLC-810A i get the following error. (I get alot if different errors but this seems to be one oft he first to appear. I have tried all combinations of rtsp/rtmp, mainstream substream i could think of. Still not been able to stream från the camera. (works just fine in VLC).
|
Same issue with Reolink 822A - connected via the Reolink NVR. |
Thanks AnkerStål - I've now installed core version 2021.8.0b5 and tried to add the camera's one by one again. Sadly enough it is still the same issue. Pre-view (still picture) is updated, but streaming does not start up. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Uh oh!
There was an error while loading. Please reload this page.
The problem
Unable to get a Reolink camera's to work in HA. There are multiple errors in the log which boil down too: Malformed AAC bitstream
The error looks very similar to the following issue: Stream - Malformed AAC bitstream detected #39848
The proposed solution is not working for me: Disable audio for HLS or mpegts input #39906
I have tried the ONVIF integration as well as the generic and ffmpeg components. All results in the same errors.
Both the sub (H264) and main (H265) streams have this issue.
This issue is also mentioned by other people on the forum: https://community.home-assistant.io/t/rtsp-camera-stream-not-working-reolink-rlc-810a/279976
What is version of Home Assistant Core has the issue?
2021.2.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ONVIF, camera
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onvif/
Example YAML snippet
Anything in the logs that might be useful for us?
Installation is running in Docker on a Ubuntu 18.04 LTS. IP cam is in another VLAN but is reachable and working with VLC.
Stream, ffmpeg and camera integrations are added to the configuration yaml.
i have tried to add the suggested '-bsf:a aac_adtstoasc' to the ONVIF options arguments and to the extra_arguments in the ffmpeg component with no luck.
The text was updated successfully, but these errors were encountered: