Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Camera board • Re: Unable to find a suitable output format for (Raspberry Pi 5 + Pi Camera module 3)

$
0
0
Hi,

I have the same error using libcamera on Raspberry Pi 5 64 bit bullseye and camera module 3 to write to tcp.
Pi 5 with Bullseye?
No, the latest, running the RPi imager for Pi 5 (full install)

Code:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"NAME="Debian GNU/Linux"VERSION_ID="12"VERSION="12 (bookworm)"VERSION_CODENAME=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"
I was able to use the `--mode` option for the lower resolution at `--framerate 15`, which utilized around 19% CPU when it was running... That's tolerable. This is what worked, and I utilized that in the go2rtc config to stream rtsp to Frigate

Code:

rpicam-vid --camera 0 --mode 2304:1296 --framerate 15 --hdr --timeout 0 --nopreview --codec h264 --libav-video-codec h264 --libav-format h264 --inline -o -
I would like to get the native TCP output from the `rpicam-vid` command, but I keep getting a `Connection to tcp://0.0.0.0:8494 failed: Connection refused`, which must be my problem.

Code:

rpicam-vid --camera 0 --mode 2304:1296 --framerate 15 --hdr --timeout 0 --nopreview --codec h264 --libav-video-codec h264 --libav-format h264 --inline --listen -o tcp://0.0.0.0:8494


Full error for the command above to output on TCP:

Code:

[libx264 @ 0x55563f43a650] profile High, level 2.2, 4:2:0, 8-bitOutput #0, h264, to 'tcp://0.0.0.0:8494':  Stream #0:0: Video: h264, yuv420p(tv, smpte170m/smpte170m/bt709), 640x480, q=2-31, 15 fps, 15 tbr, 1000k tbn[tcp @ 0x7fff60014b50] Connection to tcp://0.0.0.0:8494 failed: Connection refusedterminate called after throwing an instance of 'std::runtime_error'  what():  libav: unable to open output mux for tcp://0.0.0.0:8494: Connection refusedAborted

I'll try to figure that out.

Statistics: Posted by glitteryio — Thu Jan 18, 2024 6:47 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles