PDA

View Full Version : QMovie::supportedFormats() returns only "gif, mng"



saman_artorious
11th July 2012, 07:39
I need to write a program which play a video, any format. But as I checked two Qt sample codes, the format they support is so limited
gif and mng. If qt 4.7 does not support it, is there any tool to add?

moreover, I also cannot find any camera and image capture headers. although, if I go for the locate qcamera.h

it shows:

/QtSDK/Simulator/QtMobility/gcc/include/QtMultimediaKit/qcamera.h

but, when I add it to my program it give th error:

error: QtMultimediaKit/qcamera.h: No such file or directory

m stuck actually!
how should I write the below to programs:
1. a program that play video format any type, at least jpeg, avi
2. a program that connects to camera, could be a usb camera or any other type. so that, I can capture the live video and play it on the widget?

Your

wysota
11th July 2012, 08:17
QMovie only handles simple movie format. If you need something more complex, then use either Phonon or QtMultimedia module.

saman_artorious
11th July 2012, 08:42
QMovie only handles simple movie format. If you need something more complex, then use either Phonon or QtMultimedia module.

has anyone got experience using the two modules? which one is more reliable?

wysota
11th July 2012, 09:26
It depends what you want to do with them. Read the docs on both and decide for yourself.