Jump to content
  • Advertisement
Sign in to follow this  
ckdur

Help! Playing video in OpenGL

This topic is 3331 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

Hello all! (Excuse me for my English level) I'm new in this forum and I need help playing video in OpenGL. Well, in this moment, I use the Nehe's tutorial for playing AVIs videos, but some problems come while i'm playing video, as: - Cannot be compiled in linux - Finding the video codec for each video takes 150-500 milliseconds for initialize. - Consumes 1.2 KB in Ram memory each video, and I need 200 pre-charged videos! I can use pre-charged videos or play videos in progress while my game is executed. I try to use another libraries, but... - Using FFMPEG cannot solve link externals (I compiled the library shared in MinGW, including the .lib at project) for MSVC++ - I can't use SMPEG, because i can't find any version for MSVC++ So, anybody can help me whit this? I'm worried about not being able to make my program. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I tend to use OpenCV. Here's the basic code for loading and reading frames of video.



CvCapture* video = cvCaptureFromFile("video.avi");
...
IplImage* frame = cvQueryFrame(video);
...
cvReleaseCapture(&video);


Share this post


Link to post
Share on other sites
Well... I test OpenCV, but it's the same problem, OpenCV uses VFW implicitly. Finding the codec and showing each frame takes some time. OpenCV cannot controlate the video (just as Play, Pause, Goto, etc)

I'm now testing SMPEG (I found how to make the libs for MSCV++, and this is disponible for linux), but some problems are shown. My question is:

- Which codecs can I use for SMPEG?

Because the Bug is in 'smpeg.dll' file. Any ideas? Please?

Thanks!

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!