12
13

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.

ネットワークカメラ(RTSPで配信)の映像をFFmpegで録画する

Posted at

はじめに

この記事では、ffmpegでrtspで配信される映像をFFmpegを使って録画および確認するコマンドを紹介します。

環境

mac Mojave
ネットワークカメラ:Panasonic BB-SP104W
   ↓
image.png

コマンド

rtspで配信される映像をmp4形式で記録するコマンドです。

$ ffmpeg -i rtsp://admin:password@192.168.0.10:554/MediaInput/h264 -f mp4 out.mp4

rtspで配信される映像を確認するコマンドです。

$ ffplay -i rtsp://admin:password@192.168.0.10:554/MediaInput/h264

ffplayコマンドを実行すると以下のように映像を確認できます。

image.png

以上。

12
13
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
12
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?