video files and opengl
category: general [glöplog]
Hi all,
I would like to use video sequences and some effects in my demo (video sequence will be background of effect). How could I display mentioned video sequences using opengl?
Kind regards
I would like to use video sequences and some effects in my demo (video sequence will be background of effect). How could I display mentioned video sequences using opengl?
Kind regards
Decode a new frame of video and upload it using glTexSubImage2D...
http://libmpeg2.sourceforge.net/ might be helpful
...as long as you can live with releasing your demo sources under the GPL.
Ha, who's gonna actually enforce GPL? Maybe they'll revenge you by coming to your house and recompile your kernel.
Check here for AVI files + OpenGL: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35
ffmpeg + SDL: http://www.dranger.com/ffmpeg/
ffmpeg + SDL: http://www.dranger.com/ffmpeg/
i wrote some little code that uses the flash activex to render a .swf file onto a texture - you could do the same to play video, but then you'd have little control about the exact playing position, but there should be ways. weird attempt, but still more convenient than vfw :P
Quote:
Ha, who's gonna actually enforce GPL? Maybe they'll revenge you by coming to your house and recompile your kernel.
thats an even better reply than i had in mind, presto :)
Quote:
They do, among othersHa, who's gonna actually enforce GPL? Maybe they'll revenge you by coming to your house and recompile your kernel.
If GPL is a problem use theora http://theora.org/
If you think the quality sucks to much, then get the tusnelda branch of the encoder from the svn and recompress your movie.
If you think the quality sucks to much, then get the tusnelda branch of the encoder from the svn and recompress your movie.
'they' can get fucked sideways
gpl nerds trying to look like they have some kind of authority
SUBVERSION-USING IDIOTS
(yes, thats a double offense)
gpl nerds trying to look like they have some kind of authority
SUBVERSION-USING IDIOTS
(yes, thats a double offense)
Niels: ekhm and how does your demo coding going Mr. nvidia hardware stealing piece of shit? (yes, thats a triple offence)
What about creating a pixel buffer, mapping it, and decoding the video to there? I never really tried it. But theoritically if it works it should be faster than sub texture, no?
niels: you ripped-off Nvidia for a "demokit"? :) lol, awzome
Quote:
tusnelda branch
omg. nerds.
Quote:
omg. nerds.
Hm. Yes, this is still pouet.net.
no. I mean calling a branch tusnelda.
It's not stealing when you get it for free!
i prefer paying and downloading demos from PSN!
makes me wonder, did anyone ever try to do (part of) mpeg decompression in shaders?
i'd like to see some of my nasty p0rn video files on a dodecadron
I did y'uv to rgb conversion in a shader a couple of month ago. Worked pretty good. For the other (reconstruction) could benefit a lot, but unfortunately it takes to long to get the data onto the graphic card, so it does not pay off.
wait, isn't the whole POINT of stealing that you get it for free? ;)
And btw, YUV->RGB conversion on GPU is quite standard for almost 10 years now (even old non-shader GPUs could easily do that), and nowadays ppl do parts of the motion compensation in the shader. The IDCT etc stuff is mostly CPU or dedicated GPU hardware tho, and bitstream decoding is CPU only. Yet.
And btw, YUV->RGB conversion on GPU is quite standard for almost 10 years now (even old non-shader GPUs could easily do that), and nowadays ppl do parts of the motion compensation in the shader. The IDCT etc stuff is mostly CPU or dedicated GPU hardware tho, and bitstream decoding is CPU only. Yet.
kb, how do you get the output of the IDCT into the video ram for processing? Just collecting the blocks in a huge texture and uploading them was to slow in my case...
btw - I just did the yuv->rgb conversion because we had a chat about that a year ago or so and I wanted to try it myself.