https://store-images.s-microsoft.com/image/apps.51514.d955ec73-280a-48a6-9f96-f0bf22dba4b4.3f52a479-4bc1-4523-b4ec-394497bf1eb8.39497491-1269-4676-a42e-741f207f9e53

RTSP Webcam on IoT Edge

motojin.com, Inc.

RTSP Webcam on IoT Edge

motojin.com, Inc.

Live Video from USB Camera to RTSP on IoT Edge

This module is developed from USB-to-RTSP sample and ms-iotkithol-jp to be able to run on IoT Edge.

The module runs as a IoT Edge container named RtspWebCam. While running the container image, one must map the USB camera on the host device to the container by using the following module createOptions parameters: PathOnHost=/dev/video0, PathInContainer=/dev/video0.

Before running the IoT Edge container image, the host device must have the USB camera installed properly and operating. On the host device, check that the following file exists: /dev/video0.

If there exist more than one USB camera installed on the host device, these devices will be named as /dev/video0, /dev/video1, etc.

This module can be used with the Azure cloud native application WeDX Flow to simplify module management.

Minimum hardware requirements: Linux x64, arm64 and arm32 OS, 1GB of RAM, 600Mb of storage

Features

  • The default stream port of the module is 8554
  • VIDEO_PIPELINE is not specified, the module will use the Desired properties. (videoPipeline)

Direct methods

  • Execute Shell script
    • ShellCommandExecute : {"command": "ls", "args": "-l"}

Environment variables

  • Not available

Desired properties

  • videoPipeline : "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw ! x264enc tune=zerolatency ! rtph264pay name=pay0"

AVA(Azure Video Analyzer) Integration

  • Pipeline Topology sample (RtspSource)
    • "url": "rtsp://{ModuleName}:8554/stream1"

Using VLC player to play the USB camera stream

  • Shell
    • vlc rtsp://127.0.0.1:8554/stream1

Special thanks

  • Yasuhiro Handa (LinkedIn) - IoT Technical Specialist GBB Microsoft Corporation
  • Hiroshi Ota (LinkedIn, Twitter) - Sr. IoT Technical Specialist GBB Microsoft Corporation

https://store-images.s-microsoft.com/image/apps.51216.d955ec73-280a-48a6-9f96-f0bf22dba4b4.3f52a479-4bc1-4523-b4ec-394497bf1eb8.066d75b8-b283-4597-a609-24ddad11ee8e
https://store-images.s-microsoft.com/image/apps.51216.d955ec73-280a-48a6-9f96-f0bf22dba4b4.3f52a479-4bc1-4523-b4ec-394497bf1eb8.066d75b8-b283-4597-a609-24ddad11ee8e
https://store-images.s-microsoft.com/image/apps.3493.d955ec73-280a-48a6-9f96-f0bf22dba4b4.3f52a479-4bc1-4523-b4ec-394497bf1eb8.6a150528-57ae-44d6-af8d-5c27dfd9a4c0