Sign in to follow this  

Streaming video to my app...

This topic is 2121 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
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
[quote name='ZealGamedev' timestamp='1329936465' post='4915593']
You would think there would be a ton of libraries that let you pull video into an application
[/quote]
There are quite a few.

[quote name='ZealGamedev' timestamp='1329936465' post='4915593']
(how complex can it be?).
[/quote]
Very complex, actually. Videos come in all sorts of pixel formats, container formats, video codecs, and audio codecs.

[quote name='ZealGamedev' timestamp='1329936465' post='4915593']
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...
[/quote]
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 [url="http://mjbshaw.blogspot.com/2011/09/building-visual-studio-2010-project.html"]blog post[/url] 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

This topic is 2121 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this