IP cameras and DVRs
Video from IP cameras
Dynamic Images are streaming video or snapshots downloaded from a resource on the Internet or local network. The resource can be a DVR, IP camera, video recorder or server.
Supported video codecs:
- JPEG / MJPEG - streaming video and frame-by-frame data from an IP camera or recorder; frames (snapshots) are *.jpg or *.png images
- H.264 / MPEG-4 - highly compressed video
A direct link to the image or video stream is required, without interface elements, ActiveX components and so on.
Where to find a direct link to an IP camera stream:
Add a link to the iRidi project:
GALLERY >
Project Gallery > Dynamic Images >
Add Dynamic Image
- add a link to an IP camera or recorder stream to the project.
Example dynamic image links:
http:// root:root@ 192.168.0.100 :80 /source/video.mjpg
rtsp:// root:root@ mydomain.com :554 /mpeg4/media.amp
| camera access username:password |
| address of the video source resource |
| connection port for the source |
| link to the data stream |
Configure the link in the project:
- URI - link to the video stream (or stream of frames). The camera username, password and access port can be entered in the fields below
- Port - for JPEG/MJPEG, the default port is 80; for MPEG-4/H.264, it is 554
- User / Password - username and password for accessing the camera video stream
- Refresh (ms) - reconnection interval for the video source
-
- Refresh: 0 (ms) - for MJPEG/H.264/MPEG-4 streaming video.
- Refresh: 0 (ms) - for MJPEG/H.264/MPEG-4 streaming video.
-
- Refresh: 1000...n (ms) - for frame-by-frame JPEG transmission
- Demuxer - automatic or manual selection of the FFMPEG stream type when it cannot be detected automatically. Sometimes used with Mobotix
- Probe Size : 50000 (KB) - size of the data buffer, in KB, that the application downloads before starting video playback. If left at 0, the default is 5 MB. This can be reduced for low-resolution cameras or slow connections, but values below 20000 KB are not recommended
- Param - field for specifying the RTSP transport type. Specify
-
**rtsp_transport=tcp;**if the RTSP stream from the IP camera is downloaded over the Internet or its quality is unsatisfactory
-
rtsp_transport=udp;or an empty field enables downloading the RTSP stream over UDP on the local network
- Scale Width / Scale Height - frame width / height for scaling. If the fields are left empty, the video is displayed at its original resolution.
- Audio - determines whether to play the audio stream from an mxpeg camera, if available
Use Test In Browser to check a JPEG/MJPEG link: the camera should appear in the browser without controls, borders or other software wrappers.
Link the camera to a graphic item:
Drag the dynamic image from the project gallery onto the item that should display the camera stream. You can then edit the link by double-clicking the item to which it is linked.

To select how the IP camera stream is scaled on the graphic item, open the Stretch & Filtration section and select the scaling method for Image:
- None - do not scale the IP camera stream
- Proportional - scale while preserving the aspect ratio
- Full Size - scale to the item size without preserving the aspect ratio
Scaling images in iRidi places a heavy load on the visualization device. Try to set the desired resolution directly in the IP camera settings.
The number of visible cameras in your project must not exceed 4-5 for stable operation of the iRidi project. Visible cameras include all cameras on currently open project pages and popups. The higher the camera resolution and the fewer resources the control panel has, the fewer cameras can be displayed.
Exceeding the recommended number of cameras can cause problems throughout the project.
A script can link only one dynamic image to a graphic item. It therefore cannot assign one image to State 1 and another to State 2 of the item.
Weather widgets
A weather widget is an image at a static URL that updates at a specified interval and is available over HTTP. Various websites provide widget code, for example:
The service provides code for embedding on a website. Only the link to the png or jpg image is needed; configure it in the same way as an IP camera link in Gallery > Project Gallery > Dynamic Images:
Example weather widget on the website:
Example weather widget link in iRidi:

- URI - paste the entire image link, checked in a browser, into the URI field of the camera settings.
- Refresh: 1000...n (ms) - image refresh interval; do not specify less than 1000 ms
http:// info.weather.yandex.net /moscow/3_white.ru.png
| address of the video source resource |
| link to the weather widget image |
Use Test In Browser to test the completed link.
Drag the image onto the item. For a clear display, the item size must match the widget resolution.
Edit the link by double-clicking the item to which it is linked.
PTZ control
PTZ control is control of an IP camera or video recorder over HTTP. If your camera supports PTZ commands, you can control it: change its position if it has a pan mechanism, change the focus point, set recording parameters and more.
PTZ commands must be sent using the AV & Custom Systems driver (HTTP). These are usually GET requests that can be sent through a browser. Refer to the REST API of your camera or recorder for a list of PTZ commands, and use this list according to the instructions for AV & Custom Systems (HTTP).
Video from control panel cameras
If i3 pro runs on an iOS, Windows or Android device with a front camera (or a laptop with a webcam), you can display video from that camera in the iRidi project.
This is typically used with SIP video to display the stream transmitted over SIP to another party.
To display video from the control panel's main or front camera, link the camera URL to a graphic item and start receiving the stream. Configure this in the script editor (JS):
IR.AddListener(IR.EVENT_START,0,function()
{
// link the camera image to display Item
IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Image = "ir_camera://";
});
function CameraStart ()
{
// start the camera record and flip it into vertical position (if started on iPad)
IR.Camera(IR.CAMERA_RECORD, IR.CAMERA_FRONT, IR.CAMERA_RESOLUTION_MEDIUM);
IR.Camera(IR.CAMERA_FLIP_VERTICAL, 1);
}
function CameraStop ()
{
// stop the camera record
IR.Camera(IR.CAMERA_STOP);
}
You can start and stop video display by calling CameraStart and CameraStop using the ScriptCall command:

You can also call the functions on an event in scripts:
IR.AddListener(IR.EVENT_APP_ENTER_FOREGROUND, 0, function()
{
CameraStart (); // start video when iRidium in foreground
});
IR.AddListener(IR.EVENT_APP_ENTER_BACKGROUND, 0, function()
{
CameraStop (); // stop video when iRidium in background
});
- Video settings (quality, image rotation and so on) are configured when the video stream is created using
[IR.Camera()](/SWDL/dev-iridi/Video_API#ircamera), described in detail in the Reference for JavaScript.
SIP video
During a SIP video call, you must display the video stream sent by the connected party.
The SIP driver automatically generates the stream when establishing a video call. To display it, link it to the graphic item that will show the video. Configure the link in the script editor (JS):
IR.AddListener(IR.EVENT_START,0,function()
{
// display the SIP video
IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Image = "sip_image://";
});