我想知道如何在使用 VideoCapture(在 OSX 或 Ubuntu 上)打开视频文件后打印出视频文件的编解码器。
该文件由 qt 应用程序中的 opencv 正确加载和可视化。
QString filename = QFileDialog::getOpenFileName(...)
cout << filename.size() << endl; // size in byte
VideoCapture cap = VideoCapture(filename.toStdString());
cout << cap.get(CV_CAP_PROP_FRAME_HEIGHT) << endl; // print the height
cout << cap.get(CV_CAP_PROP_FPS) << endl; // print the fps
codec ??