小编Mal*_*ife的帖子

使用capture.get时,OpenCV报告TBR而不是FPS(CV_CAP_PROP_FPS)

我想在Mac OS 10.6.8(Snow Leopard)上使用OpenCV和Qt 4.7.4处理几个视频.如果我创建一个 cv::VideoCapture对象,然后查询与此类视频相关的帧速率,我得到的是TBR而不是FPS.

例如,如果使用ffprobe Video1.mp4我得到的是:

>> ffprobe Video1.mp4      
ffprobe version 0.7.8, Copyright (c) 2007-2011 the FFmpeg developers
built on Nov 24 2011 14:31:00 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --   
enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-
libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libxvid --enable-libx264 
--enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --
enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm
libavutil    50. 43. 0 / 50. 43. 0
libavcodec   52.123. 0 / 52.123. 0
libavformat  52.111. 0 …
Run Code Online (Sandbox Code Playgroud)

c++ qt opencv ffmpeg osx-snow-leopard

2
推荐指数
1
解决办法
3628
查看次数

标签 统计

c++ ×1

ffmpeg ×1

opencv ×1

osx-snow-leopard ×1

qt ×1