How to solve grainy video playback in newer ROMs? - HD2 Android SD Development

I have been using Rafdroid v4.2 for the past 3 months. The main reason I am sticking to this ROM is because its video playback is perfect. I have found that video playback using all of the newer ROMs are all grainy and of poor quality. This is especially obvious in darker scenes.
This includes the CM7 and MIUI based ROMs. I have also tried all of the lastest HTC based ROM, including the latest “BoxmaX KS v8 DesireHD GB 2.3.5 +Sense3” thinking that being based on Desire HD might solve the problem but they all have the same problem. The poor video playback quality is persistent using either stock or third party app.
My question is what determine the video playback quality? The Kernel, base ROM? I would love to start using the latest GB based ROM but this one issue is holding me back.
Is there a way to solve this problem in the newer ROMs?

I think it might relates to the HW decoder files but I'm not sure..

I too have been using Rafdroid for a while now, hardly ever boot into WM anymore. Great ROM and everything works, and yes, the graphics are great as well.
Sent from my RafDroid HD2 using xda premium

Related

[FIX] Hardware Video Decoder Lag Fix [2.3 / xRecovery]

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

Error in Video Capturing

Hello Dear friends
Recently, I have a problem related to captured video in 2d mode.
when I start to capture the video in 2d mode, camera application will be closed.
I have changed my sdcard and also custom ROM (These custom ROMs have been tested, such as Leedroid v5.3.0 & KingCobra v1.9 & some sense 3.5 Roms). But, the problem had remained.
This is notable that when I useing 'stock camera pack' there is not any problem. Do every body know how to use custom camera in custom ROMs without any problem?
ardanai said:
Hello Dear friends
Recently, I have a problem related to captured video in 2d mode.
when I start to capture the video in 2d mode, camera application will be closed.
I have changed my sdcard and also custom ROM (These custom ROMs have been tested, such as Leedroid v5.3.0 & KingCobra v1.9 & some sense 3.5 Roms). But, the problem had remained.
This is notable that when I useing 'stock camera pack' there is not any problem. Do every body know how to use custom camera in custom ROMs without any problem?
Click to expand...
Click to collapse
Where you using a "custom camera pack" other than what the custom rom brought?
It's a very complex question because anything can be hurting that side of the phone if you factor in a custom ROM, even if its been a tested ROM the chances of it not acting nice on you phone is possible.
I think that you should submit alogcat together with details of ROM, and every other aspect of your phone so it can be evaluated. It's not a common occurrence so its hard to troubleshoot without further information.
Not sure, but I read somewhere that in LeeDroid, you have to change the codec for video to work? Not sure if this is the case with any other ROM
Sent from my HTC EVO 3D GSM using Tapatalk
I didn't use any custom camera pack, I just used camera app in each custom rom such as Leedroid, king cobra or shooter beats
I had this problem in all of these rom
of course I had this problem when I adjust resolution of video recording to 960*540 and in other resolution this problem dont occured.

[Q] Daily driver with solid VLC and Skype support?

Right now I have my GTab running Cyanogen 7, which is a solid daily driver. However, it locks up when I try to set the internal memory as the primary device. More importantly, the VLC I have running is quite studdery on high quality movies and refuses to play some formats.
Most importantly to the rom I want running is Skype support. Video in and out, sound as well. I see a very limited number of Froyo roms with a Skype fix. Has this been brought to any other versions of android? Obviously I would prefer ICS with VLC and Skype, but I see the roms out do not support the camera.
Any help at all would be greatly appreciated.
Sounds like you will want to go with a Froyo rom for now to get what you want. I am sure they will get the camera working for ICS soon, but right now it's not working and who knows if Skype will work when it does. I like CM7 for it's stability but no HW acceleration means no HD video and poor gaming.
Since you are running CM7 are you on 1.1 or 1.2 bootloader? There is a new version of CM7 for the Gtablet, but I don't know if Skype works or not. My favorite Froyo rom for 1.2 is Beasty, very fast and stable. You can use any Froyo rom that doesn't include the Skype fix by flashing this kernel in CWM.
For better video playback in non Froyo roms, try MXPlayer. It can use software decoding that is optimized for ARM7 (Gtablet) so video playback is much better without working hardware acceleration. By the way where did you get VLC from?
Sorry for taking so long to reply. I'm going to flash Beasty when I get my hands on the tablet again. I'll apply the camera fix as well if need be. Any recommended tweaks to Beasty other than that upon a fresh install?
CM7 RC3 is out now as well, if Beasty isn't all it's cracked up to be I'll load it up. I'm kind of excited for Beasty though, looks great.
Also the VLC version I have is admittedly a little outdated, so I'll definitely be trying a new one. MXPlayer was studdery as well on my CM7 so I'll try on Beasty with overclock.

Any ROM based on Android 4.x with Video record working at least the same as on stock?

Hi,
Is there any ROM based on Android 4.x which has Video recording not lagging? The same level of performance as on stock will be quite enough for me... No lagging while video playback would be also nice to have. I have tried Jokersax cm9 and cm10 and both didn't have these things working. Anyway, I would like to thank Jokersax and his work done to offer community the newest fancy stuff .
Or there's a common issue with drivers which prevents having video recording working stable in any ROM on Android 4.x? Is there any other option rather than waiting for official Android ICS release for MoPho?
Thank in advance for replying.
bloodhound_ said:
Hi,
Is there any ROM based on Android 4.x which has Video recording not lagging? The same level of performance as on stock will be quite enough for me... No lagging while video playback would be also nice to have. I have tried Jokersax cm9 and cm10 and both didn't have these things working. Anyway, I would like to thank Jokersax and his work done to offer community the newest fancy stuff .
Or there's a common issue with drivers which prevents having video recording working stable in any ROM on Android 4.x? Is there any other option rather than waiting for official Android ICS release for MoPho?
Thank in advance for replying.
Click to expand...
Click to collapse
ok thank god so its not just me. video playback doesnt lag... (except hd videos)
bloodhound_ said:
Hi,
Is there any ROM based on Android 4.x which has Video recording not lagging? The same level of performance as on stock will be quite enough for me... No lagging while video playback would be also nice to have. I have tried Jokersax cm9 and cm10 and both didn't have these things working. Anyway, I would like to thank Jokersax and his work done to offer community the newest fancy stuff .
Or there's a common issue with drivers which prevents having video recording working stable in any ROM on Android 4.x? Is there any other option rather than waiting for official Android ICS release for MoPho?
Thank in advance for replying.
Click to expand...
Click to collapse
there's no drivers available for us to use for ICS/JB. so everything is hacked to kinda work. in this case it means lots of 2d related things don't work. video recording for example. JB is quite jittery at times. all due to lack of drivers.
if you want a stable rom with everything working. use a gingerbread rom.
na7q said:
there's no drivers available for us to use for ICS/JB. so everything is hacked to kinda work. in this case it means lots of 2d related things don't work. video recording for example. JB is quite jittery at times. all due to lack of drivers.
if you want a stable rom with everything working. use a gingerbread rom.
Click to expand...
Click to collapse
CM7 by JOKERSAX is definately the best option for the most stable opperating system in my eyes, no offence to other builds or devs.
the cm10 version is running great for me after doing very small mods to get it working. I DO HAVE WORKING VIDEO ON CM10!!
The video illusions is the only video camera app ive had that works well and dosnt seem to run verry slow.. i had to disable HWA on the gallery and on the camera and the video cam app to reduce jitter and FC. but CM10 or any AOKP seems to be verry solid, i love to run AOKP JB roms from time to time to switch things up, THEBILL has a great selection to offer, jump to page 1 on any build to see what is still broken (borked?)
but the issue is that the drivers are hacked up from gingerbread and this is the best it will be + a few mods to improve quality until the release of ICS comes out, big hopes now with the photon Q being out and running ics/Jb
GOOD LUCK
let me know if i helped any!!

VIdeo playback performance crippled on all ICS and JB roms?

I understand there is a lack of certain drivers for ICS and JB......but does this mean graphics hardware too? I understand the camcorder driver issue will never be fixed.
i tried playing back 1080p video shot from stock 2.3.5 Sunfire. On stock 2.3.5, playback of 1080p shot video is flawless.
But the same video cannot be played back properly on any CM10 or MIUI JB roms I have tried. ....even if cpu speed is set high
I even tried Camera Illusion as suggested and the capture and playback 720P way too jittery and laggy.
Or is there a way to get video playback /graphics performance to its full capabilities in JB or ICS? or it simply another lack of driver issue?
Thanks in advance.
poog said:
I understand there is a lack of certain drivers for ICS and JB......but does this mean graphics hardware too? I understand the camcorder driver issue will never be fixed.
i tried playing back 1080p video shot from stock 2.3.5 Sunfire. On stock 2.3.5, playback of 1080p shot video is flawless.
But the same video cannot be played back properly on any CM10 or MIUI JB roms I have tried. ....even if cpu speed is set high
I even tried Camera Illusion as suggested and the capture and playback 720P way too jittery and laggy.
Or is there a way to get video playback /graphics performance to its full capabilities in JB or ICS? or it simply another lack of driver issue?
Thanks in advance.
Click to expand...
Click to collapse
Lack of driver issue
Sent from my MB855 using xda app-developers app
Try MX Player?
Sent from my MB855 using xda premium

Categories

Resources