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'.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!