Jump to content


Can I have short movie clip in my openGL?


  • You cannot reply to this topic
12 replies to this topic

#1 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 21 April 2006 - 04:24 AM

Hi all, I would like to have a short movie clip (create using max application) in my openGL, can anyone tell me how to do that?
A lot of thanks!!!

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4979 posts
  • LocationBellevue, WA

Posted 21 April 2006 - 04:31 AM

First, you'll need to render your movie clip to a video file format, for example AVI. Then you use Google to find articles about how to play AVI files with OpenGL. :)
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 21 April 2006 - 05:30 AM

Thanks you guy...:worthy:

#4 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 24 April 2006 - 12:04 PM

Hie...I need help...
I already found the sample program that can play AVI file in openGL, but I failed to apply it in my program...because that sample program is purposely do with playing AVI file...so I can't get to apply in my own program...
Do anyone can plsss help me ? Thanks you all...

#5 kennyurge

    Member

  • Members
  • PipPip
  • 30 posts

Posted 24 April 2006 - 12:07 PM

chingching said:

Hie...I need help...
I already found the sample program that can play AVI file in openGL, but I failed to apply it in my program...because that sample program is purposely do with playing AVI file...so I can't get to apply in my own program...
Do anyone can plsss help me ? Thanks you all...

just convert your movie clips to avi format then will be ok right?
I don't understand what you mean.

#6 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 24 April 2006 - 01:22 PM

Emm....I mean that I got found sample program that play AVI file in openGL. But I failed to apply the functions of that sample program into my own program...so anyone can plsss lend me a hand....as I never do with this before...thanks a lot!!

#7 kennyurge

    Member

  • Members
  • PipPip
  • 30 posts

Posted 24 April 2006 - 01:34 PM

chingching said:

Emm....I mean that I got found sample program that play AVI file in openGL. But I failed to apply the functions of that sample program into my own program...so anyone can plsss lend me a hand....as I never do with this before...thanks a lot!!

which sample program you got?
do you include all libraries needed?
any errors?
post out the sample program so that we can help..:yes:

#8 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 24 April 2006 - 03:37 PM

chingching said:

Emm....I mean that I got found sample program that play AVI file in openGL. But I failed to apply the functions of that sample program into my own program...so anyone can plsss lend me a hand....as I never do with this before...thanks a lot!!

it sounds like you tried to copy paste the functions into your own program - that probably won't work. Read and understand the code, then reimplement it yourself, with the old code as a reference. That way it works, you know the code, and you understand how it works.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.

#9 mysticman

    Member

  • Members
  • PipPip
  • 95 posts

Posted 24 April 2006 - 08:37 PM

http://nehe.gamedev....n.asp?lesson=35

#10 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 25 April 2006 - 03:49 AM

That's the tutorial I found--nehe lesson 35.
Well, I already tried to understand it....but maybe still get stuck with that...
When I compiled...there was no error...and then make me blur that where was the problem...
:wacko: :sad:
Plsss help...Thanks...:worthy:

#11 kariem2k

    Valued Member

  • Members
  • PipPipPip
  • 207 posts

Posted 25 April 2006 - 09:13 AM

Does the example exe runs fine?. if not it may be a codec problem.
If yes there is something wrong in your code,the avi loading and playing part is until CloseAVI() function the rest you must understand well because it will be different than what will you do in your application.

#12 juhnu

    Valued Member

  • Members
  • PipPipPip
  • 292 posts

Posted 25 April 2006 - 11:34 AM

A few months ago I tried using AVIFile to play some video, but I was unable to get it working with compressed videos. Seems to work only with uncompressed ones. I'm not sure if this the intended behaviour or not as the documentation about AVIStreamOpenFromFile() is not very helpful. I didn't have much time to investigate it further, but I suppose the Nehe's tutorial has exactly the same problem.

#13 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 25 April 2006 - 07:15 PM

AVIFile works perfectly with compressed files. I used it numerous of times with success.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users