Hi!

I'm afraid there is nothing can be done on the kernel side. It seems userspace 
app is trying to load dynamic library and fail with it, so it is why video 
can't be played.
The library could be requested on linking stage or runtime via dlopen() call.

Best wishes,
Vladimir Murzin

-----Original Message-----
From: Bateman <[email protected]>
Sender: [email protected]
Date: Tue, 14 Feb 2012 09:52:12 
To: Android Linux Kernel Development<[email protected]>
Reply-To: [email protected]
Subject: [android-kernel] Video decoding on Galaxy Nexus running Android 4.02

Hi,
I have written a simple app that uses the videoview class to display
video. It plays MP4 files without any problems.
It uses the hardware accelerator (IVA-HD) on omap4 in galaxy nexus to
decode the video.
However, I want to use software decoding instead of the hardware
accelerator. Is having your own decoder (ffmpeg etc) the only way to
do software decoding?

Under /system/lib I see the following files:
libstagefrighthw.so
libstagefright_soft_mpeg4dec.so
libstagefright_soft_h264dec.so

My guess is that libstagefrighthw.so is for hardware decoding while
the other two are used for software decoding.
I naively thought that removing libstagefrighthw file would make the
software decoder be used. Unfortunately, after removing that file, the
app just throws an error saying "the video cannot be played". Is there
anyway for using the in-built software decoder?

I have unlocked the phone and can load my custom kernel (in case there
is anything to be done on the kernel side, I am up for it!).

Thanks for your help.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to