LoginSignup
1
0

Ubuntu 22.04 で rtsp 映像をビュー(マルチビュー)

Posted at

「Ubuntu 22.04 で rtsp 映像をビュー(シングルビュー)」
https://qiita.com/nanbuwks/items/0a9c2c6cb8a5862ce2f5

ではいくつかの rtsp ビューアを試してみましたが、今回は マルチストリーミングビューアについて、restreamer と motionEye を試してみました。

環境

  • Ubuntu 20.04 LTS

restreamer

インストール

以下の記事の方法で行いました。

docker でインストールします。

なお、docker はこの作業でインストールしています。
「Ubuntu20.04 に Docker を導入する (Also Ubuntu 22.04)」
https://qiita.com/nanbuwks/items/0ba1d13b3cd27e5c6426

$ docker run -d --restart always \
     --name restreamer \
     -e "RS_USERNAME=admin" -e "RS_PASSWORD=datarhei" \
     -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db \
     datarhei/restreamer:latest
Browse to http://your-device-ip:8080

インストールしたあと、webブラウザで http://localhost:8080 にアクセスします。

image.png

Did you mean to go to the admin panel? を押すと以下の画面になります。REGISTER USERを押します。

image.png

画面を進めて

image.png

Network source を選んで
image.png

ページを進めて、rtsp サーバ情報を登録すると

image.png

image.png
image.png
image.png
image.png

映りました

image.png

遅延が10秒近くありますね

motionEye

以下のようにしてインストールします。

$ docker run --name="motioneye"     -p 8765:8765     --hostname="motioneye"     -v /etc/localtime:/etc/localtime:ro     -v /etc/motioneye:/etc/motioneye     -v /var/lib/motioneye:/var/lib/motioneye     --restart="always"     --detach=true     ccrisan/motioneye:master-amd64
2d8f95635342676b68ebd02ab1899ace31fc0af45181aacc46fbf99b8938e3a7

Webブラウザで、http://localhost:8765 にアクセスします。
ユーザー名は admin 、パスワードは空白 で「Login」を押します。
image.png

You have not configured any camera yet. Click have to add one...を押して

image.png

カメラの情報を登録します。

image.png

動きましたがものすごく遅延しています

image.png

しばらくして以下のようになってしまいました。

sendDataOverTCP: resending 898-byte send (blocking)
sendDataOverTCP: blocking send() failed (delivering -1 bytes out of 898); closing socket 27
sendRTPorRTCPPacketOverTCP: failed! (errno 11)

うーむ?

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