Fatal error when storing audio, Error writing packet: Operation not permitted Malformed AAC bitstream detected
Posted: Thu Apr 21, 2022 7:59 am
Problem:
Audio not saved when checkbox is checked. Tested with Video Writer at passthrough and encode h265/hevc Encoder libx265.
ZM console will say recording, Capturing and video is saved when in passthrough, but no audio and log continues to print below WAR and ERR messages:
2022-04-21 09:05:34 zmc_m1 10101 ERR Error writing packet: Operation not permitted zm_videostore.cpp 1338
2022-04-21 09:05:34 zmc_m1 10101 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 69
2022-04-21 09:05:31 zmdc 1259 INF 'zmc -m 1' starting at 22/04/21 09:05:31, pid = 10088 zmdc.pl
When using encoding it will sporadically record videos without sound.
Video and Audio works without issues when watching live through VLC via same RTSP link and credentials as used with ZM.
Same issue experienced on ALMA linux.
Tried adding -bsf:a aac_adtstoasc to Source Options and storage options, same issue. Log says ZM cannot use those vars (maybe i did it wrong?)
Setup:
Hypervisor: ESXi-7.0U3c-19193900-standard
OS: Ubuntu Server 20.04 LTS, latest patches applied
Camera video format is H.265.
cam: Reolink RLC-820A (newest firmware)
Zoneminder version 1.36.14
Found related thread here but without solution:
viewtopic.php?t=29856
Please advise.
Audio not saved when checkbox is checked. Tested with Video Writer at passthrough and encode h265/hevc Encoder libx265.
ZM console will say recording, Capturing and video is saved when in passthrough, but no audio and log continues to print below WAR and ERR messages:
2022-04-21 09:05:34 zmc_m1 10101 ERR Error writing packet: Operation not permitted zm_videostore.cpp 1338
2022-04-21 09:05:34 zmc_m1 10101 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 69
2022-04-21 09:05:31 zmdc 1259 INF 'zmc -m 1' starting at 22/04/21 09:05:31, pid = 10088 zmdc.pl
When using encoding it will sporadically record videos without sound.
Video and Audio works without issues when watching live through VLC via same RTSP link and credentials as used with ZM.
Same issue experienced on ALMA linux.
Tried adding -bsf:a aac_adtstoasc to Source Options and storage options, same issue. Log says ZM cannot use those vars (maybe i did it wrong?)
Setup:
Hypervisor: ESXi-7.0U3c-19193900-standard
OS: Ubuntu Server 20.04 LTS, latest patches applied
Camera video format is H.265.
cam: Reolink RLC-820A (newest firmware)
Zoneminder version 1.36.14
Found related thread here but without solution:
viewtopic.php?t=29856
Please advise.