zoukankan      html  css  js  c++  java
  • Android命令行播放MP3音乐

    /***************************************************************************
     *                       Android命令行播放MP3音乐
     * 说明:
     *     有时候我们会遇到Touch不能使用,也没有鼠标,但是我们要在Android上测试
     * 声卡情况,所以我们会想到在adb或者debug终端上使用命令行来播放声音。
     *
     *                                       2016-5-26 深圳 南山平山村 曾剑锋
     **************************************************************************/
    
    一、参考文章:
        1. How to play one audio file in android using adb command?
            http://stackoverflow.com/questions/30437599/how-to-play-one-audio-file-in-android-using-adb-command
        2. How can I play a mp3 file via adb commnad with google play musc on android kitkat 4.4.4?
            http://stackoverflow.com/questions/25083848/how-can-i-play-a-mp3-file-via-adb-commnad-with-google-play-musc-on-android-kitka
    
    二、stagefright help:
        root@android:/sdcard/Music # 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)
        root@android:/sdcard/Music # 
    
    三、stagefright示例:
        root@android:/sdcard/Music # stagefright -a -o ferry.mp3                   
  • 相关阅读:
    POJ3480 John 博弈论 anti-nim anti-SG
    POJ2068 Nim 博弈论 dp
    POJ 1740 A New Stone Game 又是博弈论配对找规律orz 博弈论 规律
    Python复习之下划线的含义
    django 模板语法和三种返回方式
    Python自动化之一对多
    Python自动化之django的ORM
    Python自动化之django的ORM操作——Python源码
    django orm字段和参数
    Python自动化之django视图
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5530588.html
Copyright © 2011-2022 走看看