OverLay Color Mismatch

Help on issues you run into with LapTimer; in case you have a question on how to use LapTimer, use the forum "Using LapTimer" instead
Post Reply
Belgamia
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 2
Joined: Sat May 07, 2016 12:41 am

OverLay Color Mismatch

Post 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 3248 times
I had it on all video's. Any suggestions on what can be done to correct this?
User avatar
Harry
Site Admin
Site Admin
Posts: 10642
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: OverLay Color Mismatch

Post 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
Image Image Image Image
Belgamia
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 2
Joined: Sat May 07, 2016 12:41 am

Re: OverLay Color Mismatch

Post 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!
User avatar
Harry
Site Admin
Site Admin
Posts: 10642
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: OverLay Color Mismatch

Post 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
Image Image Image Image
Destructo
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 3
Joined: Thu Jul 14, 2016 3:39 am

Re: OverLay Color Mismatch

Post 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.
Attachments
overlay.jpg
overlay.jpg (242.08 KiB) Viewed 2663 times
User avatar
Harry
Site Admin
Site Admin
Posts: 10642
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: OverLay Color Mismatch

Post 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
Image Image Image Image
Destructo
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 3
Joined: Thu Jul 14, 2016 3:39 am

Re: OverLay Color Mismatch

Post by Destructo »

That fixed it.

Thanks!
User avatar
Harry
Site Admin
Site Admin
Posts: 10642
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: OverLay Color Mismatch

Post by Harry »

O.k., I will apply the workaround to all SM-N910* models...

- Harry
Image Image Image Image
User avatar
Harry
Site Admin
Site Admin
Posts: 10642
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: OverLay Color Mismatch

Post by Harry »

This seems to apply to the Samsung S5 as well, it will get a proper handling starting with LapTimer v20.1

- Harry
Image Image Image Image
Post Reply