Capturing MJPEG



  • Hello im a student from belguim and im dooing a project atm and i have to inport MJPEG data from a ip cam into Qt.
    this is my first year of Qt and i searched al around and i cant find somthing that helps me get started.
    could annyone get me anny idea's how to get started?

    thx on forward



  • If your camera uses multipart http or ICamView properitary protocoll your friend should be the
    QImageGrabber:

    http://code.google.com/p/qimagegrabber/

    Let me know if you have any questions/comments with the library!



  • i will defenetly have a look at the Qimagegrabber thanks sir ill let you know if i have anny questions/comments



  • [quote author="martonmiklos" date="1333455279"]If your camera uses multipart http or ICamView properitary protocoll your friend should be the
    QImageGrabber:

    http://code.google.com/p/qimagegrabber/

    Let me know if you have any questions/comments with the library![/quote]

    Sorry to hijack, XavierClinquart.

    @martonmiklos, how do i actually use your library? What to download and where do i save it to?

    Thanks~!



  • Sync the latest svn trunk with:
    svn checkout http://qimagegrabber.googlecode.com/svn/trunk/ qimagegrabber-read-only

    There is an example folder containing an example how to use the library.



  • [quote author="martonmiklos" date="1363677283"]Sync the latest svn trunk with:
    svn checkout http://qimagegrabber.googlecode.com/svn/trunk/ qimagegrabber-read-only

    There is an example folder containing an example how to use the library. [/quote]

    Thanks, i don't know how to use svn checkout, but i suppose it's following way via QtCreator?

    • New project
    • Import project
    • Subversion Checkout

    Then the first problem i encounter was:
    [quote]Failed to open project in '/Applications/Qt5.0.1/qimagegrabber'.
    Could not find any project files matching (*.pro, CMakeLists.txt, *.cmake, *.creator, *.qmlproject) in the directory '/Applications/Qt5.0.1/qimagegrabber'.[/quote]

    nonetheless i was able to manually open up your examples.pro

    As i'm using Qt5.0.1 on Mac, it seems that Qt library configuration is slightly different.

    include <QtGui/QApplication> = include <QApplication> -> this should be okay?(no errors)

    Then this is the main part executing your program...

    _#include <qwt/qwt_plot_curve.h>

    /Applications/Qt5.0.1/qimagegrabber/examples/qimagegrabber_benchmark/dialogcomparesettings.h:7: error: 'qwt/qwt_plot_curve.h' file not found
    #include <qwt/qwt_plot_curve.h>
    ^_

    Sorry for being such a beginner :)



  • I have never tried to compile it with Qt5.
    I am installing the Qt5 now and

    The benchmark example depends on the Qwt. I will create a simple separate example today without any extra dependencies.



  • [quote author="martonmiklos" date="1363686943"]I have never tried to compile it with Qt5.
    I am installing the Qt5 now and

    The benchmark example depends on the Qwt. I will create a simple separate example today without any extra dependencies. [/quote]

    alright, i will be awaiting for the new revision. Thanks man! ^^


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.