Is it possible that the output of the From Multimedia File block be the input of the Entity Generator Block?

1 回表示 (過去 30 日間)
I am trying to build a video streaming model using simevents. I need the video frames or segments to phyiscally located on entities and be transported to a video viewer. Is it possible to connect the From Multimedia File block to be connected to the Entity Generator block. Can entities be physical frames?
I tried connecting the block together but I got this error.
Invalid connection between message and signal ports. 'Output Port 1' of 'videostreaming/Entity Server' is not compatible with 'Input Port 1' of 'videostreaming/Video Viewer'.

回答 (1 件)

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2022 年 12 月 9 日
I am not familiar with video streaming at all, but I think you need to know that entities carry information via attributes. You can send the output of the multimedia block to a Simulink Function block, and read it from the Generate event action and assign the frame information to an attribute. In case your frame rate is higher than the package intergeneration time, you need to buffer frames with an appropriate technique, get the whole buffer when the entity is generated, and clean the buffer as soon as its information is read.

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by