The default android video player and the other one provided by my vendor display clear banding when playing videos. The video itself is fine because when played with BSPlayer with HW experimental there is no banding visible.
The videos are played through the MediaPlayer interface of Android. I am still not sure if it is a dithering issue or a surface format issue. I tried different modifications to the player/machine without success.
1. Build.prop settings: persist.sys.use_dithering=1 (tried 2 as well) and video.accelerate.hw=1
2. Adding the dither flag with addFlags( WindowManager.LayoutParams.FLAG_DITHER )
3. Making sure the surfaces are in RGBA_8888 with setFormat of surfaces
4. Forcing dithering in View.smali of framework.jar
Would be interested in hearing suggestions on how I could fix this issue with the default player. Wondering if it could be related to drivers or native code.
PS: I ran those two apks listed here and no banding visible at all: http://forum.xda-developers.com/showthread.php?t=1121840
Also tried 5. Making sure the windows are in RGBA_8888 with setFormat after every getWindow()
No success
It is worth noting that the device has a 24 bit back buffer and shows no banding on pictures, backgrounds, etc.
Related
Have CM10 installed and noticed that YouTube app displays the video a little too large and it covers up the time / progress bar while viewing videos on my phone. Is there a setting to scale the video down just a bit?
Maybe this is a commonly known technique that I just don't know about but I've been wondering for years now why this isn't done (maybe it is done). Current smartphone camera are now 13 Megapixels and more (the S4 is 4128x3096). HD video is recorded at 1920x1080. Is it possible to have a movable window of size 1920x1080 within that full 4128x3096 pixels of the camera sensor? Imagine having a stationary phone but video panning to follow a moving object. I know this is similar to how digital zoom works but I haven't seen it used for pan and follow.
Can this be done at an API level or is this something a new hardware driver would be needed to accomplish? I have not learned Android programming as yet so this is more of a conceptualization problem right now.
I just recorded a small video of a local event with stock camera app set on 1080p video. In the video if you look around face of the singer or any thin lines, you will see little squares or jagged lines etc., as if the video was upscaled from 480p or something. It's even more visible on original file on a normal PC display, but even in the web version it's a defininte huge loss of resolution. This is very weird. I'm using madsurfer's ROM, but I don't think it's ROM related.
Here's the video: https://goo.gl/photos/c17a5iofhPas73aP9 - first few seconds are out of focus, then you can see the problem.
Any advice?
OK, I have found a workaround for the video problem!
First - I have confirmed, there is definitely a problem with 1080p video recording with stock camera app. I'm not sure if it's ROM related or stock is the same, but it's definitely there. The quality is very very bad, pixelated and feels upscaled.
However when I have installed Cinema FV-5 app, the quality is great, no more pixelation, everything looks better, even crappy digital zoom is smoother. I have shot same video at the same time with stock app and FV-5, and there is a huge difference:
Stock camera app video - pixelated and jagged edges, huge artifacts, digital zoom shows big square artifacts. Check roof edges on top left, and a street lamp pole line.
Cinema Fv-5 video - everything is smooth, no jagged lines, digital zoom shows no squares or pixelation - just sharpness loss.
You have to open both videos on a PC in full screen and with 1080p HD quality to really see the difference.
So the problem is clearly with the stock app, or madsurfer's ROM version of that app or settings. I think another camera app such as FV-5 solves this issue. I liked the simplicity of stock app, but it's not usable at this moment.
Hi, I will copypaste the thread I did post on reddit.
I've just recently got the S9+ Exynos (EU) variant and I wanted to be hyped about HDR media playing. Downloaded some 10bit HDR H265 files and played them through the Samsung Gallery. Cranked High Performance mode to 1440p, +10 brightness and tried between Adaptive/Cinema Mode (this didn't make any difference besides some slight changes in colour and gamma).
Problem is, I see color gradients and a bad greenish tint, lifeless appearance overall. I did try Youtube 4K HDR demos in 1440p as well and, while I can see the extra PQ, color banding is very apparent: background blurred images seem like a weird crushed rainbow :-/
Is this supposed to look like this? I did read about the release (around march) issues people had with black crush and Netflix's HDR, but also read that some update fixed it. It appears that S9+'s AMOLED is 8bit, so is 10bit HDR and Youtube's HDR the culprit? How to play HDR media properly?
PS: Another thing to note is that neither gallery video player nor in youtube player does say HDR in any window or setting while checking file properties. I did read some reports of people seeing HDR stamped at the start of the videos.
Thanks in advance,
[Background]
I was playing game and it's looking too dark so I use enhanched visual feature in game mode.
My brain was clicked as the though why I don't use this for HDR video.
[Pre-test]
Run youtube or any hdr video. You will see a lot of HDR clipping and the sence is dark af.
Ref:
or
[Setup]
You need to made sure the application removed from videotool box list first.
Then add that application to game mode.
Then you play HDR video again => At this point nothing change.
Then you change the enhanched visual feature, suddenly all the hdr clipping gone. (The visual effect not applied at all, it just reset something than HDR working as it should, vola!)
But everytime you play another HDR, you need to hit the enhanced visual button again.
[Alwasy no HDR clipping]
Here is the catch. You go to the setting of game turbo instead, and set it always enhanced!
From now you can enjoy your hdr video as much as you can.
[What the catch?]
Non HDR content will be applied the visual effect you picked. :<
Dolby Audio will not work anymore.
Note. It's only made some sort of reset in background, no visual effect applied to your hdr video, so the quality not downgrade anyway.
I will put a video to demonstrate step by step tomorrow.