/*************************************************************************** * Android command line play MP3 music * Note: * Sometimes we will encounter touch not use, and no mouse, but we want to test the sound card on Android, so we will think of the ADB or debug terminal using the command line to play the sound. * 2016-5-26 Shenzhen Nanshan Ping Shan village Zengjianfeng ********************************************************* *****************/First, reference article:1. How to play one audio fileinchAndroidusingADB 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 KitKat4.4.4?http://stackoverflow.com/questions/25083848/ How-can-i-play-a-mp3-file-via-adb-commnad-with-google-play-musc-on-android-kitkaSecond, stagefright help: [email protected]:/sdcard/music # Stagefright-h usage:stagefright-h (ELP)-A (Udio)-N repetitions-L (IST) components-M Max-number-of-frames-to-decodeinchEach 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 froma surface-T Allocate buffers froma surface texture-d (UMP) filename (Raw stream data to a file)-D (UMP) filename (decoded PCM data to a file) [email protected]:/sdcard/Music # Three, stagefright example: [email protected]:/sdcard/music # stagefright-a-O Ferry.mp3
Android command line play MP3 music