天天看点

设置帧率方法_手机相机拍摄的视频帧率的测试方法

现在由于很多视频软件都可以查看帧率,但是那些查看帧率的视频软件显示的并不精确,我们team研发了一个小工具可以精确的显示出手机相机录的视频的分辨率,帧数,帧率以及丢帧率等等一些精确数据。

首先介绍一下isoparser, 在google的网页上有介绍,大家可以查看,ISO viewer已经挪到了Github上去了:

https://code.google.com/archive/p/mp4parser/

Notes:

Do NOT copy the sources into your project. Use a released version. Use Maven. Make exemptions only if you really have to. Keep your upgrade path open. Benefit from my bugfixes and performance tweaks.

首先保证手机需要有root权限,然后将isoparser脚本push到手机中,具体操作方法如下:

isoparser用法:

$ adb root

$ adb remount

$ adb push isoparser /system/bin

$ adb shell chmod 777 /system/bin/isoparser

$ adb reboot

录完video后执行以下命令

adb shell isoparser 视频的路径.mp4 -videostatistics > result.txt
           

完了打开PC上存着的result.txt,就显示出来视频的帧率,丢帧率以及其他的一些精准的数据了,下面就是result的部分结果截图展示:

设置帧率方法_手机相机拍摄的视频帧率的测试方法

大家觉得这个脚本满足需求的话可以私信我哦,谢谢围观~

版权归作者所有,未经同意,不得转载。