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.

電源ONか再起動時、RTSPストリーミングを自動で実行開始する方法

Posted at

はじめに

 v4l2rtspserverを電源ONか再起動時に自動で実行開始するように設定する方法を記します。

使用した開発環境&実行環境

  • Raspberry Pi zero W
  • Raspberry Pi Imager v.1.6.2 で標準的なOSを64GBのSDカードに書き込んだ
  • HDMI入力→CSI2変換基板
  • v4l2rtspserverはmake installで入っている

サービスファイルのコピー

$ sudo cp /usr/lib/systemd/system/v4l2rtspserver.service /etc/systemd/system

※必要ならviなどテキストエディタでv4l2rtspserver.serviceファイルを編集しておく。

サービスの登録

$ sudo systemctl daemon-reload
$ sudo systemctl enable v4l2rtspserver

再起動

$ sudo reboot

これでストリーミング再生可能な状態。
ポート番号などを明示的に指定したい場合は、.serviceファイルをテキストエディタで修正後、登録/再起動実行。

参考URL

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?