Qt-interest Archive, July 2007
Displaying images + video using Qt + some other lib?
Message 1 in thread
I wrote an app last year based largely on the example widget
"Imageviewer" class to display images + user input text (on top of the
images) controlled by a timeline (via the spreadsheet widget).
But now I'm looking for a better way. The Imageviewer was pretty
limited wrt. text placement, and I'd like to get a more general purpose
solution in place. Anyone have some suggestions? Should I start
looking at Quicktime?
I'm using Qt4.3 on Mac OS X.
Thanks,
DT
--
[ signature omitted ]
Message 2 in thread
David Topper schrieb:
> ...
> But now I'm looking for a better way. The Imageviewer was pretty
> limited wrt. text placement,
How was it limited? With a QPainter you can draw text on top of a QImage
for example with any available font in any colour at any coordinate. Is
this not enough?
> solution in place. Anyone have some suggestions? Should I start
> looking at Quicktime?
You've mentioned videos in the subject, so QuickTime would be a good
option, certainly on a Mac ;)
But there are other (free) libs around for playing all kinds of video
formats, ffmpeg comes to my mind first:
http://sourceforge.net/projects/ffmpeg/
But note that the "embedding" of the video image into the Qt widget will
become platform-dependent in any case. If you're lucky all you have to
do is pass along the "windows ID" (can't remember right now which
QWidget method gives you this) to the respective video library.
"QT within Qt"-related ;) questions come every then and when in this
forum, so it might be worth checking the Qt archive for possible solutions.
Cheers, Oliver
--
[ signature omitted ]
Message 3 in thread
Till Oliver Knoll wrote:
> David Topper schrieb:
>> solution in place. Anyone have some suggestions? Should I start
>> looking at Quicktime?
>
> You've mentioned videos in the subject, so QuickTime would be a good
> option, certainly on a Mac ;)
See this article for some ideas:
http://doc.trolltech.com/qq/qq20-hiviews.html
> But there are other (free) libs around for playing all kinds of video
> formats, ffmpeg comes to my mind first:
> http://sourceforge.net/projects/ffmpeg/
True, but it _might_ be easier to embed MPlayer in "slave" mode.
> But note that the "embedding" of the video image into the Qt widget will
> become platform-dependent in any case. If you're lucky all you have to
> do is pass along the "windows ID" (can't remember right now which
> QWidget method gives you this) to the respective video library.
It might also be possible to do something with ActiveQt on Windows.
> "QT within Qt"-related ;) questions come every then and when in this
> forum, so it might be worth checking the Qt archive for possible
> solutions.
I'm sure people would love to hear about any experiences with the above
techniques, particularly in the form of a summary. :-)
David
--
[ signature omitted ]