8
7

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 Pi3にmjpg-streamerを入れる

Last updated at Posted at 2019-04-16

#はじめに
書きつくされている内容だと思うが自分用に書き残す.
#mjpg-streamerとは
mjpg-streamerはカメラの映像をストリーミング配信するために使う.今回はローカル環境での設定を紹介する.
#環境

  • Raspberry Pi3 model B
  • OS : raspbian 9.6

#インストール

$ cd ~
$ sudo apt-get install -y cmake libv4l-dev libjpeg-dev imagemagick
$ git clone https://github.com/jacksonliam/mjpg-streamer.git
$ cd mjpg-streamer/mjpg-streamer-experimental
$ sudo make
$ sudo make install
$ sudo cp -r www /var/www

#実行
適当にスクリプトを組んで実行する.640x480のところで解像度を指定する.

run.sh
sudo ./mjpg_streamer -i "./input_uvc.so -f 10 -r 640x480 -d /dev/video0 -y -n" -o "./output_http.so -w ./www -p 8080 -c admin:password"
sudo bash run.sh

#最後に
640×480の画質でfpsはおよそ10くらいだった.簡単なのが何よりもありがたい.
#参考
RasPi:MJPG-streamer動画配信で遊んでみた♬

8
7
1

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
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?