Display local video file (Ignition Gateway) - Perspective video component

Hello,

In one of our video processing applications, we wanted to display the video files on ignitions perspective video component. There are options to specify the URL & Local web resources path.

The video file will be fetched from NAS storage by Ignition gateway. Then we wanted to display this processed video on the Ignition perspective screen.

Has any of you encountered a similar scenario? Can you help us?

Thanks & Regards,
Saravanan.

In order for a Perspective session to display the video, it must be served up via HTTP by a webserver somewhere. It’s possible your NAS has this built-in, but if the NAS is only acting as a filesystem, then you need a webserver to serve those files up.

Ignition can do this via the WebDev module.

You can also serve the video up with VLC media player. Your VLC command can play the video start to finish or in a loop. If you play start to finish, you will need to end the task other wise it will just create another instance of VLC and consume more memory.
This is an example of the .bat file I used to stream an .AVI video file on the gateway to port 9911. You could pass parameters to it when executing from ignition, if say you want to select different videos, or stream on different ports.

taskkill /f /im "vlc.exe"
start C:\PROGRA~1\VideoLAN\VLC\vlc.exe -vvv -Idummy C:\Test.avi --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=50,width=1920,height=1080}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9911/}

Hello @josborn ,

Thank you for your suggestion. I will try this out.

Before that, whether this BAT file will host the video from http url? If so which URL I shall bind it on Perspective video component.

Sorry, I am not able to completely understand the process. Can you explain :slight_smile:

Hello @Carl.Gould ,

Thank you for your response, I will see if our NAS has this capability. Also we don’t have the web dev license :slight_smile:

Is it possible without webdev module?

The example i posted, assuming you run it on the gateway, will stream to http://127.0.0.1:9911, you can use the gateway’s ip address or DSN.

The process will probably be slightly different based on what exactly you are trying to do. You can execute the .bat file on a button click, which will start VLC and begin playing your video. You can have your video source statically set to http://127.0.0.1:9911 or you could set it dynamically if for example there are multiple videos to choose from that you want to play in the video player.

1 Like

Hello @josborn ,

Thank you :slight_smile:

Will explore and let you know.