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

Graphics, sound and multimedia • Re: Pi 5 + Camera for streaming

$
0
0
Hi.

New to Pi and wondering if anyone has used Pi 5 to stream.
We essentially need to figure out a way to connect some decent 1080 camera to a Pi 5 to make it work as a standalone unit (camera) on an event management platform. Minimum 720 and hopefully 1080.

As usual, drivers seem to be the most difficult part of the equation.

Any ideas?
Thx.
Hallo !

My way to stream with audio !!!

working on rpi 3b 4 !! rpi 5 not tested !

#!/bin/bash
rpicam-vid -b 1000000 --autofocus-mode continuous --denoise cdn_off --brightness 0.1 --contrast 1.0 --sharpness 1.0 --level 4.2 --framerate 25 --width 1280 --height 720 -t 0 -n --inline -o - | \
ffmpeg -fflags +nobuffer+genpts -flags low_delay -hwaccel drm -hwaccel_output_format drm_prime \
-hide_banner -f alsa -i plughw:CARD=Device,DEV=0 -r 25 -i - -metadata title='DEVIL' -c:v copy -c:a libopus -application lowdelay -b:a 64k -ar 48000 -f s16le -fpsmax 25 -threads 4 \
-f rtsp -rtsp_transport tcp rtsp://localhost:8554/mystream

aplay -L show your audio device

without audio


#!/bin/bash
rpicam-vid -b 1000000 --autofocus-mode continuous --denoise cdn_off --brightness 0.1 --contrast 1.0 --sharpness 1.0 --level 4.2 --framerate 25 --width 1280 --height 720 -t 0 -n --inline -o - | \
ffmpeg -fflags +nobuffer+genpts -flags low_delay -hwaccel drm -hwaccel_output_format drm_prime \
-hide_banner -r 25 -i - -metadata title='DEVIL' -c:v copy -fpsmax 25 -threads 4 \
-f rtsp -rtsp_transport tcp rtsp://localhost:8554/mystream


mpv rtsp://ip:8554/mystream

you need also

https://github.com/aler9/mediamtx/





greetings from vienna

Statistics: Posted by mediauser — Thu Apr 11, 2024 5:33 am



Viewing all articles
Browse latest Browse all 4883

Trending Articles