You can now stream video using sdl 2.0 renderers ! See the new waave’s
streaming objects in the waave reference. A video player using
SDL_Renderer can be found in the test/ folder (waaveplayer20.c).
Very cool! :)On Wed, Jul 18, 2012 at 2:44 PM, Prunk Dump wrote:
You can now stream video using sdl 2.0 renderers ! See the new waave’s
streaming objects in the waave reference. A video player using
SDL_Renderer can be found in the test/ folder (waaveplayer20.c).
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
You can now stream video using sdl 2.0 renderers ! See the new waave’s
streaming objects in the waave reference. A video player using
SDL_Renderer can be found in the test/ folder (waaveplayer20.c).
I’ve looked at the example, and I’ve not seen the initialization of a
streaming texture, I presume that with SDL 2.0 you use a custom opengl
shader to do the render? Have you tried benchmarking it against the use of
a streaming texture? I’ve had very good results with them and YV420 sources.On Wed, Jul 18, 2012 at 8:44 PM, Prunk Dump wrote:
–
Bye,
Gabry
I’ve looked at the example, and I’ve not seen the initialization of a
streaming texture, I presume that with SDL 2.0 you use a custom opengl
shader to do the render? Have you tried benchmarking it against the use of
a streaming texture? I’ve had very good results with them and YV420 sources.
Ignore my previous reply I’ve looked at your source and I’ve seen that you
create a streaming texture in stream_renderer.c, the only thing I can add
is that you can remove SDL_OPENGL from the SDL_Init() call in the 2.0
example, since streaming textures are part of the 2D accelerated API :)–
Bye,
Gabry
2012/7/19 Gabriele Greco <gabriele.greco at darts.it>:
I’ve looked at the example, and I’ve not seen the initialization of a
streaming texture, I presume that with SDL 2.0 you use a custom opengl
shader to do the render? Have you tried benchmarking it against the use of a
streaming texture? I’ve had very good results with them and YV420 sources.Ignore my previous reply I’ve looked at your source and I’ve seen that you
create a streaming texture in stream_renderer.c, the only thing I can add is
that you can remove SDL_OPENGL from the SDL_Init() call in the 2.0 example,
since streaming textures are part of the 2D accelerated API–
Bye,
Gabry
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Yes stream_renderer.c is a standard streaming object that is provided
with the library. But the user can make his own. I have set the
SDL_OPENGL flag to test the opengl texture streaming performance. I’am
suprised that with only glTexsubImage2D and without shaders my eeepc
stream video on opengl texture with enough speed !
I don’t understand if we can use the SDL_Texture as opengl texture. It
seems that there are not a SDL function to get the texture handle …
This is unfortunate because I have made this library to stream video
on opengl textures and SDL have many part of the optimization job.