[Galaxy Tab 10.1 Android Development] span_01:
Yeah, I'm running my own build from the 9th and that doesn't have the video acceleration working.

I've been trying to look into it but I'm not very accustomed to the android system. First I tried to get some logs from the YouTube app on when it tries to load HQ material but it gave nothing away. I then tried DicePlayer which uses HW and SW rendering if the HW rendering isn't working. That gave a small message on load like this:

W/SoftMPEG4( 99): PVInitVideoDecoder failed. Unsupported content?

I looked into where this PVInitVideoDecoder is and how it works and it seems to be located in the framework base. Here's a github link:

https://github.com/CyanogenMod/andr.../ics/media/libstagefright/codecs/m4v_h263/dec

That shows the SOFTMPEG4 which tries to create a PVInitVideoDecoder on line 370. The PVInitVideoDecoder function itself is defined in src/pvdec_api.cpp.

That seems to fail in the beginning because it can't get a proper video decoder bacuse something is amiss with the video decoding controls. I had a look at the Xoom release and their Git repos. They have no code, which I can find, which corresponds to this framework stuff I've looked at. That leads me to believe the issue is somewhere else.

I've tried picking the libnvomx.so from the XOOM build but no luck. That does however, generate some different errors in the YouTube app:

I/OMXCodec( 98): [OMX.Nvidia.h264.decode] AVC profile = 100 (High), level = 31

I/OMXCodec( 98): [OMX.Nvidia.h264.decode] video dimensions are 1280 x 720

I/OMXCodec( 98): [OMX.Nvidia.h264.decode] Crop rect is 1280 x 720 @ (0, 0)

D/NvOsDebugPrintf( 98): NvRmPrivGetChipIdStub: Could not read Tegra chip id/rev

D/NvOsDebugPrintf( 98): Expected on kernels without Tegra3 support, using Tegra2

E/OMXCodec( 98): [OMX.Nvidia.h264.decode] ERROR(0x80001000, 2)

E/MediaPlayer( 1202): error (1, -2147483648)

E/MediaPlayer( 1202): Error (1,-2147483648)

W/YouTube ( 1202): youtube.core.player.YouTubePlayer$InternalListener.onError:714 MediaPlayer error during prepare [what=1, extra=-2147483648]

W/YouTube ( 1202): youtube.core.player.YouTubePlayer$InternalListener.onError:725 Retrying MediaPlayer error [retry=1, max=3]

With the XOOM libnvomx.so, YouTube will not play wihtout HQ either.

Any ideas from people on what to look for and where, and how to debug what is actually going on would be awesome. I know plenty of C and Java so understanding the code is not a big problem. Knowing where to start looking is much harder :P

Here is also a list of the compiled files from the libstagefright stuff, they are quiet a few and it's hard to know if any of them are "dummy" or not. Not sure if any of them can be "switched" or if they need to be linked together at compile time.

libstagefright.so

libstagefright_amrnb_common.so

libstagefright_avc_common.so

libstagefright_enc_common.so

libstagefright_foundation.so

libstagefright_omx.so

libstagefright_soft_aacdec.so

libstagefright_soft_amrdec.so

libstagefright_soft_g711dec.so

libstagefright_soft_h264dec.so

libstagefright_soft_mp3dec.so

libstagefright_soft_mpeg4dec.so

libstagefright_soft_vorbisdec.so

libstagefright_soft_vpxdec.so

libstagefright_yuv.so

libstagefrighthw.so