Page 1 of 1

audio not saving with record

Posted: Sun Aug 16, 2020 9:52 pm
by jnd421
Hi,

I'm trying to get ZM to work with a Bosch DINION IP camera. I'm using rtsp [rtsp://user:passwd@192.168.100.57/?enableaudio=1&audio_line=1]. This link works for both video and audio with VLC. With ZM the video works fine, but when I turn on audio I get the following errors repeated around 10 times a second.

2020-08-16 14:26:34 zmc_m8 26902 WAR Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg) zm_ffmpeg.cpp 70
2020-08-16 14:26:34 zmc_m8 26902 ERR Error writing packet: Operation not permitted zm_videostore.cpp 1039

I tried adding -bsf:a aac_adtstoasc under Source:Options or Storage:Optional Encoder Parameters, but it didn't seem to change anything, but at this point I admit I'm somewhat flailing in the dark.

Is there a way to add this option to ffmpeg? Or is there a better way to go about this?

I'm running ZM 1.34.16 on Debian 10.5. ZM was installed thru apt-get following the instructions in the ZM docs.

Thanks!

Re: audio not saving with record

Posted: Mon Aug 17, 2020 12:13 am
by iconnor
Yikes.

Havn't seen that one before.

We may not be passing the Encoder Params to the audio codec... I will double check that.

Re: audio not saving with record

Posted: Mon Oct 25, 2021 5:19 pm
by bluedreamer
I am getting what looks to be the same with 1.36.8

Code: Select all

10/25/21 11:14:55.222478 zmc_m3[8803].DB1-zm_monitor.cpp/2248 [Blending]
10/25/21 11:14:55.222600 zmc_m3[8803].DB1-zm_monitor.cpp/2250 [Done Blending]
10/25/21 11:14:55.222670 zmc_m3[8803].WAR-zm_ffmpeg.cpp/69 [Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)]
10/25/21 11:14:55.223410 zmc_m3[8803].ERR-zm_videostore.cpp/1337 [Error writing packet: Operation not permitted]
I had just got to adding "-bsf:a aac_adtstoasc" to the options in the source and it wasn't working for me either.

Re: audio not saving with record

Posted: Thu Feb 23, 2023 8:05 am
by kibbling
Same error.
No Audio recording with Reolink RLC-510WA
Works in VLC.
ZM Give Errormessage: zmc_m8 2159593 ERR Error writing packet: Operation not permitted zm_videostore.cpp 1425

Anyone got a hint what to do then and how to record audio?


RTMP Audio is working, but the Load on ZM is significantly higher and it can only handle 2 fps.
RTSP Audio is not working, but its full FPS without any noticible CPU Load