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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Pedro GMail
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.




_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

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

Arnaud Loonstra
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel