On Tue, Apr 27, 2010 at 3:33 AM, RaviY <yend...@pv.com> wrote: > I was able to play the clip fine using the pvplayer_engine_test test > executable. > > Regarding the GUI app, this looks like a missed option in > MediaFile.java. The details: > - In mediascanner.cpp, the file is scanned, and it's mimetype is set > as "audio/3gpp". > - But, in Mediafile.java, there is no such mimetype listed that will > qualify this as a valid mimetype. > - Hence, this file is not added in the database. > - As a quick test, you can modify "audio/3gpp" in mediascanner.cpp to > "audio/mp4",
i saw these lines of code in MediaScanner.java public void setMimeType(String mimeType) { if ("audio/mp4".equals(mMimeType) && mimeType.startsWith("video")) { // for feature parity with Donut, we force m4a files to keep the // audio/mp4 mimetype, even if they are really "enhanced podcasts" // with a video track return; } mMimeType = mimeType; mFileType = MediaFile.getFileTypeForMimeType(mimeType); } audio/mp4 is already there . Do you want me to add same for audio/3gp ? or add a new mimetype in MediaFile.java. Either change > I added n new mimetype for audio/3gpp in MediaFile.java . It works out . Thanks Ravi for pointers . Thanks : Uander > would make the content show up in the Music app. > > > -Ravi > > On Apr 26, 12:19 am, RaviY <yend...@pv.com> wrote: > > I will have to build the eclair code. I will get back to you on this. > > > > -Ravi > > > > On Apr 21, 12:31šam, Uander <uandro...@gmail.com> wrote: > > > > > > > > > Ravi , > > > > > Here are the details of my clip > > > > > Name : test_n_3gp.3gp > > > Mime type = video/3gpp > > > Codec- Amr-audio > > > Sample-rate-NA > > > Bitrate - NA > > > Channels - 0 > > > Duration 0 seconds > > > > > Where this file should come in Music or Gallery ? with my eclair-2.1 , > its > > > not shown anywhere . > > > > > when I just rename it to test_n_3gp.amr . it got played in Music app . > > > > > Lot confused I am . > > > > > Thanks : > > > Uander > > > > > 2010/4/21 RaviY <yend...@pv.com> > > > > > > I don't see any problem running this clip. I don't have an eclair > > > > build to test currently. Maybe you can generate a log and share. > > > > > > -Ravi > > > > > > On Apr 16, 12:03 am, Uander <uandro...@gmail.com> wrote: > > > > > Thanks for info Ran !! > > > > > > > what about my opencore commands results ? > > > > > > > Uander > > > > > > > 2010/4/15 ran <alexandre.roumiant...@gmail.com> > > > > > > > > Android on freerunner ( current šMaster is eclair 2.1r1 ) able to > play > > > > > > your file by ES File Manager inserted player > > > > > > > > On 15 ÁÐÒ, 11:15, Uander <uandro...@gmail.com> wrote: > > > > > > > Hi All , > > > > > > > > > Can I have a test command from opencore which can check if a > media > > > > file > > > > > > is > > > > > > > playable or not ? > > > > > > > > > Since on ecalir 2.1 , my attached 3gp AMR-NB encoded file is > not > > > > detected > > > > > > in > > > > > > > Music application . I want to test it with > > > > > > > opencore for correctness of file . > > > > > > > > > I put : > > > > > > > pvplayer_engine_test -test 803 803 -sourcepvplayer_engine_test > -test > > > > 803 > > > > > > 803 > > > > > > > -source /data/test_n_3gp.3gp > > > > > > > > > Log : > > > > > > > ********* > > > > > > > SDK Labeled: PVDEV_CORE_RELEASE_6.506.4.1 built on 20090312 > > > > > > > > > Test Program for pvPlayer engine class. > > > > > > > š Input file name '/data/test_n_3gp.3gp' > > > > > > > š Test case range 803 to 803 > > > > > > > š Compressed output Video(No) Audio(No) > > > > > > > š Log level 8; Log node 0 Log Text 0 Log Mem 0 > > > > > > > > > Objective = Play Until EOS > > > > > > > PVMFInfoErrorHandlingStart... > > > > > > > PVMFInfoErrorHandlingComplete... > > > > > > > > > Total Execution time for file /data/test_n_3gp.3gp is : > 0.518000 > > > > seconds > > > > > > > Test output begins > > > > > > > Number of tests: 2 > > > > > > > Successes: 1 > > > > > > > Failures: 1 > > > > > > > external/opencore/engines/player/test/src/test_pv_player_engine_testset8.cpp:2346:"false" > > > > > > > evaluated to false. > > > > > > > > > Errors: 0 > > > > > > > *************** > > > > > > > > > Does this signifies for correctness of my file . šAny other way > to > > > > test > > > > > > for > > > > > > > playback of 3gp file . > > > > > > > > > Any help will be appreciated !! > > > > > > > > > Thanks : > > > > > > > Uander > > > > > > > > > štest_n_3gp.3gp > > > > > > > 486KðÒÏÓÍÏÔÒÅÔØúÁÇÒÕÚÉÔØ > > > > > > > > -- > > > > > > unsubscribe: > > > > > > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com> > > > > > > <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com> > <android-porting%252bunsubscr...@googlegroups.com<android-porting%25252bunsubscr...@googlegroups.com> > > > > > > > > > > website:http://groups.google.com/group/android-porting > > > > > > > > To unsubscribe, reply using "remove me" as the subject. > > > > > > > -- > > > > > unsubscribe: > > > > > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com> > > > > > > > website:http://groups.google.com/group/android-porting > > > > > > -- > > > > unsubscribe: > > > > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com> > > > > > > website:http://groups.google.com/group/android-porting > > > > > -- > > > 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<android-porting%2bunsubscr...@googlegroups.com> > > website:http://groups.google.com/group/android-porting > > -- > 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