1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspberry Pi 4とUVCでUV4Lを用いLAN内ビデオストリーミング

Last updated at Posted at 2021-05-11

前提条件

参考にしたQiita

インストールのためのキーを取得し設定する。

$ curl https://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -

ファイル /etc/apt/sources.list をテキストエディタ(sudo vi /etc/apt/sources.list)などで以下の行を追加

deb https://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main

UV4Lをインストール

$ sudo apt-get install uv4l uv4l-webrtc uv4l-uvc uv4l-xscreen uv4l-dummy

USBカメラ接続確認

$ lsusb

自分が使うUVCカメラのID xxxx:xxxx をメモ。

uv4l起動

$ uv4l --driver uvc --device-id 1dd8:0018 --config-file=/etc/uv4l/uv4l-uvc.conf

WEBブラウザからアクセス

http://<ラズベリーパイのIPアドレス>:8090/stream/webrtc

にアクセスし、下のほうの Call ボタンをクリックするとストリーミング再生開始。

uv4lの終了方法

$ pkill uv4l
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?