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

Graphics, sound and multimedia • rpicam-vid streaming with audio

$
0
0
Streaming with rpicam-vid to rtsp with audio sync



official with vlc not working for me

only install mediamtx from github i


aplay -L show the audio device

in my case --audio-device=plughw:CARD=UR22C,DEV=0


rpicam-vid -b 1000000 --autofocus-mode continuous --denoise cdn_off \
--codec libav --libav-format mpegts --brightness 0.1 --contrast 1.0 \
--sharpness 1.0 --profile high --level 4.2 --framerate 30 --width 1536 --height 864 \
--audio-device=plughw:0 --audio-bitrate=96kbps \
--audio-codec mp2 --audio-channels 1 --libav-audio 1 --audio-source alsa \
-t 0 -n --inline -o - | ffmpeg -fflags \
+genpts+nobuffer+igndts+discardcorrupt -flags low_delay \
-hwaccel drm -hwaccel_output_format drm_prime -i - -metadata title='LUCY' -codec copy \
-f rtsp -rtsp_transport tcp rtsp://localhost:8554/mystream


without audio


rpicam-vid -b 1000000 --autofocus-mode continuous --denoise cdn_off \
--codec libav --libav-format mpegts --brightness 0.1 --contrast 1.0 \
--sharpness 1.0 --profile high --level 4.2 --framerate 30 --width 1536 --height 864 \
-t 0 -n --inline -o - | ffmpeg -fflags \
+genpts+nobuffer+igndts+discardcorrupt -flags low_delay \
-hwaccel drm -hwaccel_output_format drm_prime -i - -metadata title='LUCY' -codec copy \
-f rtsp -rtsp_transport tcp rtsp://localhost:8554/mystream

nice day

Statistics: Posted by mediauser — Mon Jun 23, 2025 8:37 am — Replies 0 — Views 18



Viewing all articles
Browse latest Browse all 6977

Trending Articles