yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] asturel:
in ics, the 8x50 target removed from the android.mk , so it dont even pull the codec registry table. i havent tried too much on cm9, but on cm10 it couldnt detect the profile level, and get some paramconfig error too (afaik related to video resize* thing)

D/VLC ( 8481): [0x2a210834]: mediacodec decoder using OMX.qcom.video.decoder
.avc
I/OMXClient( 8481): Using client-side OMX mux.
W/QCvdec ( 113): Setparameter: unknown param 1082511673
E/OMXNodeInstance( 113): OMX_EnableAndroidNativeBuffers failed with error -2147
479526 (0x8000101a)

diceplayer:

I/OMXCodec( 8662): [OMX.qcom.video.decoder.avc] Non-Interlaced format detected
I/OMXCodec( 8662): [OMX.qcom.video.decoder.avc] AVC profile = 0 (Unknown), level
= 0
I/OMXCodec( 8662): [OMX.qcom.video.decoder.avc] Decoder should be in arbitrary m
ode
W/QCvdec ( 113): get_config: unknown param 117440527
I/OMXCodec( 8662): [OMX.qcom.video.decoder.avc] video dimensions are 1280 x 544
W/QCvdec ( 113): Setparameter: unknown param 1082511673
E/OMXNodeInstance( 113): OMX_EnableAndroidNativeBuffers failed with error -2147
479526 (0x8000101a)
I/OMXCodec( 8662): [OMX.google.h264.decoder] Non-Interlaced format detected
I/OMXCodec( 8662): [OMX.google.h264.decoder] AVC profile = 0 (Unknown), level =
0
I/OMXCodec( 8662): [OMX.google.h264.decoder] Decoder should be in arbitrary mode

I/OMXCodec( 8662): [OMX.google.h264.decoder] video dimensions are 320 x 240
I/OMXCodec( 8662): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)
V/MediaPlayer( 8662): MEDIA_SET_VIDEO_SIZE
V/MediaPlayer( 8662): MEDIA_PREPARED
E/OMXCodec( 8662): [OMX.google.h264.decoder] Codec's input buffers are too small
to accomodate buffer read from source (info->mSize = 65536, srcLength = 102046)

E/MediaPlayer( 8662): error (1, 110729)
E/MediaPlayer( 8662): start called in state 0
E/MediaPlayer( 8662): error (-38, 0)
E/MediaPlayer( 8662): Error (1,110729)
E/MediaPlayer( 8662): stop called in state 0
E/MediaPlayer( 8662): error (-38, 0)

xvid:

I/OMXCodec( 8631): [OMX.qcom.video.decoder.mpeg4] Decoder should be in arbitrary
mode
W/QCvdec ( 113): get_config: unknown param 117440527
I/OMXCodec( 8631): [OMX.qcom.video.decoder.mpeg4] video dimensions are 720 x 304

W/QCvdec ( 113): Setparameter: unknown param 1082511673
E/OMXNodeInstance( 113): OMX_EnableAndroidNativeBuffers failed with error -2147
479526 (0x8000101a)
I/OMXCodec( 8631): [OMX.google.mpeg4.decoder] Decoder should be in arbitrary mod
e
I/OMXCodec( 8631): [OMX.google.mpeg4.decoder] video dimensions are 352 x 288
I/OMXCodec( 8631): [OMX.google.mpeg4.decoder] Crop rect is 352 x 288 @ (0, 0)
V/MediaPlayer( 8631): MEDIA_SET_VIDEO_SIZE
V/MediaPlayer( 8631): MEDIA_PREPARED
W/SoftMPEG4( 8631): PVInitVideoDecoder failed. Unsupported content?
E/OMXCodec( 8631): [OMX.google.mpeg4.decoder] ERROR(0x80001001, 0)
E/MediaPlayer( 8631): error (1, 110729)
E/MediaPlayer( 8631): start called in state 0
E/MediaPlayer( 8631): error (-38, 0)

unfortunately i cant try it out w/ this patch (i dont have shell for x64 comp w/ android source)
[Android Software/Hacking General [Developers Only]] NicoCaldo:
Can i use it in my LG p690 or i must port for my device?

Inviato dal mio LG-P690 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] eagleeyetom:
It's a piece of great work. Kudos for you, mate!
[Android Software/Hacking General [Developers Only]] benjamingwynn:
So what did you change? I can't find the commit for your changes, and I'm not too familiar with frameworks_base.
[Android Software/Hacking General [Developers Only]] mstfkaratas:
you need to look at ics branch for Ganster41's commit, by default github opens jellybean branch. Here is the commit about OMX
[Android Software/Hacking General [Developers Only]] Maxi8p:
Work this rom on LG P350
[Android Software/Hacking General [Developers Only]] cybojenix:
Yes this works on p350,but we loose lq video playback
[Android Software/Hacking General [Developers Only]] warface123:
but everyone whants HQ
[Android Software/Hacking General [Developers Only]] ZhuShen:
three

Oh,ty... I love you =* :D
[Android Software/Hacking General [Developers Only]] Eskuero:
Can someone help, I've used the port of the fix to jellybean, but camcorder still doesn't work, I've beeing logcating so, I got the error output:

E/OMXCodec( 106): failed to allocate node OMX.qcom.video.encoder.h263
W/StagefrightRecorder( 106): Failed to create the encoder
D/CameraSource( 106): reset: E
W/CameraService( 106): attempt to use a locked camera from a different process (old pid 106, new pid 4170)
D/CameraSource( 106): reset: X
E/MediaRecorder( 4170): start failed: -2147483648

So I suppose the problem was OMXCodec.cpp with a broken, uncorrect configuration, and yes, I found this:

http://pastebin.com/hJUgFXAS

Here:

https://github.com/Ganster41/androi...3d28feb80cb/media/libstagefright/OMXCodec.cpp

But now, I've no idea howto edit it to get it working... D:
[Android Software/Hacking General [Developers Only]] Ganster41:
Please, if you want my help with integration problem, attach logcat at the time, when you try to use vide playback/camcorder. I can't help without any information.

JB port are untested, and I think doesn't work now. It present only for reference, if anybody want to fix it himself.
[Android Software/Hacking General [Developers Only]] Eskuero:
Thanks

-------------------------------------------------

Okey, I've read you edit your last post, I'll continue try to find a way to fix myself.
[Android Software/Hacking General [Developers Only]] Ganster41:
Yes, as I told, I can't help with JB integration for now. But I know, "failed to allocate node OMX.qcom.video.encoder.h263" is not good message. It looks like Google changed OMX API again, and integration need more work...

Decoder doesn't work too?
[Android Software/Hacking General [Developers Only]] Eskuero:
Decoder works perfectly for very low quality videos (320x240), on higher resolution, sometimes lags.

Youtube HQ, works much more faster, but the same, sometimes lags an skip lots on frames.

-----------------------------------------------------------

Until have no idea, I'll test if it's something broken on my tree, so compiling cm9 now, will report soon.
[Android Software/Hacking General [Developers Only]] Ganster41:
Can you please upload logcat output, when your play video too? I want to inspect it for future workarounds...

PS: And one more addition: Samsung users can try to use theirs libOmxVidEnc.so, if encoder doesn't work. If i not mistaked, your libcamera use getBufferInfo function, and it doesn't present in Blade's library.
[Android Software/Hacking General [Developers Only]] Eskuero:
Here's a logcat using Youtube HQ

It's an HTC device, I'm using our libOmxVidEnc.so from gingerbread, and yes, we are using getBufferInfo:

http://git.cryptomilk.org/projects/...n&id=001c42d76683e995b5b1c159428eba57a646f735
[Android Software/Hacking General [Developers Only]] Ganster41:
Looks like you are try to use your devices native libs, yes? I tried to use HTC libs, while make port too, but its give me many unknown errors(can't allocate buffer with needed size, and others). I think it so old. You can try ZTE libs from my ROM. That post can be usable for you too, thanks to cougarcougar for it.
[Android Software/Hacking General [Developers Only]] Rashed97:
OK, JB with this ported to it boots, but I've been getting stuck at a boot loop before I even tried this patch so I can't try video playback yet. Will try soon though
[Android Software/Hacking General [Developers Only]] adfad666:
omx ALL the things!

I'll give this a look and see what I can do. Thanks!
[Android Software/Hacking General [Developers Only]] sellers86:
I love you.
[Android Software/Hacking General [Developers Only]] miroslav_mm:
Did you change libmm-adspsvc.so ? This is main file for QDSP and OpenMax codecs. I had a lot the same errors when I changed this file. It working together with kernel driver kernel\arch\arm\mach-msm\qdsp5\

some technical characteristic from Qualcomm about msm7X27:

Board

High-performance ARM1136JF-S 600 MHz application processor:

ARM® architecture v6

32 kB instruction and 32 kB data cache

256 kB ARM11™ L2 cache

4 kB level-one tightly-coupled memory (TCM)

8-stage pipeline, branch prediction with return stack

Supports the ARM and Thumb instruction sets, and Jazelle™ technology to enable direct execution of Java byte-codes

Low-interrupt latency

Industry standard ARM926EJ-S 400 MHz embedded microprocessor subsystem

16 kB instruction and 16 kB data cache

ARM version 5TEJ instructions

Higher performance five-stage pipeline, Harvard cached architecture

Higher internal CPU clock rate with on-chip cache

Internal watchdog and sleep timers

QDSP5000 320 MHz application digital signal processing (ADSP) 512 kB L2 cache

QDSP4000 122.88 MHz modem digital signal processing (MDSP)

Video

Dedicated support for market-leading codecs such as MPEG-4, H.263, H.264, and Windows Media®

Integrated stereo wideband codec for music/digital clips

CMX® – 128 polyphonic MIDI wavetable synthesizer

Audio codecs: MP3, AMR-WB/+, AAC, AAC+™, EAAC+, and Windows Media

Streaming video (Qtv™)

WVGA (800 * 480) at

– 30 frames per second (fps) playback for MDDI

– 60 fps for RGB(iLCDC) display

VGA (640 * 480) at 15 fps streaming

Support for video codec formats: MPEG-4, H.263, H.264, Windows Media, and more

Streaming protocols: RTSP/SDP over TCP; RTP/RTCP over UDP

Audio support: AMR-NB, AMR-WB/+, AAC, AAC+, EAAC+, Windows Media, and more

Video encoder (Qcamcorder™)

WVGA (800 * 480) video encode and decode at 30 fps

High frame rate encoding: 120 fps at QVGA, 1.5 Mb/s

Support for video codec formats: MPEG-4, H.263, and H.264

Audio support:AMR-NB and AAC

Processing such as fade, overlay, zoom, effects, dubbing, cut and merge, wipe, etc.

Video telephony services (Qvideophone™)

Video telephony at 15 fps, QCIF resolution, 64 kb/s

Video codec formats support: H.263 profile 0/3 (Level 10), MPEG-4 simple profile

Audio support:AMR-NB

Processing such as conferencing, call waiting, picture-in-picture, 2-stage dialing, mute, push-to-video, zoom, speakerphone, preview, encode rotation, memory management, etc.

Graphics support

3D graphics core

Up to WVGA (800 * 480) display support

256 kB internal memory

3D support: OpenGL ES 1.1, 2.0, JSR 297, D3DM

2D support: OpenVG, SVG, JSR226, GDI, DDraw

Performance:

27 megapixel triangles/s (peak 3D triangle rate)

166 megapixel/s peak 3D pixel draw rate

1660 megapixel/s effective 3D pixel rate

532 megapixel/s peak 3D pixel reject rate

207 megapixel four-component-vector instructions/
[Android Software/Hacking General [Developers Only]] Ganster41:
I analyzed opensource Qualcomm OMX libs for new platforms, and I think, we can use direct rendering to NativeWindow, without SoftwareRenderer :)

But don't know how to delete green line in this case...
[Android Software/Hacking General [Developers Only]] Eskuero:
That means decoder working on jb without softwate accec?

Seems like your untested patch for cm10 works better than your tested cm9 patch on my device.

On cm9 recording mode starts, but shows a lots of green lines everywhere, so the video is completely unwatchable.
[Android Software/Hacking General [Developers Only]] Ganster41:
Where I told about JB? I NOT interested in JB now, because it still buggy and laggy on powerful cores too...

With direct renderer we doesn't need lock texture, and copy buffer to it on any frame.
[Android Software/Hacking General [Developers Only]] ikunalgautam:
Genius born !!!!! :eek:
[Android Software/Hacking General [Developers Only]] Gilmar Mess:
My dream it's work in Galaxy Ace *-*
[Android Software/Hacking General [Developers Only]] fame220:
On cm9(galaxy ace) have some problems: (Post from Wayland_Ace)

Dont know how to fix:

Quote:

E/Adreno200-ES20( 318): <qgl2DrvAPI_glEGLImageTargetTexture2DOES:2552>: GL_INVALID_OPERATION

E/Adreno200-ES11( 318): <glEGLImageTargetTexture2DOES:469>: GL_INVALID_OPERATION

E/SurfaceTexture( 318): [SurfaceView] error binding external texture image 0x54aed8 (slot 0): 0x502

And here is logcat:

http://pastebin.com/iJ755RK8
[Android Software/Hacking General [Developers Only]] gabrielking9:
On Cm9 for galaxy mini both HQ and LQ vídeo playback work on youtube. I'll test in gallery to see how it work.
[Android Software/Hacking General [Developers Only]] gabrielking9:
In gallery it is working good sometimes it's freezes for ~0.1 second and back to normal. I'll test how it work with Mx player using HW codec.

---------- Post added at 11:54 PM ---------- Previous post was at 11:37 PM ----------

In the MX player the same 0.1 second freeze and back to normal. It is while playing de video not before beggin play.
[Android Software/Hacking General [Developers Only]] zeeshanhassan:
is your videorecording smooth after the implementation? was it smooth before it too?
[Android Software/Hacking General [Developers Only]] Ganster41:
Who get a problems on Galaxy Ace, can try to use yours original libs from GB. May be your Adreno has different firmware, and doesn't support NV21 color format... Original libs can be very laggy, but if it works - it's EGL problem, and it may require other solutions...
[Android Software/Hacking General [Developers Only]] erikcas:
Don't think there is much of a problem for Ace. It is very similar to Gio. Just sent a fresh image to lagloose which he can port to Ace in no time. Let's see..

Verstuurd van mijn GT-S5660 met Tapatalk
[Android Software/Hacking General [Developers Only]] erikcas:
Wayland had only just begun implementing videorecording to the cameraHAL on Ace and similars. So I think not

Verstuurd van mijn GT-S5660 met Tapatalk
[Android Software/Hacking General [Developers Only]] gabrielking9:
Video recording is not working on Cm9 galaxy mini it is just working on Cm10 if TheWhisp know how to fix video recording on Cm9 so i'll record a video.
[Android Software/Hacking General [Developers Only]] Frankin96:
Here cm9 galaxy gio, ported mini lib's , working very good .. camcorder not working , but I will try with external app
[Android Software/Hacking General [Developers Only]] Gilmar Mess:
Some Hope for the Ace?

*-*
[Android Software/Hacking General [Developers Only]] b3rvirus:
yes, there's a hope..

here zte blade already has almost full working CM9 (except FM radio)

so just wait patiently until the devs fix it and/or support them, but don't ask for ETAs :)
[Android Software/Hacking General [Developers Only]] neko95:
> will soon say good bye to GB, thanks!:good:
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
Is it necessary to build with gcc linaro 4.7.x?
[Android Software/Hacking General [Developers Only]] Frankin96:
No ..
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
Okay, so why the HQ videos still laggy :(

I patched the libstagefright files and made edit to the boardconfig of my device. Did I miss a step?

also please have a look at my boardconfig.mk modification :-/

Is it correctly modified?
[Android Software/Hacking General [Developers Only]] derealrobert2:
LG p690 for ics?
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
Anyone who has been successful in doing this could please help me and guide me a bit?
[Android Software/Hacking General [Developers Only]] Frankin96:
Are you using old omx lib's from gb ?
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
No :confused:

I just patched the libstagefright and boardconfig.mk and nothing else.

I missed something, right?
[Android Software/Hacking General [Developers Only]] Eskuero:
You should be using old omx libs, since there isn't other that you can use.
[Android Software/Hacking General [Developers Only]] asturel:
i got on my device on jb work mostly:

some meda_codecs.xml contains <Quirk name="defers-output-buffer-allocation"/> but it never get parsed by omxcodecs.cpp

the old legacy codecs (at least mine) needed it

so i added

quirks |= kDefersOutputBufferAllocation;

uint32_t OMXCodec::getComponentQuirks( in OMXCodec.cpp

now i get hwa video decoding in youtube app.

any other external app crashes. :/

nicer code

if (list->codecHasQuirk(
index, "defers-output-buffer-allocation")) {
quirks |= kDefersOutputBufferAllocation;
}
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
So, I can use the GB libs of my device?

Also, which all libs do I need? All starting with OMX?
[Android Software/Hacking General [Developers Only]] Eskuero:
Okey decoder, but encoder?

i was reading the codec_profiles.xml But I don't know how to implement the quirck, so I hope this can help.

Good!

How's your encoder going?
[Android Software/Hacking General [Developers Only]] :
P500

LASTKISS for p500 owners:

http://xdaforums.com/showpost.php?p=33564581&postcount=1669

Big thanks to Gangster....
[Android Software/Hacking General [Developers Only]] Ganster41:
Yes, but libs from Samsung are laggy on WVGA videos. If you need it too - you need to use that libs from my ROM.

Already advice this post from cougarcougar, it can be helpful.
[Android Software/Hacking General [Developers Only]] andrea210701:
Oh my god,i'm dreaming?:eek:no,but for me this hack is unusable,the phone reboot with a long video playback

Team A.W.M.P. on Tapatalk
[Android Software/Hacking General [Developers Only]] sid_rangra:
Can someone provide a flashable zip for this!

or can tell me here how to put this into the rom

device- Galaxy Fit s5670
[Android Software/Hacking General [Developers Only]] Frankin96:
Use the whisp rom from mini and insert all fit proprietary lib's and kernel
[Android Software/Hacking General [Developers Only]] NIMBAH:
According to our dev over on the X8 section :D
[Android Software/Hacking General [Developers Only]] Eskuero:
That's on cm9?
[Android Software/Hacking General [Developers Only]] gabrielking9:
Yeah
[Android Software/Hacking General [Developers Only]] The_Poison:
can anyone explain me the steps to apply this patch????Please
[Android Software/Hacking General [Developers Only]] NIMBAH:
It's not a patch, it's source code. Wait till a developer for your device compiles it and implements it in a ROM.
[Android Software/Hacking General [Developers Only]] The_Poison:
could you explain me?

I'm a beginner developer..
[Android Software/Hacking General [Developers Only]] Eskuero:
Did you already know how to build android from source?
[Android Software/Hacking General [Developers Only]] The_Poison:
yes, i've build cm9 from source
[Android Software/Hacking General [Developers Only]] dudeman1996:
Then you repo init the CM manifest, then use local_manifest to change the framework from CM's to Gansters
[Android Software/Hacking General [Developers Only]] Rashed97:
Just a little side note here:

Trying to run this with the framworks/av and frameworks/native patches for old EGL blobs on JB WILL NOT WORK

You'll get laggy video with both, and no video without the frameworks/av.

I think I've merged the fixes correctly and I'm building right now. I'll push to 2 repos in I get it to work.

However, so far, when it works correctly on JB, its sweet :D

Also I will put a flashable zip for JB here once it finishes building.
[Android Software/Hacking General [Developers Only]] The_Poison:
in what folder?? an example??
[Android Software/Hacking General [Developers Only]] Eskuero:
Okay I'm using ghe patch that Gangster have provided on this thread for frameworks/av and really it didn't fix nothing, but when you say the patches for frameworks/native what did you mean?
[Android Software/Hacking General [Developers Only]] dudeman1996:
nano .repo/local_manifest.xml

In that file you put:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="CyanogenMod/android_frameworks_base" />
<project name="Ganster41/android_frameworks_base" path="frameworks/base" />
</manifest>

Save and repo sync, then build as you would normally
[Android Software/Hacking General [Developers Only]] erikcas:
Is this thread about compiling CM?

Verstuurd van mijn GT-S5660 met Tapatalk
[Android Software/Hacking General [Developers Only]] The_Poison:
Ok thanks i've update the repo

root@gianlu-desktop:/home/gianlu/cm9# repo sync

... A new repo command ( 1.18) is available.
... You should upgrade soon:

cp /home/gianlu/cm9/.repo/repo/repo /root/bin/repo

Fetching projects: 2% (6/255) remote: Counting objects: 19, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 10 (delta 9), reused 10 (delta 9)
Unpacking objects: 100% (10/10), done.
From git://github.com/Ganster41/android_frameworks_base
+ 5a3af2c...850bd1b ics -> github/ics (forced update)
Fetching projects: 100% (255/255), done.
Syncing work tree: 100% (255/255), done.

frameworks/base/: discarding 17 commits
root@gianlu-desktop:/home/gianlu/cm9#

now i continue to compile normally?

I only must add - COMMON_GLOBAL_CFLAGS += -DQCOM_LEGACY_OMX in BoardConfig??

And than....i use my OMX libraries from my android_vendor ?
[Android Software/Hacking General [Developers Only]] dhalham:
What does the thread title tell you? ;)
[Android Software/Hacking General [Developers Only]] Eskuero:
The OP says that he can help you to merge the fix into your device, so the building step is one of it ;)
[Android Software/Hacking General [Developers Only]] erikcas:
I am stunned :)

http://xdaforums.com/showthread.php?t=1971645

http://xdaforums.com/showthread.php?t=1940425

are just the first two results when I google on build CM10 from source. With a little creativity this all is applicable to all devices. Could have saved you time, and keeps this thread clean to the topic, Modified libstagefright to use legacy Qualcomm OMX IL libs on ICS for MSM7x27 SoCs.

Absolutely no offense, but when I get an alert of something posted to this thread, and then I read about general CM10 compiling stuff, that to me is annoying.

Again, no offence, but could be just my problem :good:
[Android Software/Hacking General [Developers Only]] Eskuero:
I thought that the person who ask for it already knows how to build, what he wants to ask it's just how to implement the fix before build...

No offence too.
[Android Software/Hacking General [Developers Only]] sidewalk_:
Cool, man, very cool

One of my phone forum's dev managed to get this work on CM9 !
[Android Software/Hacking General [Developers Only]] zeubea:
In HTC Legend, Youtube HQ and Video HQ are working fine with your patched libstagefright, in cm9.1 using froyo libs. It is not intensively tested, but it is possible to play a 30 minutes video HQ without lag. As already told, embebed videos are shown as a black area when played in browser, but the overall result is impressive.

Great work. man!! :good:
[Android Software/Hacking General [Developers Only]] acerkumar:
Great work man your are the doctor for our bellowed LG optimus one like mobile's for ICS:(:D:D:D
[Android Software/Hacking General [Developers Only]] derealrobert2:
How about lg onet p690 the developer in ics was not yet fixed and we are waiting almost many month ago hubuhuhu

Many new release in ics but other not yet fixed. So selfish developer. ;))) please

Thanks. Hope you understand what we feel.
[Android Software/Hacking General [Developers Only]] Rashed97:
Just though I'd say this: it's not working in JB yet. Apparently they reworked some OMX stuff in JB that has to be fixed as well.
[Android Software/Hacking General [Developers Only]] gabrielking9:
That's why the name o thread is for ICS. ;p
[Android Software/Hacking General [Developers Only]] Rashed97:
Yes.. I've noticed.
[Android Software/Hacking General [Developers Only]] DJBhardwaj:
Guys, I want some help here

I used the patch + Gingerbread OMX Libs of my device

Now, the normal videos play flawlessly (LQ videos) & HQ videos play too but are laggy (frameskipping).

Here is the logcat: http://pastebin.com/ENqW3abx

If someone could please hint me for what I've done wrong or what should be corrected? It would be just so great!

:confused:
[Android Software/Hacking General [Developers Only]] filipe_t:
Thank you :) Now my X8 can have a taste of ICS fully working :D

It's good to see how this community work well :)