Hi everyone,
I am running the new V3 Wide NOIR camera on a CM4 board with a clean install of Raspberry Pi OS 64-Bit Lite using the following command:At random times it is throwing this error:Here is the full output of the command:I am using the ICS43434 MEMS microphone with these drivers: https://github.com/PaulCreaserML/rpi-i2s-audio.git
I have trialled this on multiple devices, and I am still getting the same results. CPU performance is running around 40%, and there is no throttling.
Here's my config files
config.txt:Pulse audio config:Pulse daemon config:uname -a:apt show rpicam-apps:rpicam-hello --list-cameras:Here's what I have tried and still get the error:
Any help would be much appreciated
I am running the new V3 Wide NOIR camera on a CM4 board with a clean install of Raspberry Pi OS 64-Bit Lite using the following command:
Code:
rpicam-vid \-t 0 \--framerate 60 \--level 4.2 \--denoise cdn_off \--bitrate 6000000 \--hflip \--vflip \--width 1920 \--height 1080 \--autofocus-mode default \--autofocus-window 0.25,0.25,0.5,0.5 \--codec libav \--libav-audio \--audio-device alsa_input.platform-soc_sound.stereo-fallback \--audio-bitrate 320000 \--libav-format flv \-o rtmp://localhost/live/live
Code:
terminate called after throwing an instance of 'std::runtime_error'what(): libav: error writing output: Invalid argument
Code:
[9:50:44.824261062] [155008] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5[9:50:44.963320178] [155015] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[9:50:44.965740653] [155015] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media4 and ISP device /dev/media0[9:50:44.965852337] [155015] INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'Mode selection for 1920:1080:12:P(60) SRGGB10_CSI2P,1536x864/120.135 - Score: 2200 SRGGB10_CSI2P,2304x1296/56.0255 - Score: 9098.9 SRGGB10_CSI2P,4608x2592/14.3536 - Score: 93342.8Stream configuration adjusted[9:50:44.977845027] [155008] INFO Camera camera.cpp:1183 configuring streams: (0) 1920x1080-YUV420 (1) 1536x864-SRGGB10_CSI2P[9:50:44.978139284] [155015] INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SRGGB10_1X10 - Selected unicam format: 1536x864-pRAA[h264_v4l2m2m @ 0x55b09e7890] <<< v4l2_encode_init: fmt=179/0[h264_v4l2m2m @ 0x55b09e7890] Using device /dev/video11[h264_v4l2m2m @ 0x55b09e7890] driver 'bcm2835-codec' on card 'bcm2835-codec-encode' in mplane mode[h264_v4l2m2m @ 0x55b09e7890] requesting formats: output=YU12 capture=H264Input #0, pulse, from 'alsa_input.platform-soc_sound.stereo-fallback': Duration: N/A, start: 1713516755.710290, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/sOutput #0, flv, to 'rtmp://localhost/live/live': Stream #0:0: Video: h264, drm_prime(tv, bt709), 1920x1080, q=2-31, 6000 kb/s, 60 fps, 60 tbr, 1000k tbn Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 320 kb/s^[[D^[[C[flv @ 0x55b0b30590] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 63786 >= 63770terminate called after throwing an instance of 'std::runtime_error' what(): libav: error writing output: Invalid argumentAborted
I have trialled this on multiple devices, and I am still getting the same results. CPU performance is running around 40%, and there is no throttling.
Here's my config files
config.txt:
Code:
# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=ondtparam=i2s=ondtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[all]dtoverlay=gpio-fan,gpiopin=12,temp=75000dtoverlay=tpm-slb9670dtoverlay=spi0-2cs,cs0_pin=13disable_splash=1dtoverlay=rpi-i2s-mic
Code:
# This file is part of PulseAudio.## PulseAudio is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## PulseAudio is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# General Public License for more details.## You should have received a copy of the GNU Lesser General Public License# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.## Configuration file for PulseAudio clients. See pulse-client.conf(5) for## more information. Default values are commented out. Use either ; or # for## commenting.; default-sink =; default-source =default-server = /var/run/pulse/native; default-dbus-server =autospawn = no; daemon-binary = /usr/bin/pulseaudio; extra-arguments = --log-target=syslog; cookie-file =; enable-shm = yes; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB; auto-connect-localhost = no; auto-connect-display = no
Code:
# This file is part of PulseAudio.## PulseAudio is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## PulseAudio is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# General Public License for more details.## You should have received a copy of the GNU Lesser General Public License# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for## more information. Default values are commented out. Use either ; or # for## commenting.; daemonize = no; fail = yes; allow-module-loading = yes; allow-exit = yes; use-pid-file = yes; system-instance = no; local-server-type = user; enable-shm = yes; enable-memfd = yes; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB; lock-memory = no; cpu-limit = no; high-priority = yes; nice-level = -11; realtime-scheduling = yes; realtime-priority = 5; exit-idle-time = 20; scache-idle-time = 20; dl-search-path = (depends on architecture); load-default-script-file = yes; default-script-file = /etc/pulse/default.pa; log-target = autolog-level = notice; log-meta = no; log-time = no; log-backtrace = 0; resample-method = speex-float-1; avoid-resampling = false; enable-remixing = yes; remixing-use-all-sink-channels = yes; remixing-produce-lfe = no; remixing-consume-lfe = no; lfe-crossover-freq = 0; flat-volumes = no; rescue-streams = yes; rlimit-fsize = -1; rlimit-data = -1; rlimit-stack = -1; rlimit-core = -1; rlimit-as = -1; rlimit-rss = -1; rlimit-nproc = -1; rlimit-nofile = 256; rlimit-memlock = -1; rlimit-locks = -1; rlimit-sigpending = -1; rlimit-msgqueue = -1; rlimit-nice = 31; rlimit-rtprio = 9; rlimit-rttime = 200000; default-sample-format = s16le; default-sample-rate = 44100; alternate-sample-rate = 48000; default-sample-channels = 2; default-channel-map = front-left,front-right; default-fragments = 4default-fragment-size-msec = 15; enable-deferred-volume = yes; deferred-volume-safety-margin-usec = 8000; deferred-volume-extra-delay-usec = 0
Code:
Linux pinestbox10037 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
Code:
Package: rpicam-appsVersion: 1.4.3-1Priority: optionalSection: videoMaintainer: Serge Schneider <serge@raspberrypi.com>Installed-Size: 1,799 kBDepends: libavcodec59 (>= 7:5.0), libavdevice59 (>= 7:5.0), libavformat59 (>= 7:5.0), libavutil57 (>= 7:5.1), libboost-program-options1.74.0 (>= 1.74.0+ds1), libc6 (>= 2.34), libcamera0.2 (>= 0.2.0+rpt20240215), libdrm2 (>= 2.4.99), libepoxy0 (>= 1.0), libexif12 (>= 0.6.21-1~), libgcc-s1 (>= 3.0), libjpeg62-turbo (>= 1.3.1), libpng16-16 (>= 1.6.2-1), libqt5core5a (>= 5.0.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libstdc++6 (>= 12), libswresample4 (>= 7:5.1), libtiff6 (>= 4.5.0~rc1), libx11-6, python3:anyConflicts: rpicam-apps-liteBreaks: libcamera-apps (<< 1.4.1-1~)Replaces: libcamera-apps (<< 1.4.1-1~), rpicam-apps-liteHomepage: https://github.com/raspberrypi/rpicam-apps/Download-Size: 318 kBAPT-Manual-Installed: yesAPT-Sources: http://archive.raspberrypi.com/debian bookworm/main arm64 PackagesDescription: rpicam-apps Small suite of libcamera-based apps that aim to copy the functionality of the existing "raspicam" apps
Code:
Available cameras-----------------0 : imx708_wide_noir [4608x2592 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx708@1a) Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop] 2304x1296 [56.03 fps - (0, 0)/4608x2592 crop] 4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
- apt-get update && apt-get full-upgrade
- Clean install of Raspberry Pi OS Lite 64-Bit
- Update latest version of rpicam-apps
- Pipe output to /dev/null
Any help would be much appreciated
Statistics: Posted by jwainwright87 — Fri Apr 19, 2024 8:28 am — Replies 0 — Views 27