How to play audio and video in C++ using SDL2 and gstreamer

Arnaud Loonstra arnaud at sphaero.org
Wed Apr 8 12:56:31 UTC 2020


On 03-04-2020 17:50, Pedro GMail wrote:
> Hello all.
> 
> I'm looking for some example or explanation about how to play audio and 
> video using SDL.
> 
> I'm looking for it in internet for more than two weeks and I cannot find 
> any thing which helped me.
> 
> I've tried to convert the example wrote for gtk to SDL but I was unable 
> to do that.
> 
> I've tried the example wrote for weston and I was unable to convert it 
> to SDL2.
> 
> I had this task made with VLC but it's so slow and has memory lags.
> 
> Now I'm playing only the video stream with gstreamer. I extract the 
> audio stream in a file apart and I play it with SDL.
> 
> I've found in the tutorials an example explaining that it is possible to 
> create a pipe line with  a demuxer to play audio and video but actually 
> it only plays audio.
> 
> Could you help me, please?
> 
> Thank you very much.
> 
> Pedro Becerra.

I can't find them myself as well but there were some SDL examples in the 
repo of openGL plugins of Gstreamer. I've used them in the past.

Rg,

Arnaud


More information about the gstreamer-devel mailing list