Add the ability to get the video frame buffer as a string type to set as a texture on the node via the gui.new_texture function
Closed this issue · 1 comments
Fossean1 commented
Add the ability to get the video frame buffer as a string type to set as a texture on the node via the gui.new_texture function
britzl commented
There is actually no need for an extra function. When you have the video frame buffer you can get the bytes from it:
local videoframe = mpeg.get_frame(self.video)
if videoframe then
local bytes = buffer.get_bytes(videoframe, "rgb")
-- use bytes with gui.new_texture() and gui. gui.set_texture_data()
end