[Interest] Video Player Example

Josiah Bryan josiahbryan at gmail.com
Fri Apr 6 02:34:23 CEST 2012


On Thu, Apr 5, 2012 at 7:58 PM, Szalata, Zenon M. <zms at slac.stanford.edu>wrote:

>
> Given the nature of the data is the approach following the video player
> example the right way to go?****
>
> and****
>
> How do I inform the “video” classes that the QByteArray represents a 2D
> image of fixed dimensions?****
>
> **
>


I must confess, I don't know how to do it with the "standard" Qt classes.
However, I've developed my own set of capture and video display classes.

A complete application that just captures video and draws it on screen in
real time:
http://code.google.com/p/livepro/source/browse/trunk/devel/app-template/MainWindow.cpp#28

(That app demos both using OpenGL directly and using a QWidget to render
video.)

The low level capture under Linux is done with V4L:
http://code.google.com/p/livepro/source/browse/trunk/gfxengine/SimpleV4L2.cpp

Which is handled by the CameraThread (which uses libav on windows to
capture):
http://code.google.com/p/livepro/source/browse/trunk/gfxengine/CameraThread.cpp

And the video is rendered using a GLVideoDrawable:
http://code.google.com/p/livepro/source/browse/trunk/gfxengine/GLVideoDrawable.cpp

(For actually using that googlecode project, see
http://code.google.com/p/livepro/wiki/QuickStartGuide)

Regards,
Josiah



>  **
>
> Any help and suggestion are greatly appreciated,****
>
> Zen****
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Josiah Bryan
765-215-0511
josiahbryan at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120405/c627eec8/attachment.html>


More information about the Interest mailing list