Is there a way to render a video from file (avi, mp4, etc...) to a texture in a directx11 environment?
If so, how?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
Yes, first you need to read the container (avi, mp4 etc) and then decodee it's contents that can be h264 for example) and then you'll get an rgb output that can be copied over into a texture like you normally would do, if the video is not HD you could do this every frame to play it back.
You can use libffmpeg to read the video, but it's a little tricky i recommend you if the video is not too big to convert it into raw RGB data that you can read easily in your app.