Server 3.1.0-rc3 - Failed to init muxer

Since updating to Server 3.1.0-rc3, 2 of my cameras have stopped recording.
System log shows the following error: Failed to init muxer for output file /var/lib/bluecherry/recordings/2021/08/16/000005/11-41-13-motion.mp4: Invalid argument (-22)

These cameras were recording correctly in version Server 3.1.0-rc2.

Thanks this has been fixed and will be released in RC4.

Which Debian or Ubuntu release are you using?

Ubuntu Linux 20.04.2

Can you download this package and see if the problem goes away?

http://lizard.bluecherry.net/~curt/releases/focal/bluecherry_3.1.0-rc4_amd64.deb

Update loaded, but problem still exists. If I switch off Audio in the Devices → Settings → Properties, the recordings will work.

@curtishall Any way to make it work with audio?

Ubuntu 18.04 CLI

@curtishall @RobertStedmond As soon as I enable audio this what I get in logs.

Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): Initializing muxer for rtp streaming failed
Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): bc_streaming_setup() failed: Invalid argument
Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): Unable to setup live broadcast from substream
Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): Initializing muxer for mpegts streaming failed
Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): bc_streaming_setup() failed: Invalid argument
Sep 29 04:51:00 BlueCherry bc-server[183]: E(3/Car): Unable to setup HLS stream from substream
Sep 29 04:51:10 BlueCherry bc-server[183]: E(3/Car): Failed to init muxer for output file /mnt/BlueCherry/Recordings/2021/09/29/000003/04-51-08.mp4: Invalid argument (-22)
Sep 29 04:51:10 BlueCherry bc-server[183]: E(3/Car): Cannot start recording!

We are tearing about the old code and implementing better audio support in the next few releases.

For now on some of the cameras we are testing using AAC with 8000 sample rate is working (atleast on Amcrest cameras)

Same situation

окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): Initializing muxer for rtp streaming failed
окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): bc_streaming_setup() failed: Invalid argument
окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): Unable to setup live broadcast from substream
окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): Initializing muxer for mpegts streaming failed
окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): bc_streaming_setup() failed: Invalid argument
окт 11 11:30:08 villaserv bc-server[70128]: E(1/Reolink1): Unable to setup HLS stream from substream