如何在命令行中使用Stagefright?

3

我可以使用命令行来使用Stagefright吗?这是可能的吗?

2个回答

3

如果您的设备已经取得了root权限并可以通过命令行访问,那么stagefright可以从命令行中使用。以下是我在Android开发板上的输出:

root@android:/ # stagefright -h                                                
usage: stagefright
       -h(elp)
       -a(udio)
       -n repetitions
       -l(ist) components
       -m max-number-of-frames-to-decode in each pass
       -b bug to reproduce
       -p(rofiles) dump decoder profiles supported
       -t(humbnail) extract video thumbnail or album art
       -s(oftware) prefer software codec
       -r(hardware) force to use hardware codec
       -o playback audio
       -w(rite) filename (write to .mp4 file)
       -k seek test
       -x display a histogram of decoding times/fps (video only)
       -S allocate buffers from a surface
       -T allocate buffers from a surface texture
       -d(ump) filename (raw stream data to a file)
       -D(ump) filename (decoded PCM data to a file)

1

不幸的是,Stagefright 是一个本地库,没有命令行测试应用程序。不过,在 Android 框架中 MediaPlayer 很容易使用,并在内部使用 Stagefright。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接