yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] kfxdadev:
Netflix: some progress (audio works, no video)

Hi,

I build my own CM10 using fattire's build instructions. With CM10, the netflix UI comes up and the videos are listed, but when you touch the arrow to play a video, you see the controls, but the video does not play. For those interested in the gory details, a logcat is available at: http://pastebin.com/BFskV3fN. The key element is there is an assert that fires on ACodec.cpp line 3170.

Anyway, after spending some time tracking the problem in gdb, it seems the crash may come from the OMX.TI.Video.Decoder component. To test this theory, I moved the google software H264 decoder (OMX.google.H264.decoder) ahead of the OMX.TI.720P.Decoder in the Decoders list in etc/media_codecs.xml.

With this change, I no longer get the assert on ACodec.cpp, and I can hear audio from the Netflix videos I play. Unfortunately, I still see a black screen, so the actual video doesnt show up, but progress is progress, right?

With my change, youtube videos continue to play perfectly (audio as well as video). I haven't tried other sources of video.

I believe that the libOMX.TI.Video.Decoder.so and libOMX.TI.720P.Decoder.so (as well as possibly the libOMX.TI.AAC.Decoder.so) are likely incorrect/incompatible with our current state of CM10 - either kernel, graphics libraries or something else. I think at this time, we get these OMX libraries from CyanogenMod.

I'm sure krylon360, keyodi, eyeballer, sluo will fix this; I just wanted to provide data for them. Hope this helps!
[Nook Color Android Development] jh1521:
I had one more episode of SoD this morning on my 10/20 build. This time with battery almost completely charged, after sleep for about 6h. backlight was on, as in the previous instance.
[Nook Color Android Development] unknown_world:
We need libion and hwcomposer.omap3 for HW Video Decoding. libion is simple you just need include files But for hwcomposer.omap3 we need to do lot of changes.

Your can successfully load libOMX.TI.720P.Decoder.so or any other libOMX*** but applying the attached patches, but we can't render video at.
[Nook Color Android Development] bowguy:
Pulled
[Nook Color Android Development] aludal:
jh1521:

several questions if I may:

1. What version of (Adobe) Flash Player was used/sideloaded, to work on your "10/20" build?

2. Does Netflix.com work? I mean, a desktop Web site, does it show movies?

3. How much of Veetle, Vimeo HD/HQ streams can you play on your NC, if any?

I couldn't care less about Open GL/EGL and all the hoopla about amount of "Butter" on NC, but a decent video playback is serious plus for me.

Thank you
[Nook Color Android Development] lekofraggle:
Aludal,

I have flash version 11.1.115.1 installed. I have netflix and hbo go, and neither of them work with or wothout opengl. I know some of the devs got netflix working, but I think it involved kernel tweaks.

The opengl is much less stable.

Have fun.

~leko

Sent from my NookColor using Xparent Cyan Tapatalk 2
[Nook Color Android Development] aludal:
Thank you for your answer, lekofraggle. I had that very Flash version installed, then 2 or 3 older 11.x.x. versions, they didn't work. If you know the secret how to make this feat on Alpha 1 (not "10/20" by jh1521 which is I believe not public), please do tell.
[Nook Color Android Development] lekofraggle:
Well,

I am not using the public alpha, I am building myself, but it should work. It worked since Sept. I think.

I installed it on ics a while ago, then I tried it out on one of my opengl builds. It worked.

When I rebuilt without open gl, it still works.

I would install it, and then open flash settings. Then, click firefox or opera when it asks which browser.

Set the settings and go to adobe's testflash site.

Good luck

~Leko

Sent from my NookColor using Xparent Cyan Tapatalk 2
[Nook Color Android Development] eyeballer:
Just FYI there were some major commits to the upstream CM source for omap3, as a result builds are currently broken. We're working on getting everything up asap, but you'll need to be patient :)
[Nook Color Android Development] aludal:
Well, that's a good news (eyeballer's, I mean). I might hold on till Alpha 2 then.

lekofraggle:

I wonder what was left out/broken in Alpha 1 build, then? Hopefully someone will pick up some good advice from lekofraggle and jh1521 to include them in Alpha 2/or whatever the next build will be.

On completely other issue: has anyone an advice for better than "stock" DSP Manager? Or maybe some Sound Booster app? Sound sounds at least 20 dB lower: just like it was before DSP/Nook Tweaks arrival for first nightlies of CM7
[Nook Color Android Development] kfxdadev:
Current build issues: more info (issues remain)

Hi,

A big check-in from upstream in hardware/ti/omap3 broke the build. The build failure can be fixed by moving

hardware/ti/omap3/omx/video/src/openmax_il/video_decode/src/ion.h

to

hardware/ti/omap3/omx/video/src/openmax_il/video_decode/inc

The build then completes. It boots for me right now, but I haven't done a make clobber. eyeballer has done a make clobber, but it doesnt boot for him.

Also, youtube has stopped working for me with this checkin. No netflix, either.

Since my current build is getting a little further than eyeballers build, here's a logcat of the youtube video not playing issue:

http://pastebin.com/fjaD5jev

Clearly, the hardware decoders are being used. The relevant crash is happening on an assert at OMXNodeInstance.cpp:141 .

Also, my make clobber did complete, but I havent tried it yet.

Hope this helps!
[Nook Color Android Development] unknown_world:
@keyodi any plans to update sgx drivers?
[Nook Color Android Development] xdp:
Will this upstream check-in help Nook performance at all?
[Nook Color Android Development] runningslow:
I've tried with 2 different A2DP devices... Is it a known issue that you can't stream BT audio? I tried a quick cursory search, but didn't find anything.
[Nook Color Android Development] krylon360:
I already know what that issue is. Some of our OMX stuff was compiled from the omap3-compat source. Will just need to update our props.

*NOTE about below comment*

I fixed this stuff BEFORE arcee pushed the newest omap3 source to cm. Will need to do a build tonight and test again.

btw. I've got HD YouTube working as well as H264 Videos working (Using TED to test) NF Audio works natively now w/o moving the software decoders around.

Subtitles work as well. lol. So yeah, I fixed Netflix for the...Video seeing impaired??

Hope to have NF Video working this week. Just need to make a few kernel changes.

These changes aren't pushed yet. Need to submit a patch to CM, and push a change to our media_codecs.xml
[Nook Color Android Development] unknown_world:
Thankyou very much. Can you please post your repos local_manifest.xml i want to test it. or provide a diff file.
[Nook Color Android Development] krylon360:
wont be able to until tonight.
[Nook Color Android Development] unknown_world:
When ever you are ready, please post info i will be waiting eagerly
[Nook Color Android Development] fattire:
Shaweeeeeeeet!
[Nook Color Android Development] krylon360:
wont be until I get home from work. Since I dont have anything pushed to git, i'll just post a gist.

See what happens when you don't take me to the BBQ and eyeballer slaps me in IRC. :P
[Nook Color Android Development] aludal:
Originally Posted by krylon360

I 've got HD YouTube working as well as H264 Videos working (Using TED to test) NF Audio works natively now w/o moving the software decoders around.

Subtitles work as well. lol. So yeah, I fixed Netflix for the...Video seeing impaired??

Hope to have NF Video working this week. Just need to make a few kernel changes.

These changes aren't pushed yet. Need to submit a patch to CM, and push a change to our media_codecs.xml

Exciting news, thank you!
[Nook Color Android Development] unknown_world:
No problem, you got it working that enough for me for now. I use my nook just to watch movies and read some ebooks. so you can understand my excitement.

Any comment on sgx drivers update?
[Nook Color Android Development] krylon360:
not my department. Sluo/Keyodi?
[Nook Color Android Development] jh1521:
Here's a logcat from one instance of SoD on my 10/20 build.o
[Nook Color Android Development] steven676:
There's no pressing need for one that I know of, unless we get dsscomp going properly (which seems a less remote possibility than it did a few weeks ago). We've tested all three of the available PVR driver versions(*) and haven't seen much of a difference(**) -- if anything, the current driver we're using is the fastest.

Was there a particular problem concerning GL that you had in mind?

(*) There are three driver versions which we have available to us, from different sources:

1.8@789263: this is the driver we've been using since CM9/ICS. It comes from Rowboat, and is intended for TI's Sitara and DaVinci families (these have the same silicon as OMAP3s, but are targeted at markets other than handsets and tablets, and are supported by a different group of people inside TI).

1.10@956079: these are the latest drivers available from Rowboat.

1.8@785978: these are the drivers which are used by the IdeaPad A1 and the LGE Sniper. I believe they come from TI's OMAP group, but I'm not 100% sure of their origin. Notably, these are the only drivers we have which support hwcomposer functionality.

(**) I may have a fix for the GL performance problems coming -- need to do some more testing first. If I'm correct, the problem is independent of the driver version in use.
[Nook Color Android Development] unknown_world:
Thankyou very much for a detail post. Compare to LGE Sniper and few other omap3 devices our nook performance is very poor that's the reason for asking about sgx drivers.

If you can share your fix i will be very happy to checkout,test n enjoy.
[Nook Color Android Development] unknown_world:
@steven676

@krylon360

Waiting for your patches
[Nook Color Android Development] krylon360:
Fix has been submitted. There was another issue that caused the build to fail, which is also in this patch.

http://review.cyanogenmod.com/#/c/25283/

Feel free to test/+1 it.

OGL fix is pushed up so just resync.

Right now Video is broken due to the new omap3 source. I am working on getting it fixed. Just takes time to debug.

For those that want to help, it's crashing on LCML due to a DSP issue.

That's all I know of for now.
[Nook Color Android Development] unknown_world:
Is there any other patches i am still getting the same errors. some GraphicBufferAllocator errors..
[Nook Color Android Development] krylon360:
that's not really saying much...

Make error's? or errors within the system?
[Nook Color Android Development] unknown_world:
errors from logcat.

D/TIOMX_CORE( 3726): Found component OMX.TI.720P.Decoder with refCount 0 pHandle (0x411d7cb8)

D/720p_OMX_VideoDecoder( 3726): 326 ::: In OMX_ComponentInit ***

D/720p_OMX_VideoDecoder( 3726): 720p VIDDEC OMX Component Version : DEC_3630_06_11_2012

I/OMXCodec( 3726): [OMX.TI.720P.Decoder] AVC profile = 100 (High), level = 31

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameWidth is 640

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameHeight is 480

D/720p_OMX_VideoDecoder( 3726): VIDDEC_GetParameter ::: 1261 Buffer size = 614400

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameWidth is 1280

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameHeight is 720

D/720p_OMX_VideoDecoder( 3726): VIDDEC_SetParameter ::: 1746 Buffer size = 1843200

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameWidth is 1280

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameHeight is 720

D/720p_OMX_VideoDecoder( 3726): VIDDEC_GetParameter ::: 1261 Buffer size = 1843200

D/720p_OMX_VideoDecoder( 3726): Crop Width = 0, Crop Height = 0

D/720p_OMX_VideoDecoder( 3726): VIDDEC_GetConfig ::: 2178 Croppped width = 1280, Cropped Height = 720

D/720p_OMX_VideoDecoder( 3726): eError = 0

I/OMXCodec( 3726): [OMX.TI.720P.Decoder] video dimensions are 1280 x 720

I/OMXCodec( 3726): [OMX.TI.720P.Decoder] Crop rect is 1280 x 720 @ (0, 0)

D/720p_OMX_VideoDecoder( 3726): VIDDEC_SetParameter:1569 In VideoDecodeEnableAndroidNativeBuffers in VIDDEC_SetParameter

D/720p_OMX_VideoDecoder( 3726): VIDDEC_SetParameter:1573 IN VIDDEC_SetParameter, in if-condition

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameWidth is 1280

D/720p_OMX_VideoDecoder( 3726): pPortDef->format.video.nFrameHeight is 720

D/720p_OMX_VideoDecoder( 3726): VIDDEC_GetParameter ::: 1261 Buffer size = 1843200

D/720p_OMX_VideoDecoder( 3726): VIDDEC_GetParameter:974 VideoDecodeGetAndroidNativeBufferUsage

W/GraphicBufferAllocator( 1230): alloc(1280, 720, 27, 00002b00, ...) failed -22 (Invalid argument)

E/SurfaceFlinger( 1230): GraphicBufferAlloc::createGraphicBuffer(w=1280, h=720) failed (Invalid argument), handle=0x0

E/BufferQueue( 1230): [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

E/OMXCodec( 3726): dequeueBuffer failed: Invalid argument (22)

E/OMXCodec( 3726): [OMX.TI.720P.Decoder] Allocate Buffer failed - error = -22

F/OMXNodeInstance( 3726): frameworks/av/media/libstagefright/omx/OMXNodeInstance.cpp:141 CHECK_EQ( ((OMX_COMPONENTTYPE*)mHandle)->GetState( mHandle, &state),OMX_ErrorNone) failed: -2147479535 vs. 0
[Nook Color Android Development] krylon360:
ok so system error. the patch fixed the make errors. Still working on fixing the system error. Hope to get some time tonight to fix it.
[Nook Color Android Development] krylon360:
just pushed a change up to the device that will allow all home builds to complete without having to move around the headers in the decoder source.
[Nook Color Android Development] jh1521:
Hmm the build is currently broken for me, just did a repo sync... I get no specific error message, but the build process stops along the way and I don't get an update .zip

Lemme see if I can figure out what's broken.
[Nook Color Android Development] krylon360:
If you are building from home, I made a big change to vendor tonight. If you get sync errors, its due to having a local change in your vendor tree.

RM -rf vendor/bn then resync.
[Nook Color Android Development] krylon360:
Most likely its a error from the OMX source. Make sure your local_manifest is pulling the device tree from NookieDevs. It has the fixes for the build to complete.
[Nook Color Android Development] jh1521:
I get no sync errors, and no compilation errors - but the compile stops prematurely nonetheless. Weird.

It did before, did that change recently (as in, during the last 4 days). Anyway I'll check when I get back home.
[Nook Color Android Development] fattire:
Indeed. What's the last thing you see in the log before the build stops?
[Nook Color Android Development] adm1jtg:
Can you post how you achieved this so we can duplicate it and post to the masses?
[Nook Color Android Development] krylon360:
what adm said. We've been working on this. Both sluo and myself have it fully working, but we did it 2 different ways.

EDIT

never mind. We actually fixed it yesterday with a test branch I made in device, and the vendor push I did last night.
[Nook Color Android Development] lollyjay:
How then?
[Nook Color Android Development] krylon360:
repo sync

then

dspexec is no longer used. would need to change this line in init.encore.rc

service baseimage /system/bin/dspexec /system/lib/dsp/baseimage.dof

to this

service baseimage /system/bin/cexec.out /system/lib/dsp/baseimage.dof

you would also need to apply this gist which I will be submitting to CM.

This actually the core of the fix. Cexec allows DSP to load.

this gist allows videos to play.

https://gist.github.com/3928995

Enjoy.

device and vendor changes will be pushed tonight.

gist will be submitted as a patch to cm tonight as well.
[Nook Color Android Development] unknown_world:
I did the same changes you did but instead of https://gist.github.com/3928995 this patch i changed sgx drivers from lg sniper.
[Nook Color Android Development] krylon360:
nice, so if you didnt apply the gist, could you submit a pull request to keyodi's kernel branch and eyeballers vendor branch so we could test it out?

If it all works, then we can merge it in and be good. :)
[Nook Color Android Development] steven676:
Confirmed -- I rebuilt libstagefright without that patch (I was already using PVR 1.8@785978 for experiments with hwcomposer) and the codecs work just fine. Playback appears to be a lot faster too -- H.264 baseline profile 720p video actually plays smoothly now, and high profile is watchable. (If I understood the patch correctly, it was preventing the media framework from requesting that the codecs draw to native buffers -- I'm guessing that meant that the CPU had to copy the rendered frames to the framebuffer, which would indeed slow the process quite a bit.)

Basically, switch to the 1.8@785978 drivers and we should be good.
[Nook Color Android Development] unknown_world:
My repos and builds are all messed up as i was doing lot of debugging with lot of other codes (Divx, wmv etc..)i need couple of hours to clean it.

I think switching to 1.8@785978 is a good idea even hwcomposer is loading perfectly without any errors (Not able to render anything) but we can fix it too.
[Nook Color Android Development] unknown_world:
Hardware Video Decoding and Rendering with SGX Drivers 1.8@785978​

Github Trees

https://github.com/abimanyug/encore_kernel

https://github.com/abimanyug/android_device_bn_encore

https://github.com/abimanyug/proprietary_vendor_bn

local_manifest.xml - http://pastebin.com/TZwXbpXM

For those who can't build

cm-10-20121026-UNOFFICIAL-encore.zip

If have any problem please post it in this thread i will try my best to help
[Nook Color Android Development] aludal:
Thank you for all your efforts!

It boots.

HQ video on YouTube app (HTML5) works at about 360p, HD video runs as a slide show (it didn't before). Vimeo videos don't work

Any recommendation/link to working Flash Player .apk?

Chrome starts and hangs, as before.
[Nook Color Android Development] krylon360:
Comfirm # 2.

thanks unknown!

I can confirm, HWC does cause a minor issue. vids play in portrait but when it goes to landscape, the screen dies.

but..........

[YOUTUBE]NzbCH3Y7yws[/YOUTUBE]

Yes, the vid does kinda contradict what I just said, but i removed hwc. so we just need to touch up the source. Most likely the screen res portion within it.

we'll get everything pushed up tonight.
[Nook Color Android Development] steven676:
Yeah, 1.8@785 is pretty much required for hwcomposer. I've had it working and rendering the UI normally for quite a while, but there's all kinds of lag/frame dropping/tearing artifacts happening, so it's never been enabled generally.

1.8@785 is also the PVR version being used by the p970 and the IdeaPad A1, so my guess is that it's the version that TI's OMAP group is providing to its customers (as opposed to the team maintaining the rowboat blobs for Sitara/DaVinci).

https://github.com/steven676/ti-omap-encore-kernel3/commits/encore-omap3-3-dsscomp is the kernel tree I'm working off of (you will need 1.8@785 blobs, else you'll get nothing on the display).
[Nook Color Android Development] dparrothead1:
HBOGo works, Pandora works and YouTube works. All in landscape and portrait.....I did have to reapply the TabletUI zip. BTW, I used the encore.zip.

Thanks!!!! :thumbup::D:)

Update: Still can't get flash to work.

I was experiencing SOD every time. Left the screen off for 20 minutes and was able to wake it using the "n".

USB now recognizes the charger cable without the screen on.

Little bit laggy changing screens, but looking good.
[Nook Color Android Development] jamesh0317:
'repo sync' fails after updating repo

'repo sync' fails after updating repo

Evidently you also need to update git-core when you update repo (or workaround by 'sync -j1') because this version of repo requires at least git 1.7.2.

This is the error:

To fix I added the git ppa to my apt sources:

sudo add-apt-repository ppa:git-core/ppa

and

sudo apt-get update
sudo apt-get install git-core

Now git will update to the latest version whenever you 'apt-get upgrade'.

Thanks to here: https://groups.google.com/forum/?fromgroups=#!topic/repo-discuss/tnIWemm8M6k
[Nook Color Android Development] pastordl:
Thanks for the "unofficial" build. Really enjoy the update.

Of the original list:

WHAT DOESN’T YET WORK?

Done - HD YouTube (regular SD is hardware-accelerated, however)

Netflix (we know *someone* will ask)

Done - The home (aka “n”) button doesn’t wake the device from sleep. We’re working on it.

OpenGL rendering has been turned off (due to poor performance) - so any apps that need it (such as Chrome) may not take advantage of OpenGL..

Done - A weird bug: Wall-power charging isn’t detected when the charger is plugged in while sleeping - so be sure to wake the device before plugging in your A/C charger (usb charging is fine)

Possibly other stuff.

Wifi's working great. Wallpaper scrolling back.

Only Netflix and OGL for major items. Great.

Thanks to all who got it this far.

Nook Color forever

Added a link in

[ROM] CyanogenMod 10 Alpha 1 for Nook Color forum

new link:

https://dl.dropbox.com/u/109323995/cm-10-20121026-UNOFFICIAL-encore.zip

Hopefully more can benefit
[Nook Color Android Development] krylon360:
yeah, that list needs to be updated.

ALL DONE!
[Nook Color Android Development] virx14:
Tried to build it on Ubuntu 12.10 for the first time, everything built fine, but I am getting black screen on boot. adb logcat showing the errors below in the loop. Any ideas what may be wrong there? (alpha1 works perfectly well for me, no SoDs and very snappy)

D/AndroidRuntime( 2215): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 2215): CheckJNI is OFF
D/dalvikvm( 2215): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 2215): ODEX file is stale or bad; removing and retrying (/cache/dalvik-cache/system@framework@core.jar@classes.dex)
I/SurfaceFlinger( 2214): SurfaceFlinger is starting
I/SurfaceFlinger( 2214): use dithering
I/SurfaceFlinger( 2214): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/FramebufferNativeWindow( 2214): couldn't open framebuffer HAL (Not a typewriter)
E/FramebufferNativeWindow( 2214): couldn't open gralloc HAL (Not a typewriter)
E/SurfaceFlinger( 2214): Display subsystem failed to initialize. check logs. exiting...
[Nook Color Android Development] krylon360:
yeah, home builds are down unless you are using the correct kernel source from steven676. it'll be his dsscomp branch.
[Nook Color Android Development] Divine_Madcat:
Friendly reminder - this thread is not a place for thanks, or anything other than real DEV related stuff. Problems with the released alpha should be kept in it's respective thread..
[Nook Color Android Development] RandomPooka:
I'm having trouble finding the actual alpha thread here .. Or anything other than old cm7 Nook builds. I'd love to give it a go, as well as building locally since I've built countless builds of cm7 for 3 devices and cm9 for another. I'm not completely unfamiliar with the dev process, but is there a comprehensive post containing current repos to sync and remotes that I can add to my current Bionic cm9 tree? Or is there no longer cm9 development happening?

I'm fine with adding a jellybean tree, just was hoping cm9 was being worked on, as JB doesn't do anything for me personally that ICS didn't already have under control. Not to mention that I already have a cm9 build environment established.
[Nook Color Android Development] ziggy34:
Here is the alpha thread

http://xdaforums.com/showthread.php?p=32905547

Sent from my A500
[Nook Color Android Development] lollyjay:
Tried link got error 509

Sent from NC XDA CM10 Alpha 1

EDIT: Link fixed! Thanks!
[Nook Color Android Development] Nurdyboy:
link down

Dose any one have a working mirror link of this not in dropbox, The 509 error will be up for some time
[Nook Color Android Development] lollyjay:
Okay, I finally was able to view YouTube HQ. Great job guys!

Sent from NC XDA CM10 Alpha 1