[FIX] Hardware Video Decoder Lag Fix [2.3 / xRecovery] - XPERIA X10 Android Development

If you watch videos encoded in high quality resolutions above 854x480, H.264 or MPEG4 and a pretty high bitrate, you might notice that video playback is laggy and not fluid with custom ROMs. This flashable zip package is supposed to fix that.
Tested
Stable - Any ROM based on stock 2.3.3 (Wolfs TW Gingerbread, Blue Sparks, Ultima GB etc.)
Stable - Most xRecovery-based CM7 ROMs (ZMOD, SpaarcMOD, FreeXperia Sony UI Achotjan etc.)
Stuck on boot - MIUI ROMs
Untested
FXP CM7 (won't work anyways since it uses CWM)
Special thanks to
zdzihu
EDIT: I've uploaded a test video to check whether video decoder lag is present or not.
http://puu.sh/5j8h/SmoothnessTest.mp4 (854x480, H.264, 5 mbit/s)
If it stutters during playback, that's an indication that the video is lagging.
This fix will not eliminate the problem but will reduce the lag by a huge margin.
I noticed this while watching videos with camera panning, they looked very juddery.

Anyone tried this? Just wondering what the original problem was.
Sent from my X10i using XDA App

So, this should enable me (us) to play 720p Youtube vids?

never notist a problem and if there whas a problem, Z would have notist and came with the solution.
I think i would not flash this before making a back up.

Puck24 said:
So, this should enable me (us) to play 720p Youtube vids?
Click to expand...
Click to collapse
You already play hd youtube.

Guys, please play the video in the OP on your phone and see whether it lags or not.
blacklistedcard said:
Anyone tried this? Just wondering what the original problem was.
Sent from my X10i using XDA App
Click to expand...
Click to collapse
The original problem was playback of high quality videos were very laggy.

robertberma said:
never notist a problem and if there whas a problem, Z would have notist and came with the solution.
I think i would not flash this before making a back up.
Click to expand...
Click to collapse
Why do you feel like discouraging people who try to offer something to the community?
On the one hand, there are tons of threads in General section
whining about people moving on from the X10 and development stalling,
and then there are post like yours... It's just not right.
Anyway, @OP, I played the test video and noticed no lags.
Could you explain what is it that you changed in the .so libraries please?
And why some people have the issue and others don't?
Thank you very much!

Okay. Downloaded the files. Tested the video. It does stutter a little.
Tested with scary gov. Running video twice... 22sec at 128mhz. And none over 500mhz! So its not decoding over cpu
P.s. Yes, also did with performance. Same problem.
Now gonna make backup. And then flash file.

Noticed the lag myself. So maybe it's missing a video codec, so it's not using hardware rendering.
I'll flash the fix and see if it works.
Dwaine

My_Immortal said:
Anyway, @OP, I played the test video and noticed no lags.
Could you explain what is it that you changed in the .so libraries please?
And why some people have the issue and others don't?
Thank you very much!
Click to expand...
Click to collapse
It depends.
On modded stock ROMs, if the dev included z's audio lag fix, this problem will surface.
On custom ROMs (CM7 for example), the issue is already there.
This zip simply replaces the libs with those from stock ROM.
PS: It was one of the reasons why I didn't use Froyo custom ROMs.

doomed151 said:
It depends.
On modded stock ROMs, if the dev included z's audio lag fix, this problem will surface.
On custom ROMs (CM7 for example), the issue is already there.
This zip simply replaces the libs with those from stock ROM.
PS: It was one of the reasons why I didn't use Froyo custom ROMs.
Click to expand...
Click to collapse
So, it will give us back the audio lag while listening to music then?

doomed151 said:
It depends.
On modded stock ROMs, if the dev included z's audio lag fix, this problem will surface.
On custom ROMs (CM7 for example), the issue is already there.
This zip simply replaces the libs with those from stock ROM.
PS: It was one of the reasons why I didn't use Froyo custom ROMs.
Click to expand...
Click to collapse
You could have also said this in first Post, right?
flashed it and saw no big difference. I'm on WB4.0.4
Maybe he already included it.
P.s. Your test video is not realy high res ^^ does 1080p work on our phone? Depens on bitrate i guess.

My_Immortal said:
So, it will give us back the audio lag while listening to music then?
Click to expand...
Click to collapse
Technically, yes. Personally, I rarely get any audio lags while listening to music except when there's CPU heavy stuff going on like installing a large app from the Market.

doomed151 said:
If you watch videos encoded in high quality resolutions above 854x480, H.264 or MPEG4 and a pretty high bitrate, you might notice that video playback is laggy and not fluid with custom ROMs. This flashable zip package is supposed to fix that.
Tested on
Any ROM based on stock 2.3.3 (Wolfs TW Gingerbread, Blue Sparks, Ultima GB etc.)
Most xRecovery-based CM7 ROMs (ZMOD, SpaarcMOD, FreeXperia Sony UI Achotjan etc.)
Untested
FXP CM7 (won't work anyways since it uses CWM)
MIUI ROMs
Special thanks to
zdzihu
EDIT: I've uploaded a test video to check whether video decoder lag is present or not.
http://puu.sh/5j8h/SmoothnessTest.mp4 (854x480, H.264, 5 mbit/s)
If it stutters during playback, that's an indication that the video is lagging.
This fix will not eliminate the problem but will reduce the lag by a huge margin.
I noticed this while watching videos with camera panning, they looked very juddery.
Click to expand...
Click to collapse
Doesnt work on MIUI Rom got stuck on bootlogo ,

doomed151 said:
Technically, yes. Personally, I rarely get any audio lags while listening to music except when there's CPU heavy stuff going on like installing a large app from the Market.
Click to expand...
Click to collapse
I see...
But I got terrible audiolag before Z's fix when listening to music, even when this was the only thing I did (no other tasks running, screen off).
Xperia X10i via Tapatalk

My_Immortal said:
I see...
But I got terrible audiolag before Z's fix when listening to music, even when this was the only thing I did (no other tasks running, screen off).
Xperia X10i via Tapatalk
Click to expand...
Click to collapse
It may be because I'm running a custom kernel. Barely any audio lag.

Is it possible to play the pps.tv with h.264?

robertberma said:
You already play hd youtube.
Click to expand...
Click to collapse
Not really. We play HQ YT vids aka 480p
Try DL-ing a 720p or even a 1080p vid and play it... see what happens. Not to mention HD divx/xvid content
P.S. regarding audio lag. I still experience it while underclocking to 128MHz. It's doesn't happen while the sleep FQ is at 245, though

Related

Working Netflix?

Anyone got the new Netflix app to work on their TP2?
Sent from my TP2 using XDA App
so far i have working audio in the app however no video =(
nasapunk88 said:
so far i have working audio in the app however no video =(
Click to expand...
Click to collapse
Same here, even with highlandsun's video codecs it seems we can't play the video.
rpierce99 said:
Same here, even with highlandsun's video codecs it seems we can't play the video.
Click to expand...
Click to collapse
Probably due to same issue with HQ Youtube videos huh?
How can I bypass the "This device is not supported by Netflix" that I get when clicking on a title on my Instant Queue, so I can see if it is working or if it just audio only. Is there a way to spoof the app into thinking I am on a supported phone? If so, please tell me how to do it. Thanks.
There is an apk that will not check for device compatiblity but yeah no video. For me it plays audio and then it kicks out back to the queue. I wish it worked. Anything we can do?
Can't tell anything without knowing what codec / format Netflix is using in this app. I'm sure they're using H.264, but if it's not H.264 Baseline Profile then our phone hardware can't decode it. And if it's larger than 640x360 resolution, our current codec can't handle it.
I don't have a Netflix account so I haven't tried to see what formats they're using.
The current codec we have is written in C++ with threads. I'd say that's at least a 10% performance hit right there; if it was written well, in straight C, it would probably have achieved the 800x480 that Qualcomm's original spec claimed.
Netflix released an updated app today with support for more devices. I get the main screen, then loading, then the playback screen and nothing .... black screen. Nerts.
Carld256 said:
Netflix released an updated app today with support for more devices. I get the main screen, then loading, then the playback screen and nothing .... black screen. Nerts.
Click to expand...
Click to collapse
I'm not sure what 'nerts' are, but the new video playback libs might be necessary... Anyone with those new libs given this new app a shot?
arrrghhh said:
I'm not sure what 'nerts' are, but the new video playback libs might be necessary... Anyone with those new libs given this new app a shot?
Click to expand...
Click to collapse
nerts = nuts = really mild profanity
I actually have the new libs installed already. I'm running a RHOD500 with the latest kernel, overclocked to 710 Mhz, in case that matters.
Carld256 said:
nerts = nuts = really mild profanity
I actually have the new libs installed already. I'm running a RHOD500 with the latest kernel, overclocked to 710 Mhz, in case that matters.
Click to expand...
Click to collapse
So HQ YouTube works?
Why not just say 'nuts'?
arrrghhh said:
So HQ YouTube works?
Why not just say 'nuts'?
Click to expand...
Click to collapse
HQ YouTube works more or less. There's a little stutter sometimes, and some HQ videos start and then stop after 5 or 10 seconds, and some others play just fine. Oh, and the libs fixed video playback of the mp4 movies I already had on my device.
Weird thing is, YouTube under WinMo refuses to play HQ videos at all.
Nerts is funnier.
Carld256 said:
HQ YouTube works more or less. There's a little stutter sometimes, and some HQ videos start and then stop after 5 or 10 seconds, and some others play just fine. Oh, and the libs fixed video playback of the mp4 movies I already had on my device.
Weird thing is, YouTube under WinMo refuses to play HQ videos at all.
Click to expand...
Click to collapse
IIRC, WinMo plays HQ YouToobs flawlessly.
Carld256 said:
Nerts is funnier.
Click to expand...
Click to collapse
If you say so, lol.
arrrghhh said:
IIRC, WinMo plays HQ YouToobs flawlessly.
Click to expand...
Click to collapse
It used to. Some time back YouTube changed something, and now HQ videos play without sound (I was thinking they didn't play at all). Supposedly you can fix this by changing your network to "media," but I don't have that option any more since I upgraded to 6.5.
Carld256 said:
It used to. Some time back YouTube changed something, and now HQ videos play without sound (I was thinking they didn't play at all). Supposedly you can fix this by changing your network to "media," but I don't have that option any more since I upgraded to 6.5.
Click to expand...
Click to collapse
I just rebooted to see. Worked fine for me, I'm on 6.5 - but I used Opera... I don't know if there's some app that I should be using, perhaps it wasn't truly HQ.
Either way, if it used to then there shouldn't be anything limiting the hardware. Seems hyc went thru all that pretty thoroughly tho.
arrrghhh said:
I just rebooted to see. Worked fine for me, I'm on 6.5 - but I used Opera... I don't know if there's some app that I should be using, perhaps it wasn't truly HQ.
Either way, if it used to then there shouldn't be anything limiting the hardware. Seems hyc went thru all that pretty thoroughly tho.
Click to expand...
Click to collapse
I'm using Dot's latest rom dated 04-23-11 and it does play HQ youtube flawlesly, unlike NRG's which for some reason have a little choppy sound while the video plays, or it could just be my old tilt2
arrrghhh said:
I just rebooted to see. Worked fine for me, I'm on 6.5 - but I used Opera... I don't know if there's some app that I should be using, perhaps it wasn't truly HQ.
Either way, if it used to then there shouldn't be anything limiting the hardware. Seems hyc went thru all that pretty thoroughly tho.
Click to expand...
Click to collapse
I was using the HTC YouTube app. I tried it on two different 6.5 TP2s and they both do the same thing, HQ video plays, but no sound.
And your right. I know the hardware is capable, just somewhere along the way something in the software got screwed up on YouTube's end or mine.
Anybody try changing the build.prop to HTC vision or desire z or any of the phones that works with Netflix that's how we have it working already in my section
Sent from my LG-P999 using XDA App
I don't think the new version checks to see what model you're running.
The new Netflix app has a LOT of compatibility issues.
They still can't get it working on most Huawei S7 ROMs, and that device can do 720p easily.

[Q] Diceplayer & New TW Rom

Since I can't ask in the Dev Forum:
Just a heads up for any videophiles who are thinking about flashing this rom, 720p high profile support seems to be gone from the stock player in this version of TW.
Personally I can't really see much difference between baseline and high profile, so I'll take the lag free forum typing, still kind of a bummer though.
Click to expand...
Click to collapse
^Also noticed that.
Additionally diceplayer will no longer play smoothly.
Eveything else is 100% better except video playback. Odd.
Any easy way to remove some of the stock apps?
Click to expand...
Click to collapse
Can anyone confirm that?
It would be a deal breaker for me if Video playback with Diceplayer (since no alternative is available) would stop working smoothly.
(I'm talking about this new Rom: [ ROM ][ 7-27 ] HMJ37.UEKM7 with TouchWiz for the GT-P7510)
Couldn't you flash this, test and depending on the results, flash something else?
Sure, I've done a nandroid backup anyway. Just asking first, maybe someone else tried it already. Would save me (and others) some trouble.

[Resolved][Q]About that little thing called hardware video acceleration.

I understand due to the lack of driver source code that Hardware acceleration will not work on our tabs past 2.2(froyo). But I am currently running Calkulin+Clemsyn 1.5ghz Froyo Combo VERSION 6: http://forum.xda-developers.com/showthread.php?t=1024120 and I have tried at least 20 diff videos and diff formats using hardware codec and not one video played. I know you can use apps to play videos with software codecs but when you start going into 720p and 1080p videos the video slows way down. So is there something I'm missing? I thought the tegra 2 could handle 1080p decoding? If there is another ROM that can do HD decoding better please let me know cause video playback is what I use my tab the most for. Thanks for any help and sorry for the wall of txt lol.
Will punch the thanks button!!!
Edit: Ok after several trial and error's on trying pershoot's kernel I decided to go ahead and re-encode my videos using Freemake video converter. It works and the quality actually looks better! This program is free and it has Android presets for our tablets so that you get the best video quality at our resolution! Now I would still like to use pershoot's kernal but I can't find any froyo roms that has his/her's kernel already packed into the rom. If some one could please help me with finding one that would be super! Thanks soooo much!!!
stock rom works...
http://forum.xda-developers.com/showthread.php?t=884103
works ... i test 1080p
browse internet low....
chacaldecg said:
stock rom works...
http://forum.xda-developers.com/showthread.php?t=884103
works ... i test 1080p
browse internet low....
Click to expand...
Click to collapse
Hmmm....well I guess I'm gonna have to choose between video acceleration or a stable ROM? :/ lol is there a custom rom with hardware acceleration? Thanks so much for the answer
I used Calkulin's ROM along with whatever current kernel Pershoot had and I never had any issues with and HD videos. You might want to give one of Pershoot's kernels a shot.
sumdumdude said:
I used Calkulin's ROM along with whatever current kernel Pershoot had and I never had any issues with and HD videos. You might want to give one of Pershoot's kernels a shot.
Click to expand...
Click to collapse
Thanks I'll try that! also what player are you using? If its a stock player, could you post the apk? Thanks so much!
BLT24 said:
when you start going into 720p and 1080p videos the video slows way down.
Click to expand...
Click to collapse
Why not re-encode to a lower resolution? The GTab can't even play 720p without resizing, which is what's killing you.
1024x600 - that's the screen size. Re-encode your HD video to be under that. It will play like butter. And be considerably smaller.
schettj said:
Why not re-encode to a lower resolution? The GTab can't even play 720p without resizing, which is what's killing you.
1024x600 - that's the screen size. Re-encode your HD video to be under that. It will play like butter. And be considerably smaller.
Click to expand...
Click to collapse
Why would they say you can play up to 1080p video, if you really cant? lol Also does it matter if its 600x1024 or 1024x600? The reason I ask is because I see it different all the time lol And one more thing, What program would you suggest to re-encode? Thanks so much for everything!
Edit: Ok so I tried pershoot's newest kernel out and I love it! I get some video acceleration back and it also fixed some sound issues I was having. The only problem is that after I install the kernel it boot's up fine but if I reboot, it gets stuck in a boot loop. If I do a factory reset it will boot back up again. but if I reboot then it gets stuck in a boot loop again. So with that said I don't think this kernel is meant for this ROM. What is the best froyo ROM that includes pershoot's kernel? Thanks for everything!!!!

miui bases ROMS - video problems

Started having HD video problems with all miui based ROMS, Galnet, standard miui and wiui, videos either start playing and crash, dont play at all or just get a black screen. My recorded video from cam is also choppy. To check it wasnt my phone I loaded the latest chkrom, video played ok.
Want to stay with miui as anything I put on after miui just seems so clunky, anyone else finding this.
Mine does a similar thing although im not on a custom rom, ages ago my phone stopped playing .mkv's and now just recently it wont play certain .avi files or any .flac files at all however it still plays .mp4 fine
Im waiting for the proper ICS release to do a complete wipe and hope they work again.
Sent from my GT-I9100 using xda premium
Darclite said:
Mine does a similar thing although im not on a custom rom, ages ago my phone stopped playing .mkv's and now just recently it wont play certain .avi files or any .flac files at all however it still plays .mp4 fine
Im waiting for the proper ICS release to do a complete wipe and hope they work again.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
you on stock rooted sammy rom then?
Ask on the Miui forums ?
Been using Galnet Miui for several months, have never had a problem playing videos of any format with either the native video player or MX. Same with test videos I've taken myself.
MistahBungle said:
Ask on the Miui forums ?
Been using Galnet Miui for several months, have never had a problem playing videos of any format with either the native video player or MX. Same with test videos I've taken myself.
Click to expand...
Click to collapse
cant post on either forum, havent bothered to find out why to be honest as there isnt really much in there in the way of help like on there.
Can you tell me exactly what version you are on now, mine was ok on earlier versions. Everything played smoothly on stock video, mx player and dice, now nothing plays well and sometimes not at all.
Right now I'm using the newest MIUI weekly 2.2.17. The only player that seems to work with all kind of movie files is DicePlayer. All other are causing crashing and other strange issues (specially with HW mode). It should work ok for you as well tbh.
And you know this without even asking there ? Stunning piece of logic there champ
I've used 1.11.9, 2.11.26, 2.1.20 & 2.2.1 with different builds of Siyah and have never had a problem playing any video in any of the common formats on either MX or Galnet Video, nor have I had problems playing back test videos (short. I'm not about to make a 2 hr test video purely to see if it crashes a video player) I've recorded.
da.trute said:
cant post on either forum, havent bothered to find out why to be honest as there isnt really much in there in the way of help like on there.
Can you tell me exactly what version you are on now, mine was ok on earlier versions. Everything played smoothly on stock video, mx player and dice, now nothing plays well and sometimes not at all.
Click to expand...
Click to collapse
matee89 said:
Right now I'm using the newest MIUI weekly 2.2.17. The only player that seems to work with all kind of movie files is DicePlayer. All other are causing crashing and other strange issues (specially with HW mode). It should work ok for you as well tbh.
Click to expand...
Click to collapse
will give it a try, on a side note have you even been able to install the reboot options on a standard miui rom that you get with galnet?, tried a couple of times with no joy
i am using ndt miui, so far i didnt see any problem. maybe you can try to update the new one or another miui roms from others developer.
much better with DICE, mx still no longer works though and it was great before, smoother than DICE, not sure whats happend.

[Q] Choppy video playback/stutter (Lags)

So,I've got another problem.
Suddenly,my 720p video playback got choppy while watching in web (no issues in gallery),and again,this happens only on stock ROM. Can anyone tell what can be the cause,please? This is getting annoying,I can't enjoy watching videos on youtube anymore. The worst thing is,that changing ROMs didn't help.
Up.
And up.
AssassinGEO said:
So,I've got another problem.
Suddenly,my 720p video playback got choppy while watching in web (no issues in gallery),and again,this happens only on stock ROM. Can anyone tell what can be the cause,please? This is getting annoying,I can't enjoy watching videos on youtube anymore. The worst thing is,that changing ROMs didn't help.
Click to expand...
Click to collapse
Check your internet speed, that should be only issue looks here.
KSKHH said:
Check your internet speed, that should be only issue looks here.
Click to expand...
Click to collapse
Nah,man. All videos stutter. In gallery and in internet,too. Also,camera recording isn't smooth anymore,and is also having some lags.
Guess there's something with GPU. Wondering if it can be replaced? Or replacing everything under the hood could help?

Categories

Resources