How to display locally stored videos in Ignition perspective

Hello team,

We are trying to display video in Ignition perspective using Inline Frame or Video Player component, But both of these components required URL to display video.

I am also having webdev module installed and I can create File resource ( uploading video directly) and Python resource ( Uploading video in DB and querying using Named query) to create a URL and display it in Video Player and Inline frame component and it seems to be working fine.

Storing in database also will not workout as several videos of larger size 300 to 400mb need to be stored in the DB.

From my side I can upload videos under the Webdev module by creating New file resource in the Ignition Designer but this also will not workout customers want to upload videos by themself from the perspective client

Is there any other way i can use to achieve my desired output, Customer will be uploading videos from the client directly (i.e Displaying videos stored locally in any component without URL in Perspective) or any other solutions will be highly appreciated.

Thanks for the support

Best regards,
Thilagavathi

Use a segmenter to break all videos down into a couple, or maybe a few, seconds at a time. Segmenters yield a "video" file index that is really just a text file with URL references to the short chunks to be spliced back together while playing. Put the chunks in your filesystem or DB (they'll likely be reasonably sized) along with the index file. Be sure to reprocess the index file so the URLs point at the new URLs in your server instead of the bare files from segmenting. In your UI, point only at the index file.

Web display is really responsive with index files, as the player can skip around at will, and the Ignition gateway doesn't need to cache huge files (that's a real problem).

You should teach the user to perform the segmenting before upload, as it is difficult to handle large file uploads in Ignition (Perspective, that is. Vision is more capable for such things, and could run the segmenter as an external process automatically).

I recommend FFmpeg for segmenting videos, FWIW.

2 Likes

Expect a first party solution for file management via Ignition in 8.3. In the meantime, Phil's advice, per usual, is the best :slight_smile:

3 Likes