First of all, here is Ganster41's original post and HERE is a link:
Ganster41 said:
Hi, low-end devices users! I have good news for you
As you know, Qualcomm has ended support for their SoCs, based on ARMv6 core, and doesn't release OpenMax IL libraries for Android 4.0+. Someone was crying on Qualcomm's forum, someone try to understand, how to extend GB proprietaries to support new Google OMX extensions, but nobody try to modify libstagefright, and disable using new unimplemended functions...
I spent about a few weeks, learning stagefright architecture, and differents between GB and ICS OMX layers...and now I ready to show it to you
I have only ZTE Blade, and can make ROM only for it. You can download it here. In addition to worked hardware-accelerated video playback, and camcorder, it builded with Linaro GCC 4.7.1, and has a little UI speedup(if it not a placebo ). ROM based on KonstaT device tree, thanks him for it.
Oh, my Dropbox temporary blocked to public links. I upload ROM to letitbit too.
Modified framework's sources can be found on my github. Besides it, you need to add one global define to your device's BoardConfig.mk - COMMON_GLOBAL_CFLAGS += -DQCOM_LEGACY_OMX
UPD: I make same changes in CM10 sources tree, but it doesn't working, and I can't try to fix it, because haven't enough disk space to build CM10 ROM. I think, Google changes OMX API again, and it needs more fixes to get it working. You can download sources from here. For now I not interestid in CM10, because now it laggy and has some not good issues.
UPD2: 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.
UPD3: If you trying to make port for your device, this post can be helpful. Thanks to cougarcougar for it.
UPD4: We still get errors, if trying to play videos from some apps(e.g. Android browser) in not-fullscreen mode. gralloc or mmap returns error, when try to map buffers from NativeWindow. If anybody have ideas how to fix it, please write it here, or to my PM...
Important addition!
Devices based on MSM7x27 chips has two different versions of OMX libs.
"Oldt"(for froyo?) has an unknown padding between color components parts of returning buffer. I have fixed that for most videos, but some strange resolutions are still gets broken colors with green line on top.
"New" version are present in Samsung/LG devices, who has official Gingerbread ROMs. It returns correct buffer in dfferent color format(YV12, instead of NV21), but it laggy on VGA+ videos. Now don't know why. May be it convert resulting buffer to YV12 on CPU... I will try to understand it later.
I think you can use "old" libs from ZTE Blade on any device, because "new" libs work on ZTE Blade too.
PS: If you want to thanks/support my work - you know where you can find button for it.
Click to expand...
Click to collapse
Now for this thread:
This is a project for porting this over to JB. Currently it builds. That's just about it. We need to make this work.
Current contributors are:
Rashed97
Bytecode
bieltv.3
erikcas
And the repos currently resides at: https://github.com/androidarmv6/android_frameworks_av and https://github.com/androidarmv6/android_frameworks_native
Anyone else wanting to work on this, just shoot me a PM and I'll add you to the list and the repo!
Good Luck with this project! Hope you get it working on JB.
Sent from my GT-S5570 using xda app-developers app
I'm interesting on get it working, but not sure if really I can help, I'll continue testing some fixes in my local, and if a discover something interesting I'll give you the info.
Enviado desde mi Wildfire S A510e usando Tapatalk 2
Im gonna give it a try, and see what happends.
Edit 1: Mine did boot how can I verify that its working?
Edit 2: Its complaining about a missing libwvm.so
Rashed, sent you PM. Done some things on this.
like I said in PM, it is some port from CM9 and result of a little out-of-the-box thinking
HQ stream comes in but lags (..we're much too late, skipping..." in logcat)
see https://github.com/erikcas/android_frameworks_av/
erikcas said:
Rashed, sent you PM. Done some things on this.
like I said in PM, it is some port from CM9 and result of a little out-of-the-box thinking
HQ stream comes in but lags (..we're much too late, skipping..." in logcat)
see https://github.com/erikcas/android_frameworks_av/
Click to expand...
Click to collapse
Are the errors something like this?
"The main process is doing to much work on its main thread. Skipping xx frames!"
If they are I get those too...
Sent from my iPod touch using Tapatalk
Rashed97 said:
Are the errors something like this?
"The main process is doing to much work on its main thread. Skipping xx frames!"
If they are I get those too...
Sent from my iPod touch using Tapatalk
Click to expand...
Click to collapse
Exactly those
Verstuurd van mijn GT-S5660 met Tapatalk
erikcas said:
Rashed97 said:
Are the errors something like this?
"The main process is doing to much work on its main thread. Skipping xx frames!"
If they are I get those too...
Sent from my iPod touch using Tapatalk
Click to expand...
Click to collapse
Exactly those
Verstuurd van mijn GT-S5660 met Tapatalk
Click to expand...
Click to collapse
I get those everywhere including messeges app with or without the omx hack, to me those errors can be ignore, that's android saying the thing it just doing it taking a lot of cpu power to the point the screen frame started to skip.
hcweb said:
I get those everywhere including messeges app with or without the omx hack, to me those errors can be ignore, that's android saying the thing it just doing it taking a lot of cpu power to the point the screen frame started to skip.
Click to expand...
Click to collapse
I got those on ICS too when lagging. When solved they dissapeared so in my opinion they cannot be ignored.
Also. Skipping frames equals lag implicitly imo
Verstuurd van mijn GT-S5660 met Tapatalk
erikcas said:
I got those on ICS too when lagging. When solved they dissapeared so in my opinion they cannot be ignored.
Also. Skipping frames equals lag implicitly imo
Verstuurd van mijn GT-S5660 met Tapatalk
Click to expand...
Click to collapse
I know its a more detailed way of saying the app just hanged and its laggin, its helpfull to identify if its running full at perfromance, but imo it does not give right now a reason why it does not work at all. Later this night im gonna post a more detail log about the errors.
hcweb said:
I know its a more detailed way of saying the app just hanged and its laggin, its helpfull to identify if its running full at perfromance, but imo it does not give right now a reason why it does not work at all. Later this night im gonna post a more detail log about the errors.
Click to expand...
Click to collapse
well, here is my logcat for 40 secs of video:
Code:
I/ChromiumHTTPDataSource( 608): connect to http://redirector.c.youtube.com/videoplayback?id=5f20aa830f9249fd&itag=18&source=youtube&uaopt=no-save&upn=Dp7QSj_dcks&el=user_uploads&devKey=ATpxuMO4AN5NR1nGmfaQDBQO88HsQjpE1a8d1GxQnGDm&app=youtube_gdata&ip=0.0.0.0&ipbits=0&expire=1352524595&sparams=id,itag,source,uaopt,upn,ip,ipbits,expire&signature=1F93E556DA16E6BC085D0445694060D308BD3315.D2FB8F933BAF64B5E643B42AB1CF25EB36D630E7&key=yta1&androidcid=android-google&dnc=1 @0
I/AudioHardware( 608): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 608): disabling post proc features with mask 0x0000
W/WVMExtractor( 608): Failed to open libwvm.so
E/OMXCodec( 608): failed to allocate node OMX.qcom.video.decoder.h264
I/OMXCodec( 608): [OMX.google.h264.decoder] Non-Interlaced format detected
I/OMXCodec( 608): [OMX.google.h264.decoder] AVC profile = 66 (Baseline), level = 30
I/OMXCodec( 608): [OMX.google.h264.decoder] Enable frame by frame mode
W/OMXCodec( 608): Failed to set frame packing format on component
I/OMXCodec( 608): [OMX.google.h264.decoder] video dimensions are 320 x 240
I/OMXCodec( 608): [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)
E/OMXCodec( 608): [OMX.google.h264.decoder] Ignore PortSettingsChanged event
I/OMXCodec( 608): [OMX.google.h264.decoder] video dimensions are 640 x 368
I/OMXCodec( 608): [OMX.google.h264.decoder] Crop rect is 640 x 360 @ (0, 0)
I/SoftwareRenderer( 608): Buffer color format: 0x13
I/SoftwareRenderer( 608): Video params: mWidth: 640, mHeight: 368, mCropWidth: 640, mCropHeight: 360, mCropTop: 0, mCropLeft: 0
I/AudioHardware( 608): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 608): Enabling post proc features with mask 0x0000
I/AwesomePlayer( 608): we're much too late (0.51 secs), video skipping ahead
I/AwesomePlayer( 608): we're much too late (0.52 secs), video skipping ahead
I/NuCachedSource2( 608): ERROR_END_OF_STREAM
I/AwesomePlayer( 608): we're much too late (0.50 secs), video skipping ahead
D/NetlinkEvent( 606): Unexpected netlink message. type=0x0
D/NetlinkEvent( 606): Unexpected netlink message. type=0x0
D/NetlinkEvent( 606): Unexpected netlink message. type=0x0
D/NetlinkEvent( 606): Unexpected netlink message. type=0x0
I/AwesomePlayer( 608): we're much too late (0.50 secs), video skipping ahead
I/AwesomePlayer( 608): we're much too late (0.51 secs), video skipping ahead
erikcas said:
well, here is my logcat for 40 secs of video:
Code:
E/OMXCodec( 608): failed to allocate node OMX.qcom.video.decoder.h264
Click to expand...
Click to collapse
Your device didn't allocate the hardware codec - see the line above. The reason why your video is laggy is simply because it's using the software fallback...
psyke83 said:
Your device didn't allocate the hardware codec - see the line above. The reason why your video is laggy is simply because it's using the software fallback...
Click to expand...
Click to collapse
yup I know. That is where I am in a loop. So gonna have a bear to get out of it
Edit: beer
erikcas said:
yup I know. That is where I am in a loop. So gonna have a bear to get out of it
Edit: beer
Click to expand...
Click to collapse
Insted of trying to play a youtube video I tried playing a .mp4 video and I got preatty much the same results as your logcat, but
Code:
W/WVMExtractor( 608): Failed to open libwvm.so
Came up alot to the point I needed to end the logcat to read what was going on. But right now im waiting for a phone call ( this is my main phone ), so i cant test my build, but as soon im done with the phone call gonna try again my build and report back.
I can play mp4 videos on gallery perfectly, only 3gp and youtube hq lags.
Enviado desde mi Wildfire S A510e usando Tapatalk 2
hcweb said:
Insted of trying to play a youtube video I tried playing a .mp4 video and I got preatty much the same results as your logcat, but
Code:
W/WVMExtractor( 608): Failed to open libwvm.so
Came up alot to the point I needed to end the logcat to read what was going on. But right now im waiting for a phone call ( this is my main phone ), so i cant test my build, but as soon im done with the phone call gonna try again my build and report back.
Click to expand...
Click to collapse
I think that can be ignored. The "error" has been there allways.
Hm... Try using the ICS libwmv.so file and see if that works. Also for some reason it keeps using the non-Qualcomm libs so that's why it insists on not working.
erikcas said:
I think that can be ignored. The "error" has been there allways.
Click to expand...
Click to collapse
Ok, thanks for the tip. The libwvm.so is something related to drm, its supose not to be needed by aosp or cm but the av framework asks for it.
I guss i should keep ignoring it, since i dont plan to play any drm files.
Hello everyone,did not see this thread before,anyways I think the problem is into the decoder select. When comparing my Jellybean roms with the Gangster41's hack,all I can see into the logcat are output from OMX.google video codec. Therefore,AwesomePlayer tells us we're too much late and skips the video. I think we need to revise that portion of the code.
Sincerely,
Bytecode
well, I guess one step forward is 4 steps back. Been playing for a while, and finally came up with attached media_codecs.xml (as .txt file )
When starting the YT, it seems to choose the HW encoder, which leads to a sigsev.
See attached logcat.
Used source on my github, https://github.com/erikcas/android_frameworks_av
Will try also with my additions reversed, will have to recompile
View attachment logcat.txt
View attachment media_codecs.txt
I can't find anyone else complaining that it's broken, so probably it's just me... is anyone able to post to vine from a Nexus 5?
My installation works fine for viewing vines but when I get to the last stage of posting (after adding text & choosing places to post) and tap the checkmark, I see a toast of "Unfortunately, Vine has stopped." The app doesn't FC, it takes me back to the review/editing interface with the clip I had just recorded.
I backed up and tried a factory reset, but even if it's the only user app installed on unrooted 4.4 KRT16M stock, it crashes.
Does anyone have troubleshooting suggestions?
mc_front said:
I can't find anyone else complaining that it's broken, so probably it's just me... is anyone able to post to vine from a Nexus 5?
My installation works fine for viewing vines but when I get to the last stage of posting (after adding text & choosing places to post) and tap the checkmark, I see a toast of "Unfortunately, Vine has stopped." The app doesn't FC, it takes me back to the review/editing interface with the clip I had just recorded.
I backed up and tried a factory reset, but even if it's the only user app installed on unrooted 4.4 KRT16M stock, it crashes.
Does anyone have troubleshooting suggestions?
Click to expand...
Click to collapse
Grab a logcat to see more details regarding this error.
Rebooted, started piping logcat to a text file, reproduced the Vine crash, hit ctrl-c to stop adb from writing the logcat file. Is that the right way to capture the part of the log that would be useful?
Contents are 99% greek to me. Attached.
mc_front said:
Rebooted, started piping logcat to a text file, reproduced the Vine crash, hit ctrl-c to stop adb from writing the logcat file. Is that the right way to capture the part of the log that would be useful?
Contents are 99% greek to me. Attached.
Click to expand...
Click to collapse
Interesting lines are:
Code:
E/AndroidRuntime( 7575): FATAL EXCEPTION: main
E/AndroidRuntime( 7575): Process: co.vine.android, PID: 7575
E/AndroidRuntime( 7575): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=7575, uid=10191
Apparently Vine does not catch this exception, causing the app to crash. I'd report this to Vine.
Petrovski80 said:
Interesting lines are:
Code:
E/AndroidRuntime( 7575): FATAL EXCEPTION: main
E/AndroidRuntime( 7575): Process: co.vine.android, PID: 7575
E/AndroidRuntime( 7575): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=7575, uid=10191
Apparently Vine does not catch this exception, causing the app to crash. I'd report this to Vine.
Click to expand...
Click to collapse
I see same error.
I tweeted them the logcat file @vineapp. I don't know what else to do.
j3g said:
I see same error.
I tweeted them the logcat file @vineapp. I don't know what else to do.
Click to expand...
Click to collapse
Wait for them to fix it.
I did the android native crash report a couple times, and complained on the vine play store page and via their dev email. Thanks for tweeting at them too.
Does vine work on ANYONE'S stock n5? If other folks are having the same issue, it will ease my mind that there is not an issue with my handset.
It works now, update is available. Not sure if it's just me, but are recorded vines a little choppy? At the beginning of one of my videos the framerate seems fine but it deems to start dropping the frames a little bit. Seems less smooth compared to before on my N4, anyway.
Every time I pause the video I get an AD saying my device is infected and if I accidentally click it, it tells me I have been looking at adult websites and to "click here" to fix it. Please remove these garbage ADs that ruin a good app.
What's the exact name of the ad? That or post a screenshot. This way the developer can blacklist it.
talormanda said:
Every time I pause the video I get an AD saying my device is infected and if I accidentally click it, it tells me I have been looking at adult websites and to "click here" to fix it. Please remove these garbage ADs that ruin a good app.
Click to expand...
Click to collapse
Hi, we treating such fraud ad. seriously.
Would you send screen capture of this banner ad.?
Or send system log using Menu > Help > Send bug report with system log.
Thank you for reporting.
bleu8888 said:
Hi, we treating such fraud ad. seriously.
Would you send screen capture of this banner ad.?
Or send system log using Menu > Help > Send bug report with system log.
Thank you for reporting.
Click to expand...
Click to collapse
Hello, thanks for a timely response. I sent the bug report with the logs, and here is a screenshot:
i.imgur.com/365jA0T.png
talormanda said:
Hello, thanks for a timely response. I sent the bug report with the logs, and here is a screenshot:
i.imgur.com/365jA0T.png
Click to expand...
Click to collapse
Did you send report to [email protected]? If so, it looks like not delivered yet. Please sync/refresh your email client. Thank you.
bleu8888 said:
Hi, we treating such fraud ad. seriously.
Would you send screen capture of this banner ad.?
Or send system log using Menu > Help > Send bug report with system log.
Thank you for reporting.
Click to expand...
Click to collapse
bleu8888 said:
Did you send report to [email protected]? If so, it looks like not delivered yet. Please sync/refresh your email client. Thank you.
Click to expand...
Click to collapse
Sent. Hope you're able to block it.
talormanda said:
Sent. Hope you're able to block it.
Click to expand...
Click to collapse
Thank you, I got it.
One more question is; Does the report sent while malware ad. is showed up? And then it is actually from the Google ad. network.
bleu8888 said:
Thank you, I got it.
One more question is; Does the report sent while malware ad. is showed up? And then it is actually from the Google ad. network.
Click to expand...
Click to collapse
No it wasn't sent while it was up. I'll try to trigger it to get it to appear again for you and if I can, then I will send another email.
talormanda said:
No it wasn't sent while it was up. I'll try to trigger it to get it to appear again for you and if I can, then I will send another email.
Click to expand...
Click to collapse
Actually I filtered out all kind of "vaccine" ad. because many malware disguise a vaccine. It will be even better if you do not see this ad again
Thank you.
bleu8888 said:
Actually I filtered out all kind of "vaccine" ad. because many malware disguise a vaccine. It will be even better if you do not see this ad again
Thank you.
Click to expand...
Click to collapse
Thanks. I will send more if I ever get any again.
How to remove the ads from MX player it's all coming all over the app,pls remove it if possible thank u
You can buy Pro version.