Followed by your comments , plz find my inline replies :

On Fri, Apr 9, 2010 at 2:42 PM, Deva R <r.deva...@gmail.com> wrote:

> 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..
>
>
Tried this MediaScanner to scan sdcard  . .3gp not scanned though .


> - 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..
>
> renamed .3gp to .mp4 .  test_n_3gp.mp4 also not detected in Music and
Gallery app .

- regarding command line testing, alsa_aplay can test raw and selected
> formats..
>

 alsa_aplay sdcard/test_n_3gp.3gp  gives
Playing raw data 'sdcard/test_n_3gp.3gp' : Unsigned 8 bit, Rate 8000 Hz,
Mono
for 2 minutes and then exited . no sound yet .


>  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
>

Tried this on minicom for device . output comes as   :

com.android.mediaframeworktest.functional.MediaPlayerApiTest:
Failure in testAMRGetDuration:
junit.framework.AssertionFailedError: AMR getDuration
        at
com.android.mediaframeworktest.functional.MediaPlayerApiTest.testAMRGetDuration(MediaPlayerApiTest.java:101)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at
android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:205)
        at
android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:195)
        at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
        at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
        at
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:449)
        at
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)

Test results for MediaFrameworkTestRunner=.F
Time: 0.74

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0


Thanks :
Uander

>
>
>
> -Deva
>
>
> On Fri, Apr 9, 2010 at 10:31 AM, Uander <uandro...@gmail.com> 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 <uandro...@gmail.com> 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 <r.deva...@gmail.com> 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 <uandro...@gmail.com> 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 <r.deva...@gmail.com> 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 <uandro...@gmail.com> 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: 
> >>> >> > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> >>> >> > website: http://groups.google.com/group/android-porting
> >>> >> >
> >>> >
> >>> >
> >>
> >
> >
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

To unsubscribe, reply using "remove me" as the subject.

Reply via email to