Audio Operation not permitted

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
jannnfe
Posts: 27
Joined: Sun Oct 01, 2017 9:08 am

Audio Operation not permitted

Post by jannnfe » Tue Dec 11, 2018 11:20 pm

Hello,
I want to have audio in events from camera. I configure my camera with this Source: rtsp://user:pass@192.168.178.19:554/11
and Video Writer to H264 Camera Passthrough.

When triggering an event i get this log. How to fix this?
2018-12-12 00:10:17 zmc_m5 48465 WAR /build/zoneminder-59iecC/zoneminder-1.32.3/src/zm_videostore.cpp:836: Writing frame [av_interleaved_write_frame()] failed: Operation not permitted(-1) zm_videostore.cpp 836
2018-12-12 00:10:17 zmc_m5 48465 ERR Error writing audio frame packet: Operation not permitted zm_videostore.cpp 1070
Thanks!

bbunge
Posts: 2364
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Audio Operation not permitted

Post by bbunge » Wed Dec 12, 2018 2:01 am

Linux distro and version? Camera make and model?

jannnfe
Posts: 27
Joined: Sun Oct 01, 2017 9:08 am

Re: Audio Operation not permitted

Post by jannnfe » Wed Dec 12, 2018 10:04 am

Ubuntu Server 16
Zoneminder 1.32.3
Camera from https://www.aliexpress.com/item/Camhi-P ... 4c4dKY07Ty

That helps to solve the problem?

bbunge
Posts: 2364
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Audio Operation not permitted

Post by bbunge » Fri Dec 14, 2018 1:04 am

jannnfe wrote:
Wed Dec 12, 2018 10:04 am
Ubuntu Server 16
Zoneminder 1.32.3
Camera from https://www.aliexpress.com/item/Camhi-P ... 4c4dKY07Ty

That helps to solve the problem?
Well, it might especially if someone has had that issue with the same hardware. It is also a requirement of the forum..
viewtopic.php?f=38&t=27501

Tell us exactly what version of ZoneMinder you are using and whether or not you are using a release or a development snapshot
Tell us how you installed ZoneMinder and what installation instructions you followed. You will be asked!
In most cases, we need to see the contents of your ZoneMinder log. Copy & paste it. More is better. Do not edit anything or leave bits out! If the logs are large, feel free to use a service like pastebin or one of the many others and post the link in the forum
If the error concerns a camera, we need to know the make and model of the camera. We also need to know the complete camera configuration in ZoneMinder. Screenshots are preferred.
If your question concerns the API, make sure you have followed the documentation mentioned previously.

User avatar
iconnor
Posts: 737
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Audio Operation not permitted

Post by iconnor » Fri Dec 14, 2018 3:48 am

Honestly that's a new error message for me. (I'm the author of the code). I've seen invalid parameter, invalid this, invalid that. Never operation not permitted.

This is going to take some effort to debug.

One thing you can do is upgrade to master (1.33.0) which include some code that captures more debug messages from ffmpeg.

twice
Posts: 18
Joined: Tue Nov 02, 2010 12:38 am

Re: Audio Operation not permitted

Post by twice » Thu Dec 20, 2018 11:16 pm

Good day,
I have the same error and think I can provide the needed information,

I’m running running Ubuntu 16.04 desktop
Intel Core Duo CPU E7500 @ 2.93GHz
4 Gigs Ram
Zoneminder 1.30.4 updated from ppa:iconnor/zoneminder-1.32
1.32.2 and then to 1.32.3 all updates were done by ppa and a little forum searching

Cameras = 3: 1st is iCamera-1000
Ffmpeg rtsp://10.0.0.34:1024/img/media.sav TCP
From VLC: Video Codec: H264 - MPEG-4 AVC (part 10) (h264)
Audio Codec: G.726 ADPCM Audio (g726)

Camera 2: Kkmoon 801,
Ffmpeg rtsp://user:pass@10.0.0.40:554/11 TCP
From VLC: Codec: H264 - MPEG-4 AVC (part 10) (h264)
Audio Codec: PCM ALAW (alaw)

Camera 3: PLC
Ffmpeg rtsp://10.0.0.129:554/onvif1 UDP
From VLC: Codec: H264 - MPEG-4 AVC (part 10) (h264)
Audio Codec: PCM ALAW (alaw)

Errors from log ,,

2018-12-20 17:01:31 zmc_m1 9551 WAR /build/zoneminder-59iecC/zoneminder- 1.32.3/src/zm_videostore.cpp:836: Writing frame [av_interleaved_write_frame()] failed: Operation not permitted(-1) zm_videostore.cpp 836

2018-12-20 17:01:30 zmc_m1 9551 WAR /build/zoneminder-59iecC/zoneminder-1.32.3/src/zm_videostore.cpp:836: Writing frame [av_interleaved_write_frame()] failed: Operation not permitted(-1) zm_videostore.cpp 836

2018-12-20 17:01:29 zmc_m1 9551 ERR Error writing audio frame packet: Operation not permitted zm_videostore.cpp

10702018-12-20 17:01:29 zmc_m1 9551 ERR Error writing audio frame packet: Operation not permitted zm_videostore.cpp 1070


All cameras work with clean install of zoneminder 1.32.3 on test box
Thanks! :D

twice
Posts: 18
Joined: Tue Nov 02, 2010 12:38 am

Re: Audio Operation not permitted

Post by twice » Fri Dec 21, 2018 4:30 pm

Good Day,
Updated to master 1.33.0 and a bit more in the log ,
Thanks!

Code: Select all

2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m3		31853	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m3		31853	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m3		31853	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:20	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:20	zmc_m1		31837	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	64
2018-12-21 10:21:20	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:19	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:19	zmc_m1		31837	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	64
2018-12-21 10:21:19	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:19	zmc_m4		31862	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:19	zmc_m1		31837	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	64
2018-12-21 10:21:19	zmc_m3		31853	INF	ignoring invalid SAR: 0/0	zm_ffmpeg.cpp	64
2018-12-21 10:21:19	zmc_m1		31837	ERR	Error writing audio frame packet: Operation not permitted	zm_videostore.cpp	1111
2018-12-21 10:21:19	zmc_m1		31837	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	64

twice
Posts: 18
Joined: Tue Nov 02, 2010 12:38 am

Re: Audio Operation not permitted

Post by twice » Thu Jan 10, 2019 1:45 am

Good day!
I solved this by purging zoneminder and ffmpeg and reinstalling

Thanks!

Post Reply

Who is online

Users browsing this forum: bugmenot and 3 guests