PDA

View Full Version : How to get video file duration in Qt?



newtolinux
26th November 2010, 11:41
hi I wants to get video file duration in qt.Can some body tell me how can i do that?

high_flyer
26th November 2010, 11:46
This has nothing to do with Qt.
You need to know the format of the file, then you can read the file, and extract the duration.

wysota
26th November 2010, 12:09
You can try with QtMobility's QMediaPlayer (http://doc.qt.nokia.com/qtmobility-1.1.0/qmediaplayer.html) but you need to start playing the file to get the duration.