1
2

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 5 years have passed since last update.

5分でラズパイにつけたカメラでストリーミング映像を見れるようにする

Last updated at Posted at 2018-06-11

ラズパイ起動

コンソール起動

IPの確認

ifconfig

一応最新にアップデートする

sudo aptitude update
sudo aptitude upgrade

パッケージインストール

sudo aptitude install libv4l-dev libjpeg8-dev subversion imagemagick

mjpg-streamerをリポジトリからcloneしてきます

svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer

make

cd mjpg_streamer
make USE_LIBV4L2=true clean all

おまじない

sudo modprobe bcm2835-v4l2

mjpg-streamerを起動させます

./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -r 640x480 -f 60 -y -n" -o "./output_http.so -p 8081 -w ./www -c test:test"

ブラウザで確認

http://【確認したIP】:8081

に接続すると、認証ポップアップがでますので、id:test、パスワード:testと入れてOKボタンをクリックすると画面が表示されます。
streamタブを開くとカメラでストリーム映像が見れます。

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?