Hi, - have ever seen a file inside gallery or music app? after booting eclair for first time, i always have to wait like 5 minutes for mediascanner to finish loading files.. manually you can trigger like menu -> Dev Tools -> Mediascanner, and wait for /sdcard scan to complete..
- rename .3gp as like .mp4 and see if it gets played under gallery app.. i've tried this on a broken setup, where Music app will crash on opening.. - regarding command line testing, alsa_aplay can test raw and selected formats.. u can use mediaframework tests to test audio/video record/playback via command line (adb/shell) source location: ./frameworks/base/media/tests/MediaFrameworkTest build command: ./make mediaframeworktest sample test command to play amr ./adb shell am instrument -e class com.android.mediaframeworktest.functional.MediaPlayerApiTest#testAMRGetDuration -w com.android.mediaframeworktest/.MediaFrameworkTestRunner -Deva On Fri, Apr 9, 2010 at 10:31 AM, Uander <[email protected]> wrote: > I want to check if I m able to play those files in command line in Android . > > what is the command to play a .3gp audio file . ? > > Thanks : > Uander > > On Thu, Apr 8, 2010 at 10:51 PM, Uander <[email protected]> wrote: >> >> Thanks Deva . >> >> I am also using Eclair Android 2.0 . but donno what bad happened with my >> luck . >> >> Does anyone faced this problem if Yes please put some points here How to >> look around with this oor what all I should cross check on my file system / >> opencore / codecs etc ?. >> >> Thanks : >> Uander >> >> On Thu, Apr 8, 2010 at 8:13 AM, Deva R <[email protected]> wrote: >>> >>> Hi Uander, both the files were listed under Music app.., and plays >>> fine for me. i use android eclair latest.., >>> nothing much, but attached log from the exercise below.. >>> >>> -deva >>> >>> # cd /sdcard >>> # ls te* >>> test_n_3gp.3gp >>> test_n_amr.amr >>> # >>> # >>> # W/IInputConnectionWrapper( 1357): showStatusIcon on inactive >>> InputConnection >>> I/ActivityManager( 837): Starting activity: Intent { >>> act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] >>> flg=0x10200000 cmp=com.android.music/.MusicBrowserActivity } >>> I/ActivityManager( 837): Starting activity: Intent { >>> act=android.intent.action.PICK dat= >>> typ=vnd.android.cursor.dir/artistalbum flg=0x4000000 >>> cmp=com.android.music/.ArtistAlbumBrowserActivity (has extras) } >>> D/dalvikvm( 837): GC freed 18389 objects / 958944 bytes in 88ms >>> I/ActivityManager( 837): Displayed activity >>> com.android.music/.ArtistAlbumBrowserActivity: 413 ms (total 429 ms) >>> E/MusicUtils( 1357): Trying to unbind for unknown Context >>> E/gralloc ( 837): [unregister] handle 0x4ada60 still locked >>> (state=40000001) >>> I/ActivityManager( 837): Starting activity: Intent { >>> act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track >>> cmp=com.android.music/.TrackBrowserActivity (has extras) } >>> I/ActivityManager( 837): Displayed activity >>> com.android.music/.TrackBrowserActivity: 274 ms (total 274 ms) >>> W/MediaPlayer( 1357): info/warning (1, 44) >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock -462 original correction >>> 462 correction 462 new clock 0 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock -462 correction 462 new clock >>> 0 >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock -461 original correction >>> 461 correction 461 new clock 0 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock -461 correction 461 new clock >>> 0 >>> I/ActivityManager( 837): Starting activity: Intent { flg=0x4000000 >>> cmp=com.android.music/.MediaPlaybackActivity } >>> I/MediaPlayer( 1357): Info (1,44) >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock 230 original correction >>> -137 correction -137 new clock 93 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock 230 correction -137 new clock >>> 93 >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock 230 original correction >>> -137 correction -137 new clock 93 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock 230 correction -137 new clock >>> 93 >>> I/ActivityManager( 837): Displayed activity >>> com.android.music/.MediaPlaybackActivity: 311 ms (total 311 ms) >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock 245 original correction >>> 34 correction 34 new clock 279 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock 245 correction 34 new clock >>> 279 >>> D/AudioMIO( 1307): Before: ADJ_CLK old clock 617 original correction >>> 33 correction 33 new clock 650 >>> D/AudioMIO( 1307): After: ADJ_CLK old clock 617 correction 33 new clock >>> 650 >>> D/dalvikvm( 1357): GC freed 8717 objects / 576920 bytes in 57ms >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> W/IInputConnectionWrapper( 1357): showStatusIcon on inactive >>> InputConnection >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/AudioHardwareALSA( 1307): INFO: EPIPE >>> D/dalvikvm( 987): GC freed 4432 objects / 204272 bytes in 51ms >>> D/dalvikvm( 1357): GC freed 4616 objects / 279040 bytes in 52ms >>> >>> >>> >>> On Thu, Apr 8, 2010 at 5:17 PM, Uander <[email protected]> wrote: >>> > My concern is that 3GP extension file (audio AMR-NB format)were >>> > detected in >>> > Music (cupcake) but not in Eclair neither in Gallery nor in Music >>> > application . >>> > >>> > On Thu, Apr 8, 2010 at 4:32 PM, Deva R <[email protected]> wrote: >>> >> >>> >> Hi, >>> >> >>> >> .3GP files were usually scanned and listed under gallery application >>> >> (com.android.gallery or com.android.camera).. >>> >> can you check in menu->gallery? >>> > >>> > In my case 3gp extension file not detected in Gallery too . >>> > >>> > Attached my sample music file I've used . >>> > >>> > Unader >>> >> >>> >> PS. >>> >> i've seen the files are listed solely based on file-extension or >>> >> container, rather than the encoded data format in it.. >>> >> just rename .mp3 to .mp4 -> it will appear only in gallery.. >>> >> >>> >> >>> >> >>> >> On Thu, Apr 8, 2010 at 3:07 PM, Uander <[email protected]> wrote: >>> >> > Hi ALL , >>> >> > >>> >> > I have observe issue while playing with Android Music app : >>> >> > >>> >> > The "Music" application in Android 2.0 {eclair} and 2.1 does not >>> >> > recognize >>> >> > an AMR-NB >>> >> > formatted audio file with the ".3gp" extension although it is >>> >> > listed in >>> >> > the >>> >> > Android Supported Media Formats in Android Developer's Guide:- >>> >> > >>> >> > >>> >> > >>> >> > <http://developer.android.com/intl/ja/guide/appendix/media-formats.html> >>> >> > >>> >> > It does recognize the same file with ".amr" extension. >>> >> > >>> >> > While Music in Android 1.5 {cupcake} recognizes both AMR-NB >>> >> > formatted >>> >> > audio >>> >> > file with >>> >> > ".3gp" and ".amr" extensions. >>> >> > >>> >> > I also want to know if it is the current behavior of Music in >>> >> > Android >>> >> > 2.0 >>> >> > and 2.1 >>> >> > or a issue existing ?? >>> >> > >>> >> > If it is discussed earlier in at any thread before please place the >>> >> > link >>> >> > here . >>> >> > >>> >> > Thanks : >>> >> > Uander >>> >> > >>> >> > -- >>> >> > unsubscribe: [email protected] >>> >> > website: http://groups.google.com/group/android-porting >>> >> > >>> > >>> > >> > > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting To unsubscribe, reply using "remove me" as the subject.
