Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, October 2007
Re: Playing VIDEO inside a Widget


Message 1 in thread

>
>
> I can confirm you can use SDL + winId on windows. If I have some time in
> the next few days I'll post a small example.
>
> Tim


Thanks for this info Tim. Could you please briefly tell me what the process
in this case would be? I´ve used SDL only with audio before, not video, so I
don´t know what the code should look like. I want some steps to follow like
(these could probably won´t make sense):

1) Create QtWidget
2) Instantiate some SDL class
3) Decode video with ffmpeg
4) Pass pointer with video frames to SDL
5) Pass QWidget winId to SDL class....

Or is there anywhere I can find information how to use SDL as a video player
inside Qt?

Many many thanks!!




----------------------------------------------------------------------
> dr. t. dewhirst
> director                                       [w] www.bugless.co.uk
> bugless software development ltd.
>
>


-- 
 [ signature omitted ] 

Message 2 in thread

Hey
Can this be achieved as
1: Create Qtwidget in main prog
2: instatiate gstreamer-pipeline
3: run gstreamer pipeline in a new thread
4: take frame pointer from ffmpegdecode element src pad
5: pass it to qwidget display buffer
6: reload qwidget display

something like this ???? may be using a pipe in between
Can this be done


On 10/1/07, Rodrigo Cadiz <rcadiz@xxxxxxxxx> wrote:
>
>
> >
> >
> > I can confirm you can use SDL + winId on windows. If I have some time in
> > the next few days I'll post a small example.
> >
> > Tim
>
> Thanks for this info Tim. Could you please briefly tell me what the process
> in this case would be? I´ve used SDL only with audio before, not video, so I
> don´t know what the code should look like. I want some steps to follow like
> (these could probably won´t make sense):
>
> 1) Create QtWidget
> 2) Instantiate some SDL class
> 3) Decode video with ffmpeg
> 4) Pass pointer with video frames to SDL
> 5) Pass QWidget winId to SDL class....
>
> Or is there anywhere I can find information how to use SDL as a video player
> inside Qt?
>
> Many many thanks!!
>
>
>
>
> >
> ----------------------------------------------------------------------
> > dr. t. dewhirst
> > director                                       [w]
> www.bugless.co.uk
> > bugless software development ltd.
> >
> >
>
>
>
> --
> Rodrigo F. Cadiz, Ph.D.
> Centro de Investigacion en Tecnologias de Audio
> Pontificia Universidad Catolica de Chile
> rcadiz@xxxxx
> www.rodrigocadiz.com

--
 [ signature omitted ]