| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hi All Can anyone please tell me how to make a video player ONLY using QT .. such that it will read a raw video(or encoded data) from a file/buffer and render it on screen of a device which doesnot has X or open gl or gtk support ??? any small sample will be really helpfull Thanks -- [ signature omitted ]
Em Monday 01 October 2007 14:53:22 karmendra jain escreveu: > Hi All > Can anyone please tell me how to make a video player > ONLY using QT .. such that it will read a raw video(or encoded data) > from a file/buffer and render it on screen of a device which doesnot > has X or open gl or gtk support ??? > > any small sample will be really helpfull Take a look at the example that is bundled with Qt: http://doc.trolltech.com/main-snapshot/widgets-movie.html It's in your source package as examples/widgets/movie It requires a running output display. If you're using Qt/X11, then it requires X11. But it won't require OpenGL. Finally, note that this example is just about showing what you can do with simple classes. It is not a full-fledged movie player. It will read only what image-formats Qt knows about -- in a standard build, that will be GIF and MNG. That's enough for simple animations (like animated icons, progress information, etc.), but trying to render a 320x240 30fps movie might take its toll. If you want more, you'll have to wait for Qt 4.4. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Thiago Macieira schrieb: > > ... > If you want more, you'll have to wait for Qt 4.4. Hmmm, now I'm curious: I've heard that WebKit will be included, which is a good thing. So what does the rumour say about the media support in Qt 4.4? Any secrets and insider infos you want to share with us? :) Cheers, Oliver -- [ signature omitted ]
Quoting Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx>: > Thiago Macieira schrieb: >>> ... >> If you want more, you'll have to wait for Qt 4.4. > > Hmmm, now I'm curious: I've heard that WebKit will be included, which > is a good thing. So what does the rumour say about the media support in > Qt 4.4? Any secrets and insider infos you want to share with us? :) It's not a secret if you follow the KDE 4.0 development process: Phonon will be part of Qt 4.4 and KDE 4.0. You can download the current (development) version from the KDE Subversion repository (web access: http://websvn.kde.org/trunk/KDE/kdelibs/phonon/) The main website (quite outdated) is http://phonon.kde.org and you can find Phonon's main author in #phonon in FreeNode. -- [ signature omitted ]
Can anythin be done in qt 3.3 ????
there was a kiosk /mpeg player kiosk [Qt/Embedded-specific]
An MPEG player.
in lot of places but i never found the code for it ...
can anyone help in this ???
On 10/1/07, Pau Garcia i Quiles <pgquiles@xxxxxxxxxxx> wrote:
> Quoting Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx>:
>
> > Thiago Macieira schrieb:
> >>> ...
> >> If you want more, you'll have to wait for Qt 4.4.
> >
> > Hmmm, now I'm curious: I've heard that WebKit will be included, which
> > is a good thing. So what does the rumour say about the media support in
> > Qt 4.4? Any secrets and insider infos you want to share with us? :)
>
> It's not a secret if you follow the KDE 4.0 development process:
> Phonon will be part of Qt 4.4 and KDE 4.0.
>
> You can download the current (development) version from the KDE
> Subversion repository (web access:
> http://websvn.kde.org/trunk/KDE/kdelibs/phonon/)
>
> The main website (quite outdated) is http://phonon.kde.org and you can
> find Phonon's main author in #phonon in FreeNode.
>
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Thanks guys and yes i saw that example .. but its only for gif files and it requires X11 .. but i'll explain my problem in detail currently i was tryin to make a player .. back end gstreamer .. front end QT on a board which doesnot support x11 now backend is ready .. it gives a decoded framer buffer .. which i can write to a file now how can i do things in QT .. Ie use some buffer and display the movie decoded by the gstreamer ??? and on top of this .. i dont have X11 support on that board :( ne help ppl ?? On 10/1/07, Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx> wrote: > Thiago Macieira schrieb: > > > ... > > If you want more, you'll have to wait for Qt 4.4. > > Hmmm, now I'm curious: I've heard that WebKit will be included, which is > a good thing. So what does the rumour say about the media support in Qt > 4.4? Any secrets and insider infos you want to share with us? :) > > Cheers, Oliver > > -- > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body. > List archive and information: http://lists.trolltech.com/qt-interest/ > > -- [ signature omitted ]
On 01.10.07 19:28:22, karmendra jain wrote: > Thanks guys > and yes i saw that example .. but its only for gif files and it requires X11 .. > but i'll explain my problem in detail > > currently i was tryin to make a player .. back end gstreamer .. front end QT > on a board which doesnot support x11 > now backend is ready .. it gives a decoded framer buffer .. which i > can write to a file > > now how can i do things in QT .. > Ie use some buffer and display the movie decoded by the gstreamer ??? > and on top of this .. i dont have X11 support on that board :( Then you can't run Qt anyway, you can run Qtopia though. Other than that neither Qt nor Qtopia have any support for decoding video data and displaying it, so you'd have to write your own decoder and use QPainter to display the data that you decode. Andreas -- [ signature omitted ]
Hey yes yes i have written a decoder that decodes the data and provides the decoded frame but how to use painter to get the desired result ??? 1: where to pass the pointer of the deocded frame 2: how to maintain the decoder and the painter in sink ?? is there any sample code that can help ??? On 10/1/07, Andreas Pakulat <apaku@xxxxxx> wrote: > On 01.10.07 19:28:22, karmendra jain wrote: > > Thanks guys > > and yes i saw that example .. but its only for gif files and it requires X11 .. > > but i'll explain my problem in detail > > > > currently i was tryin to make a player .. back end gstreamer .. front end QT > > on a board which doesnot support x11 > > now backend is ready .. it gives a decoded framer buffer .. which i > > can write to a file > > > > now how can i do things in QT .. > > Ie use some buffer and display the movie decoded by the gstreamer ??? > > and on top of this .. i dont have X11 support on that board :( > > Then you can't run Qt anyway, you can run Qtopia though. Other than that > neither Qt nor Qtopia have any support for decoding video data and > displaying it, so you'd have to write your own decoder and use QPainter > to display the data that you decode. > > Andreas > > -- > Avert misunderstanding by calm, poise, and balance. > > -- > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body. > List archive and information: http://lists.trolltech.com/qt-interest/ > > -- [ signature omitted ]
QPainter has a method called drawImage. You can do something like the
following in a subclass of QWidget:
void VideoWidget::paintEvent()
{
//Get the current frame and size data...
//Passing QImage
QImage frame(frameDataUCharPtr, frameWidth, frameHeight.
QImage::Format_RBG32 );
QPainter painter(this);
painter.drawImage(rect(), frame);
}
Under Qtopia you can use QDirectPainter to write directly to framebuffer
memory and get some faster access for drawing frames. You will have to
do the color conversions yourself to get the frame into your
framebuffer's color model.
--Justin
karmendra jain wrote:
> Hey yes yes
> i have written a decoder that decodes the data and provides the decoded frame
> but how to use painter to get the desired result ???
> 1: where to pass the pointer of the deocded frame
> 2: how to maintain the decoder and the painter in sink ??
>
> is there any sample code that can help ???
>
> On 10/1/07, Andreas Pakulat <apaku@xxxxxx> wrote:
>
>> On 01.10.07 19:28:22, karmendra jain wrote:
>>
>>> Thanks guys
>>> and yes i saw that example .. but its only for gif files and it requires X11 ..
>>> but i'll explain my problem in detail
>>>
>>> currently i was tryin to make a player .. back end gstreamer .. front end QT
>>> on a board which doesnot support x11
>>> now backend is ready .. it gives a decoded framer buffer .. which i
>>> can write to a file
>>>
>>> now how can i do things in QT ..
>>> Ie use some buffer and display the movie decoded by the gstreamer ???
>>> and on top of this .. i dont have X11 support on that board :(
>>>
>> Then you can't run Qt anyway, you can run Qtopia though. Other than that
>> neither Qt nor Qtopia have any support for decoding video data and
>> displaying it, so you'd have to write your own decoder and use QPainter
>> to display the data that you decode.
>>
>> Andreas
>>
>> --
>> Avert misunderstanding by calm, poise, and balance.
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
begin:vcard
begin:vcard fn:Justin Noel n:Noel;Justin org:ICS;Engineering adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA email;internet:justin@xxxxxxx title:Sr. Consulting Engineer / Certified Qt Instructor tel;work:(617) 621-0060 url:http://www.ics.com version:2.1 end:vcard