【问题标题】:How do I use Stagefright from the command line?如何从命令行使用 Stagefright?
【发布时间】:2011-10-17 13:25:37
【问题描述】:

如何从命令行使用 Stagefright?有可能吗?

【问题讨论】:

    标签: android stagefright


    【解决方案1】:

    是的,如果您已将设备植根并可以访问命令行,则可以从命令行使用 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)
    

    【讨论】:

      【解决方案2】:

      不幸的是,Stagefright 是一个原生库,没有命令行测试应用程序。尽管如此,android 框架中的MediaPlayer 仍然易于使用,并且在幕后使用了 Stagefright。

      【讨论】:

        猜你喜欢
        • 2012-09-23
        • 2010-11-30
        • 2015-09-24
        • 1970-01-01
        • 1970-01-01
        • 2012-12-06
        • 1970-01-01
        • 2012-10-25
        • 1970-01-01
        相关资源
        最近更新 更多