使用官方vpu代码执行:
./mxc_vpu_test.out-E "-o vpu.h264 -f 2 -w 640 -h 480 -c 100",打印信息如下:
[INFO] | VPU test program built on Apr 13 2016 14:59:13 |
[INFO] | Product Info: i.MX6Q/D/S |
[INFO] | VPU firmware version: 2.3.10_r40778 |
[INFO] | VPU library version: 5.4.16 |
[INFO] | Format: STD_AVC |
[INFO] | AVC |
[INFO] | Output file "vpu.h264" opened. |
[INFO] | Product Info: i.MX6Q/D/S |
[INFO] | VPU firmware version: 2.3.10_r40778 |
[INFO] | VPU library version: 5.4.16 |
[INFO] | Capture/Encode fps will be 30 |
[INFO] | chromaInterleave 1, mapType 0, linear2TiledEnable 0 |
[INFO] | sensor chip is ov5640_camera |
[INFO] | sensor frame size is 640x480 |
[INFO] | Finished encoding: 100 frames |
[INFO] | enc fps = 275.85 |
[INFO] | total fps= 4.44 |
我在程序中设置的fps=30,但执行程序后fps变小了这么,当我把视频拿到windows下播放时,视频
encoding frame rate setting is just for reference, the actual frame rate depends on timestamp.