Page 1 of 1

OverLay Color Mismatch

Posted: Sat May 07, 2016 12:56 am
by Belgamia
Using Laptimer v20.0.7 on an Andoid (Galaxy Note Edge), Successfully included Video recording and OBD Data. When overlaying the data over the video, the colors from the overlay (Green and red) appear to high versus the gray, creating a mismatch and some sort of shadow effect.
ScreenShot Overlay
ScreenShot Overlay
Capture3.png (96.36 KiB) Viewed 3245 times
I had it on all video's. Any suggestions on what can be done to correct this?

Re: OverLay Color Mismatch

Posted: Sat May 07, 2016 10:01 am
by Harry
Yes, we have seen this for a Samsung Note 4 during beta too. See #3 on viewtopic.php?f=39&t=1693.

The problem seems to be the Samsung returns wrong memory addresses for the UV planes. This means the gray scale part (Y plane) of the frame is aligned correctly, but coloring (UV) is misaligned. As I never can be sure if this is a device specific issue or some missing tweak in LapTimer, item #3 has been raised to monitor if this problem occurs for other devices too. The Galaxy Note Edge seems to be the second device showing this problem.

If I'm right, it is a problem in Samsung's adoption of the Android Image class. This implementation is very chip set / video coder dependent and varies for each model / make.

To further track this issue, please post your Android version here. The straight forward way would be Samsung fixes it in an upcoming Android version. I will consider some workaround too, but it is hard to do without direct access to these devices.

Your workaround for overlay exports is simply to fall back to the slow software approach: LapTimer ‣ Administration ‣ Settings ‣ Expert Settings ‣ Video Tweaks / Force Software Encoding.

- Harry

Re: OverLay Color Mismatch

Posted: Sun May 08, 2016 6:03 pm
by Belgamia
Thanks for the FAST response. Impressed! The workaround did the job, got great footage now.

FYI Samsung Model# SM-N915A, Android Version 5.1.1

Finally a great App!

Re: OverLay Color Mismatch

Posted: Fri May 13, 2016 9:57 am
by Harry
Hi,

I will have a workaround for the color problem available with LapTimer v20.0.10. Once calibrated, you can switch back to the faster hardware encoded option. Additional information needed: which size is the video - is is HD (720), FullHD (1080) or UHD 4K (2160)? And can you send me a full resolution snapshot of the above attachment to Harry@gps-laptimer.de?

Thanks.

- Harry

Re: OverLay Color Mismatch

Posted: Thu Jul 14, 2016 4:25 am
by Destructo
I am having the same issue with v20.0.15 on a Samsung Galaxy Note 4 (SM-N910T) running Android 5.1.1 and generating overlay on 1080p30 video recorded on GoPro 4. Switching to the software render generates the overlay correctly.

In the attached pic, you can see that all the colors are misaligned in the video, not just the overlay.

I had to crop the right side of the image to get below the 256k file size limit.

Re: OverLay Color Mismatch

Posted: Thu Jul 14, 2016 9:58 am
by Harry
Hi,

The device specific workaround implemented in LapTimer for the "SM-N910A" is not applied automatically to a "SM-N910T"... Provided the T model uses the same offsets (to be verified), I can change recognition to a SM-N910 prefix in a future release.

You can define you own workaround by setting the "UV Plane Offsets (model,w,h,[-]lines:...)" Expert Setting in LapTimer:

Try

Code: Select all

SM-N910T,1280,720,+32:SM-N910T,1920,1080,+16
to verify the T uses the same as the A and let me know if this fixes the issues.

NB: changing the pixel offset (+32 for HD and +16 for FullHD) to a wrong value may crash your phone when an overlay is generated.

- Harry

Re: OverLay Color Mismatch

Posted: Thu Jul 14, 2016 6:04 pm
by Destructo
That fixed it.

Thanks!

Re: OverLay Color Mismatch

Posted: Thu Jul 14, 2016 9:31 pm
by Harry
O.k., I will apply the workaround to all SM-N910* models...

- Harry

Re: OverLay Color Mismatch

Posted: Sat Aug 20, 2016 7:22 am
by Harry
This seems to apply to the Samsung S5 as well, it will get a proper handling starting with LapTimer v20.1

- Harry