sebastian.vesenmayer Posted February 2, 2022 Share Posted February 2, 2022 We want to display a video stream over network with rtsp/rtp protocol onto a material. Is it possible to achieve this with Unigine to use a dynamic video stream as a texture? And when yes how? Thanks Link to comment
silent Posted February 2, 2022 Share Posted February 2, 2022 Hi Sebastian, That's definitely possible. The main culprit here is the performance of copying CPU image to GPU texture. Here's the very similar topics with some source code examples, but not directly related to how the read data from RTSP: https://developer.unigine.com/forum/topic/7610-asynchronous-copy-of-uniginetexture-in-a-unigineimage-pbo/ https://developer.unigine.com/forum/topic/7612-opencv-slow-frame-reading-part-2/ So, basically you need to convert recived from the network protocol data into the pixels and map it to texture. Hope that helps a bit :) Thanks! 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts