hello,
I am trying to find bitrate of vedio file or vedio clip without metadata ,and i want to get bitrate of vedio in windows as well as MAC o.s.
can anyone help me to get bitrate of vedio in qt c++.
Printable View
hello,
I am trying to find bitrate of vedio file or vedio clip without metadata ,and i want to get bitrate of vedio in windows as well as MAC o.s.
can anyone help me to get bitrate of vedio in qt c++.
If you have no metadata, i.e. No play time and bit rate per stream, then the only way I can see to determine/estimate the bitrate (without decoding the entire video stream yourself) is to play the video (entirely or at least a few minutes) and calculate the number of bits processed divided by the time. This will only be approximate because the video stream may have many audio streams and has a container overhead that cannot be disentangled easily.
ok,but i am trying to build utility application which get bitrate of vedio file.i find it (bitrate )in windows by MSDN site IPropertystore(with metadata).but i want it also in mac.
now can u help me.
thanku for sharing ur view.
So in Windows you use a properties collection on some sort of multimedia object. This implies that there is metadata in the source stream (file). If there is metadata available then look at QMediaObject
You could look at cross-platform tools like libav
sorry i dont get it how to use qmediaobject .can u know some example.i spend lot of time to know how to proceed ,but dont get.
thanku for ur updation.
for my sample video:Code:
#include <QApplication> #include <QMediaPlayer> #include <QVideoWidget> #include <QObject> class Demo: public QVideoWidget { Q_OBJECT public: player = new QMediaPlayer(this); player->setVideoOutput(this); connect(player, SIGNAL(metaDataAvailableChanged(bool)), this, SLOT(metaDataAvailableChanged(bool))); player->setVolume(50); player->play(); } public slots: void metaDataAvailableChanged(bool available) { if (available) { qDebug() << "Available"; qDebug() << key << player->metaData(key); } } else { qDebug() << "Not available"; } } private: QMediaPlayer *player; }; int main(int argc, char **argv) { Demo d; d.show(); return app.exec(); } #include "main.moc"
thanku for ur effort.
but i heve error -DirectShowPlayerService::doRender: Unresolved error code 80040266
please help me.
player->setMedia(QUrl::fromLocalFile("C:/Users/dev/Desktop/nasa_shuttle_m420p-30 960x540.mov"));
for media path
Directshow 80040266
VFW_E_NO_TRANSPORT 0x80040266
Chances are your system has no codec for Quicktime video.
can u suggest me,now what can i do to get bitrate of vedio file.
Install the QuickTime codec?
Cheers,
_
hello,
how to get bitrate of vedio file bitrate,framerate(fps) in mac.
yes u r right but i can find it in windows using windows library.
but want to find also in mac.
well, if you use platform specific API on Windows and not Qt, then this isn't probably the best forum to ask on.
There will be likely macOS specific APIs as well, a macOS forum will likely have better answers,
Cheers,
_
can i use c++ library in qt for mac?
Obviously, since Qt itself is a C++ library.
Cheers,
_