RTSP Webcam on IoT Edge, Inc.

RTSP Webcam on IoT Edge, 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


  • 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://

Special thanks

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