pouët.net

Go to bottom

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
Decode a new frame of video and upload it using glTexSubImage2D...
added on the 2009-03-01 14:15:50 by kusma kusma
...as long as you can live with releasing your demo sources under the GPL.
added on the 2009-03-01 15:36:56 by kusma kusma
Ha, who's gonna actually enforce GPL? Maybe they'll revenge you by coming to your house and recompile your kernel.
added on the 2009-03-01 15:50:14 by kurli kurli
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
added on the 2009-03-01 16:08:45 by red red
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 :)
added on the 2009-03-01 16:47:18 by superplek superplek
Quote:
Ha, who's gonna actually enforce GPL? Maybe they'll revenge you by coming to your house and recompile your kernel.
They do, among others
added on the 2009-03-01 17:06:53 by Joghurt Joghurt
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.
added on the 2009-03-01 18:07:09 by torus torus
'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)
added on the 2009-03-01 18:27:01 by superplek superplek
Niels: ekhm and how does your demo coding going Mr. nvidia hardware stealing piece of shit? (yes, thats a triple offence)
added on the 2009-03-01 18:44:27 by bonzaj bonzaj
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?
added on the 2009-03-01 18:49:50 by xernobyl xernobyl
niels: you ripped-off Nvidia for a "demokit"? :) lol, awzome
added on the 2009-03-01 18:55:33 by button button
Quote:
tusnelda branch

omg. nerds.
added on the 2009-03-01 19:02:18 by raer raer
Quote:
omg. nerds.

Hm. Yes, this is still pouet.net.
added on the 2009-03-01 19:09:15 by sol_hsa sol_hsa
no. I mean calling a branch tusnelda.
added on the 2009-03-01 19:24:06 by raer raer
It's not stealing when you get it for free!
added on the 2009-03-01 19:36:19 by okkie okkie
i prefer paying and downloading demos from PSN!
makes me wonder, did anyone ever try to do (part of) mpeg decompression in shaders?
added on the 2009-03-01 20:18:09 by skrebbel skrebbel
i'd like to see some of my nasty p0rn video files on a dodecadron
added on the 2009-03-01 20:26:18 by Tigrou Tigrou
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.
added on the 2009-03-01 20:30:02 by torus torus
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.
added on the 2009-03-02 00:46:10 by kb_ kb_
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...
added on the 2009-03-02 01:29:32 by torus torus
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.
added on the 2009-03-02 01:30:29 by torus torus

login

Go to top