Disable hardware codecs

632 views
Skip to first unread message

Uander

unread,
May 3, 2010, 8:53:34 AM5/3/10
to android-porting, android-d...@googlegroups.com, android-...@googlegroups.com, uman...@gmail.com
Hello   ,

I have a file a audio/3gp file that I can play in eclair-2.1 emulator but its throwing error on my Zoom2
device  says "Sorry , this player doesn't support this  type of audio file " .

emulator will be using s/w codecs . while zoom2 has h/w codecs . The logic of  MMM framework is like if h/w codecs are not present it should look for s/w codec . if zoom2 is not finding h/w codec for my audio/3gp file , it should search for s/w codec and play file , why does it fails with error ?

How to disable hardware acceleration of codecs ?

Please correct me If I am wrong .




Thanks :
Uander

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

RaviY

unread,
May 3, 2010, 10:17:49 AM5/3/10
to android-platform
I don't know what Zoom2 is. But very likely, this post seems out of
place. If you are talking about builds specific for certain hardware,
then you need to go to android-porting and ask there.

-Ravi

Deva R

unread,
May 3, 2010, 10:53:55 AM5/3/10
to android-...@googlegroups.com
you can delete ./system/etc/01_Vendor_ti_omx.cfg in your file system,
so as to use SW codecs from PVOMX components (picked up by
./system/etc/pvplayer.cfg).

Deva R

unread,
May 3, 2010, 10:54:21 AM5/3/10
to android-...@googlegroups.com, android-porting, android-d...@googlegroups.com, uman...@gmail.com
[+porting list]
you can delete ./system/etc/01_Vendor_ti_omx.cfg in your file system,
so as to use SW codecs from PVOMX components (picked up by
./system/etc/pvplayer.cfg).

Ricardo Martinez

unread,
May 3, 2010, 1:51:01 PM5/3/10
to r.de...@gmail.com, android-...@googlegroups.com, android-porting, android-d...@googlegroups.com, uman...@gmail.com
Hi Uander,

You can disable Hardware acceleration by editing this file:
platform/vendor/ti/zoom2/BoardConfig.mk

But I think it's better to find the root cause of the issue, probably the first step could be to verify if the audio format is actually supported, take a look at the supported OMX roles (tComponentName):
platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c

Thanks,
Ricardo

Uander

unread,
May 4, 2010, 4:51:37 AM5/4/10
to android-...@googlegroups.com, r.de...@gmail.com, android-porting, android-d...@googlegroups.com, uman...@gmail.com
Hello  ,

@Deva -

I disable h/w acceleration by removing 01_Vendor_ti_omx.cfg file . now its using s/w codecs  .  But still same error comes up . logcat says :

***********


D/omx_interface(  906): DLOPEN SUCCEEDED (libOMX_Core.so)
D/omx_interface(  906): TIOMXInterface: library lookup success
D/TIOMX_CORE(  906): init count = 1
D/TIOMX_CORE(  906): Found component OMX.TI.AMR.decode with refCount 0
D/OMX_NBAMRDEC(  906): OMX_ComponentInit():202 202 ::OMX_ComponentInit
D/OMX_NBAMRDEC(  906): NBAMRDECHandleCommand():829 829 :: OMX_AmrDec_Utils.c :: Error returned from                        LCML_Init()
W/MediaPlayer( 1441): info/warning (1, 26)
D/OMX_NBAMRDEC(  906): NBAMRDEC_ComponentThread():102 :: Comp Thrd Exiting here...
I/DEBUG   (  904): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  904): Build fingerprint: 'NEC/pine/pine/pine:2.1/ERD79/eng.root.20100429.171703:eng/test-keys'
I/DEBUG   (  904): pid: 906, tid: 1523  >>> /system/bin/mediaserver <<<
I/DEBUG   (  904): signal 11 (SIGSEGV), fault addr 00000000
I/DEBUG   (  904):  r0 0004a218  r1 80c20f18  r2 000006f4  r3 80c229f0
I/DEBUG   (  904):  r4 80c230f8  r5 40b0dbac  r6 00035420  r7 00021bb8
I/DEBUG   (  904):  r8 00100000  r9 a9d1b8e5  10 40a0e000  fp 00021b58
I/DEBUG   (  904):  ip 00000000  sp 40b0db30  lr 80c1a69d  pc 00000000  cpsr a0000010
I/DEBUG   (  904):          #00  pc 00000000 
I/DEBUG   (  904):          #01  pc 0001a69a  /system/lib/libOMX.TI.AMR.decode.so
I/DEBUG   (  904):          #02  pc 000010ca  /system/lib/libOMX_Core.so

************
@Ricardo

my file is AMR-NB formatted (mimetype set as audio/3gp in mediascanner.java ), I can find
 {"OMX.TI.AMR.encode", "audio_encoder.amrnb"},
 {"OMX.TI.AMR.decode", "audio_decoder.amrnb"},

in platform/hardware/ti/omx/system/src/openmax_il/omx_core/src/OMX_core.c . so codecs support seem to listed there  .

error comes up from LCML_Init () call in  OMX_AmrDec_Utils.c . that means its unable to load codec .


Thanks :
Uander

Deva R

unread,
May 4, 2010, 9:50:38 AM5/4/10
to Uander, android-...@googlegroups.com, android-porting, android-d...@googlegroups.com, uman...@gmail.com
Hi Uander,

Hw codecs from TIOMX_Core library is still significant, and it
shouldnt be in picture if 01_Vendor_ti_omx.cfg is deleted completely.
is it like have u renamed the file? (confirm by 'ls /etc/' after android bootup)

Intention of deleting the file is, PV OMX component sw-codecs should
be chosen via /etc/pvplayer.cfg..

-Deva

Uander

unread,
May 6, 2010, 8:24:14 AM5/6/10
to Deva R, android-...@googlegroups.com, android-porting, android-d...@googlegroups.com, uman...@gmail.com
Hey , it works now .

Disabled h/w codecs as suggested . It played using s/w codecs now .

Thanks for all of your support  Deva , Ricardo .

Thanks :
Uander
Reply all
Reply to author
Forward
0 new messages