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

Pedro GMail pedro.becerra1 at gmail.com
Fri Apr 3 15:50:51 UTC 2020


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.






More information about the gstreamer-devel mailing list