Jump to content
  • Advertisement
Sign in to follow this  
ZealGamedev

Streaming video to my app...

This topic is 2492 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to figure out how to stream a video file (avi, wmv, ect...) into my app. I want to be able to manipulate each frame on a individual basis, send them through some cg shaders, then save the finished product to a output video (think windows movie maker). I am using OGRE for my rendering engine, and there are a couple video plugins, but none of them are being actively maintained (they are quite old). So I was wondering if you fine people might have some suggestions for me?

Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
My experience with video manipulation is limited.
Are you targeting windows? Or a specific OS?

Share this post


Link to post
Share on other sites
Multiplatform would be nice (at least mac and windows), but I am content with just starting on windows for now. You would think there would be a ton of libraries that let you pull video into an application (how complex can it be?). I just need to stream a video file one frame at a time, convert each frame to a directx/opengl texture, run my shader on it, then write it back out to a video file. But I am having trouble finding projects that will allow me to do all that...

Share this post


Link to post
Share on other sites

You would think there would be a ton of libraries that let you pull video into an application

There are quite a few.


(how complex can it be?).

Very complex, actually. Videos come in all sorts of pixel formats, container formats, video codecs, and audio codecs.


I just need to stream a video file one frame at a time, convert each frame to a directx/opengl texture, run my shader on it, then write it back out to a video file. But I am having trouble finding projects that will allow me to do all that...

You could use FFmpeg do to this. It's LGPL and cross platform. It's got a bit of a learning curve, to be honest, but you could just write a wrapper around it and use your simplified wrapper. I wrote a blog post once about using FFmpeg to decode video in a Visual Studio 2010 project. I should probably write a couple follow up posts going into more detail and a post about how to encode video too. Anyway, check it out and let me know if there's any questions you've got that I might be able to help you with.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!