Video in game

Started by
4 comments, last by Lacrimas 13 years, 4 months ago
Hi
How can I render high quality movies in game?
I use theora, but it's very slow
Can you give me some advices?
Advertisement
I have used theora and didn't found it slow. Have you compiled the library with all optimizaion flags set? How do you convert from YCbCr to RGB? How do you display a frame? Have you done some profiling?
To convert from YCbCr to RGB i use ingeter transformations and some table precalculates. So I think that problem is not here.
What kind of optimizaion flags do you mean?
If you want YCbCr to RGB conversion to be really efficient the best option is to do it in a pixel shader.

However before doing that I'd suggest using a profiler to work out which parts of your code are going too slowly.
Quote:Original post by Lacrimas
To convert from YCbCr to RGB i use ingeter transformations and some table precalculates. So I think that problem is not here.
What kind of optimizaion flags do you mean?


You need to do some profiling. I did the color conversation in shader not wasting any cpu cycles. You still have not answered the other questions.
The flags depend on the compiler you are using. See the documentations.
I doubt, that profiling and theora optimization can give me cardinal changes...
And I can't use pixel shaders for this...
Perhaps You know some paying libs, that can help me?)
Do not propose bink)

This topic is closed to new replies.

Advertisement