yhsgw

yhsgw

Raspberry Pi Zero 2 W でのビデオストリーミング

Raspberry Pi Zero 2 Wのビデオストリーミング設定メモ

libcamera-vid単体でのtcpストリーミングは遅延が大きすぎて使いにくかった。 VLCを使ってRTSPでストリーミングも試したがあまり変わらない。 速い動きには対応できていない。 風景の定点カメラくらいには使えそう。

Raspberry Pi4だとどうなるかは、後日試す。

RTSPでのストリーミングコマンド

libcamera-vid -t 0 \
              --inline \
              -o - \
              --level 4.2 \
              --denoise cdn_off \
              --framerate 60 \
              --width 320 \
              --height 240 -n \
| cvlc stream:///dev/stdin \
       --sout='#rtp{sdp=rtsp://:8554/stream1}' \
       --sout-rtsp-user="ユーザーID" \
       --sout-rtsp-pwd="パスワード" \
       :demux=h264 \
       --preferred-resolution 240

VLCの接続設定

rtsp://{ユーザーID}:{パスワード}@{ストリーミングサーバーのIPアドレス}:8554/stream1

libcamera-vidの参考資料

← Back to home