Aashish T
Aashish T

Reputation: 490

Can DirectShow Library be used with Qt?

Can DirectShow Library be used with Qt? If yes, can somebody tell me how? Going through a lot of articles, I find that direct show is a great option when working with multimedia applications, yet I find that people have problems in using it with Qt.

Upvotes: 2

Views: 4206

Answers (3)

SteveS
SteveS

Reputation: 514

First off, anything you will do in DirectShow with Qt will of course, work only on Windows. If you need it to run on other platforms besides windows you will need additional implementations for each platform.

Second, are you targeting the current release of Qt(4.8), or the upcoming 5.0 release?

For Qt 4.8 as already stated you can use Phonon for Video playback, it is simple to use, cross-platform, and works well. If you need to capture Video from a camera, you might try QtMultimediaKit http://doc.qt.nokia.com/qtmobility/multimedia.html. It has an interface very much like a cell phone camera.

If you decide you want to integrate DirectShow and Qt, you need to first learn DirectShow, and create a capture graph (See the DirectShow AMCap sample in the Microsoft DirectX 9.0 SDK (Summer 2004 release). This requires a fair bit of knowledge of both QT and DirectShow. If you can stick with a prebuilt solution it will be far easier.

Steve

Upvotes: 1

AlexTheo
AlexTheo

Reputation: 4184

Actually DirectShow is an COM api which is independent of any GUI. I don't understand which is a problem with a QT but you can get a handle of your QT based window and use it in your directshow wrappers without any problem. Also you could make an directshow app without any GUI just like a console app.

Upvotes: 1

Martin Beckett
Martin Beckett

Reputation: 96147

If you are developing a video app then QtPhonon can already uses directshow as a backend so you don't need to use it directly

Upvotes: 0

Related Questions