kibsoft / QtMEL

Qt Media Encoding Library
GNU Lesser General Public License v2.1
67 stars 16 forks source link

Issues witih building code using QtMEL #21

Open zWaR opened 10 years ago

zWaR commented 10 years ago

Hi,

I'm trying to write a simple application on windows, based on the provided examples.

Here's the code: mainwindow.h is basically a copy paste of the mainwindow.h povided with the CameraExample with all except the default includes in it.

mainwindow.cpp

include "mainwindow.h"

include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) , m_cameraGrabber(new CameraGrabber(this)) { ui->setupUi(this); }

MainWindow::~MainWindow() { delete ui; }

As soon as I add a call to CameraGrabber(), the code builds, but crashes at execution.

The .pro file is prepared as directed here http://kibsoft.ru/. I tried to point INCLUDEPATH and LIBS to the precompiled qtmel and to localy compiled qtmel, but same results.

And I'm using mingw as the compiler.

Since I ran out of ideas, I'd appreciate any suggestions.

Thanks!

zWaR commented 10 years ago

btw.: same results if adding AudioGrabber or Recorder ....

kibsoft commented 10 years ago

Does CameraExample work for you?

kibsoft commented 10 years ago

Btw, seems that you should put ffmpeg, opencv libs near qtmel.dll. And maybe put all needed dlls near you .exe file.

zWaR commented 10 years ago

The prebuilt one works perfectly, if i try to build it myself, then it crashes as with my simple example.

OK, will try to play with the dlls more...

fathonyfath commented 10 years ago

Hi, I got same problem, the build success, but it unexpectedly finished when I tried to run it. It also happen to CameraExample.

I'm using VC2010 compiler and the prebuilt lib that you post in : http://qt-project.org/forums/viewthread/29117

Thanks

kibsoft commented 10 years ago

Hello, ffmpeg and opencv dlls are near exe file?

fathonyfath commented 10 years ago

It's working, but the frame doesn't show any picture. And when I tried to run it from explorer, it doesn't show any available device.

Thanks.

kibsoft commented 10 years ago

Maybe it can't find QtMultimedia. As far as I remember when it can't find QtMultimedia it doesn't crash but just doesn't do anything. It can be a reason why you don't see available devices. To be honest, opencv+ffmpeg is like a "gas mixture", nobody can foresee what will happen in next moment. The app may be crashed without any reason. That's why I don't want to continue work on QtMEL :(

fathonyfath commented 10 years ago

nah, I actually just wanted to use camera module, but QtMultimedia don't let me record video from webcam. So, I came across and found your library. It's great, but now it's not working :(