← Back to Articles

How to use a video as a camera in Xeoma?

As a rule, users need a CCTV camera to work with Xeoma. However, sometimes customers want to test the program and its intelligent functions for some specific tasks. For example, to count visitors in a store where cameras are not yet installed. In this case you may not have a proper camera for that, but you could use an existing video file in Xeoma instead. In this article we’ve collected the most convenient and absolutely free ways to replace CCTV cameras.

Let’s look into this question in detail. Xeoma is built on so-called chains consisting of modules which users can add/remove according to their needs. The main modules without which the program will not work correctly are source modules. For example, “Universal Camera”, “Screen Capture”, “File Reading” and others. They are responsible for delivering the image from cameras to the program. While everything is more or less clear with the “Universal Camera” module, which is used to add cameras to the program, the modules that receive data from other sources require a more detailed review.

So how to add your video to the program? There are three basic and easy ways to do this.

1) The “File Reading” module;
2) The “Screen Capture” module;
3) VLC broadcasting.
Let’s have a look at each of them.

The “File Reading” module

You can use it to select MJPEG video files as a source. To connect this module, click on the “+” on the bottom panel, select “Add new camera manually”. The window with the settings of the module “Universal Camera” will open, remove the module by clicking on the trash can in the lower left corner. In the list of modules, find “File Reading” and add it to the chain by dragging it with your mouse.

Chain with the File Reading module

Go to the module settings by clicking on it. In the window that opens, specify the full path to the video file you want to select as the source. The image should appear. If you want to change the source name, you can do it in the “Preview and Archive module settings.

Specify the path to the video file

Please note that video files must be in MJPEG format, you can find instructions on how to convert files to MJPEG here.

The “Screen Capture” module

If the file you want to add to Xeoma is recorded in a different format or broadcasted from a third-party program, you can use the “Screen Capture” module. It allows you to record everything happening on your computer screen, including video playback. With this module you can also use all filters and intelligence video analytics. All you have to do is to connect the module to the chain and run the necessary video for analysing in any player. Xeoma will capture and broadcast it.

Chain with the Screen Capture module

VLC broadcasting

To configure the last method you need to have a VLC player installed on your computer. Launch VLC player, open the “Media” menu and select “Stream”.

Launching VLC broadcasting

In the window that opens, click on “Add” and select the file you want to upload to Xeoma. Then click “Stream”.

Adding video files

You will see the path to the source you selected, click “Next”.

Path to the video

Next in the “Destination Setup” section select the type of stream you need, we recommend HTTP or RTSP. Click “Add” and after “Next”.

Choosing the type of stream

In the transcoding options you can leave the default settings. Click “Next” and then “Stream”.

Transcoding options

The player will open and your file will start playing. We recommend enabling automatic video repeat, as the stream will be sent to Xeoma only when video is on.
Then start Xeoma and add a new camera manually (“+” -> “Add new camera manually”). In the stream options for previewing enter the stream URL. If you selected HTTP, the link will look like this: http: // ip address of your device on which the VLC broadcast is conducted: 8080 /, where 8080 is the default port. Wait a while for the video to upload, after which it should appear in Xeoma.

URL of the stream

Please note that such a broadcast can significantly increase the load on the processor, therefore, if your computer is not powerful enough, we recommend starting the broadcast from another device located in the local network, or using a video of a lower resolution.

July, 28 2021