FrontPage User Control Panel Browse Our Members View Calendar Register Today!
Get New Posts! View Faq?

Not A Member Yet? Register today and become part of the community.

Go Back   GDI Forums > Game Development > Graphics Programming

Reply
 
Thread Tools Display Modes
Old 04-25-2007, 06:00 AM   #1
Specchum
Super Moderator
 
Specchum's Avatar
 
Join Date: Apr 2007
Location: Mumbai
Posts: 91
Default Video playback with openGL/SDL

Ok, anyone know of a simple and compact library I could use to play videos (AVI or MPEG format) with SDL or OpenGL?

I could go the DirectShow way and use the DS library to play back a video but I was wondering if anyone knows of a better alternative?
Status: Offline
 
Reply With Quote
Old 04-25-2007, 06:16 AM   #2
KC_SkeletalMesh
Almost lives his life at this place..
 
KC_SkeletalMesh's Avatar
 
Join Date: Apr 2007
Location: Hyderabad
Posts: 90
Send a message via MSN to KC_SkeletalMesh Send a message via Yahoo to KC_SkeletalMesh Send a message via Skype™ to KC_SkeletalMesh
Default

Quote:
Originally Posted by Specchum View Post
Ok, anyone know of a simple and compact library I could use to play videos (AVI or MPEG format) with SDL or OpenGL?

I could go the DirectShow way and use the DS library to play back a video but I was wondering if anyone knows of a better alternative?
I had implemented an AVI video texture thingie in my first opengl engine.
Its pretty simple and straight forward. I managed to stream and render 4 separate avi files, convert and render as GL textures, all visible on 12 poly surfaces. Managed to get 40 FPS on an Athlon XP 2000+ CPU with a Geforce 4 Mx 400 video card.

You can also look at Quake3's ROQ video format. Its compression is better and decoding is faster.

A really fast commercial video texture lib is Bink's video texture library(Its called Granny). Its kinda industry standard. I am not sure if they have a free evaluation download of their middle ware.
Status: Offline
 
Reply With Quote
Old 04-25-2007, 06:25 AM   #3
Specchum
Super Moderator
 
Specchum's Avatar
 
Join Date: Apr 2007
Location: Mumbai
Posts: 91
Default

Quote:
Originally Posted by KC_SkeletalMesh View Post
I had implemented an AVI video texture thingie in my first opengl engine.
What did you use to decode the AVI? A custom AVI decoder or something like Video For Windows/DirectShow?

Quote:
You can also look at Quake3's ROQ video format. Its compression is better and decoding is faster.
Is it a closed proprietory format? Something I'd like to stay away from!

Quote:
A really fast commercial video texture lib is Bink's video texture library(Its called Granny).
Yep, but that's a bit overkill for my purpose.
Status: Offline
 
Reply With Quote
Old 05-14-2007, 08:18 AM   #4
rubberfly
Okie Dokie Activity member
 
rubberfly's Avatar
 
Join Date: Apr 2007
Posts: 26
Send a message via Yahoo to rubberfly
Smile

if you can use GPL softwares

http://libmpeg2.sourceforge.net/

might serve...
Status: Offline
 
Reply With Quote
Old 05-15-2007, 06:17 AM   #5
arca1n
Okie Dokie Activity member
 
Join Date: Apr 2007
Posts: 20
Thumbs up

Quote:
Originally Posted by Specchum View Post
What did you use to decode the AVI? A custom AVI decoder or something like Video For Windows/DirectShow?
I have used Video for windows library ... its pretty useful and easy to implement... Check out Nehe's Opengl sample on nehe.gamedev.net. its neatly done.
Quote:
Originally Posted by Specchum View Post
Is it a closed proprietory format? Something I'd like to stay away from!
Yes its closed, you cannot use the libavcodecs of ffmpeg as they have a shitload of problems compiling with Visual C++ on the contrary if you are looking for a windows independent implementation. go with ffmpeg its got all the codecs in the world you can imagine and its pretty fast too.
Status: Offline
 
Reply With Quote
Old 05-16-2007, 06:58 AM   #6
KC_SkeletalMesh
Almost lives his life at this place..
 
KC_SkeletalMesh's Avatar
 
Join Date: Apr 2007
Location: Hyderabad
Posts: 90
Send a message via MSN to KC_SkeletalMesh Send a message via Yahoo to KC_SkeletalMesh Send a message via Skype™ to KC_SkeletalMesh
Default

Quote:
Originally Posted by Specchum View Post

Quote:
You can also look at Quake3's ROQ video format. Its compression is better and decoding is faster.
Is it a closed proprietory format? Something I'd like to stay away from!
No idea. You can google up a bit I guess. Quake3 source code is Open now.
Status: Offline
 
Reply With Quote
Old 10-10-2008, 03:53 PM   #7
weiwei
Forums Noobie.
 
Join Date: Jun 2008
Posts: 9
Thumbs down Here was a change,

Here was a change, and wow gold here were claims which could not but operate! She might have disdained him in all the dignity of angry virtue, in the wow gold grounds of Sotherton, or the theatre at Mansfield Park; but he approached her now with rights that demanded different treatment. She must be courteous, and she must be compassionate. She must have a sensation of being honoured, and whether thinking of herself or her brother, she must have a strong wow gold feeling of gratitude. The effect of the whole was a manner so pitying and agitated, and words intermingled with her refusal so expressive of obligation and concern, that to a temper of vanity and hope like Crawford's, the truth, or at least the strength of her indifference, might well be questionable; and he wow power leveling was not so irrational as Fanny considered him, in the professions of persevering, assiduous, and not desponding attachment which closed the interview. weiwei1978123
Status: Offline
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.