Now many products are sold on the market advertising 4K video output, but how to test and check if it just a lie with only part of the system support 4K (e.g. physical video output), but the rest of the system makes you lose quality? When I worked on DVD players, we had some special DVDs with video pattern allowing us to test different video quality. You can read about different video test patterns in “AVSHD 709 DVD document“. There are also some expensive equipments such as DVDO AVLab TPG – 4K Test Pattern Generator that generate test patterns to calibrate video equipments, but if all we want to do is to check the resolution has not been tempered with there must be a cheaper and easier way.
After having a discussion about this issue on Google+, Dan Car decided to create a 2160p (3840×2160) test pattern image with some text, and a 1-pixel grid with black and white pixels that’s now availabnle in PNG and original XCF format. So if your device actually outputs 4K UHD / 2160p all the way, you should clearly see black and white dots on your 4K TV, but if it is downscaled to 1080p in the process, you may just see an image with a gray background, or irregular white and black dots. So if you are the lucky owner of a 4K UHD TV, I encourage you to give it a try. For most Android devices, this image should be good enough to test 2160p resolution, because everything might be rendered to the framebuffer.
But based on my experience working with Sigma Designs processors a test image may not always be enough, as OSD, pictures, and videos may be rendered on different scalers.
In the audio video output block, you’ll notice 4 “Scales”, normally referred as scalers in the source code. The OSD layer was normally mapped to the framebuffer in Linux, pictures either rendered to the framebuffer or the GFX scaler, and videos decoding on the video scaler. The fun part is that all these scalers (different layers) can have different resolution. For example the OSD (user interface) can be set to 1024×768, and the video scaler to 1920×1080. Before video output, the images from these scalers are downscaled or upscaled via the mixer outputted the video to whatever your chosen video output and resolution is. So that’s why you may need both image and video test pattern to test video resolution.
It has not really been straightforward. After trying some applications like ffDiaporama and Kdenlive, I quickly released they did not support 4K UHD resolution. (By the way, there’s a debate about using 4K for UHD / 2160p resolutions, since 4K may refer to at least 5 different resolutions, but the test pattern in this post is only for 3840×2160 resolution). Finally, I found a program called 4K Slideshow Maker specifically designed to create… 4K slideshow! And it worked great, except for the fact that it’s used to make a video slideshow of your holiday/wedding/party pictures, and compression is lossy, so the tiny pixels may have gone away, and I don’t have 4K UHD television to try it out. So I had to use a lossless compression to make sure the pattern is not distorted.
Finally, I found instructions to use avconv to encode losslessly with H.264, and create a slideshow with ffmpeg, which I adapted to avconv:
1 |
avconv -i 4ktest.png -c:v libx264 -preset veryslow -qp 0 -r 1/5 4ktest.mkv |
4ktest.png isthe original test pattern image renamed from “Black and white checkerboard 4K test image.png”
-c:v libx264 is to use H.264 encoding
-preset veryslow is to keep the video size as small as possible
-qp 0 is for lossless compression
-r 1/5 is for the framerate, here creating a 5 second video.
4ktest.mkv is the resulting video test pattern.
I have tried it with my FullHD TV using Totem Player and I can only see a gray background in full screen. For some reasons, the video does not play with VideoLAN. So if you have a UHD TV feel free to download 4K_video_test_pattern.mkv to try it out and confirm you can indeed see the black and white dots. Thanks!
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
Do you plan buy in near futur some even cheapest 4K panel with HDMI 2.0 input?
@Indy I’ve bought a new FullHD TV last year since my older started to have some funny behaviour, so I’m not ready to buy one right now. At first, I thought I might try to crowdfund one by selling the samples I use for review. But I went to a shop close to my place where they sell Japanese and Korean models (no Chinese ones), and the cheapest ones were about $1,200, so even if I could get $50 net per sample, I’d need 24 samples, so it’s not going to happen. Maybe I’ll do that for a home theater… Read more »
I downloaded the video and my SAMSUNG UHD sais, this video is not supported
Last test was trying to play directly from the TV, when I try to play from the ZERO Devices Z5C also MXPlayer, XBMC, and the Android video players could not open this file.
Maybe I try to download again
@Javi
I’ve just tried it. Most players can’t play it.
I eventually managed to play it with MX Player selecting the S/W decoder option on the top right.
When you play, you’ll probably want to pause the video, and set the display to 100% with the icon on the right of the play/pause/ffwd/etc.. icons.
I could now:
– Copied the video to a SD card
– Placerd the card in the ZERO Devices Z5C
– Setted MX Player for S/W
– Adjusted the screen to 100%
Now I can see the dots 😀
When I choose another than “scale 100%” just can see grey background. When I chose lower than 4K resolution also can see grey.
So it’s working fine (I see the dots pattern is not perfect, but really can see them)
When I said “scale 100” it is in the MX Player configuration, I did not touch the Z5C screen scale or size.
@Javi
I can also see some dots with a 1080p display.. I wonder why…
Can you see any difference between 1080p and 4K settings?Sorry, I missed you answered that already. So that’s good then.
@Javi
What about the PNG file? Since the UI is 1080p (pixel and dp?) I guess you can’t see the dots, right?
I tested these pics: http://www.freaktab.com/showthread.php?17675-Test-Patterns-Test-Your-4K-TV-Box-Stick-True-Resolution
I can see grey background. Also I think it depends on the scale of the image, it must be 100% or the dots can not be seen.
I have published some pictures here after testing a lottle more:
http://www.freaktab.com/showthread.php?17857-4K-UHD-Resolution-Zero-Devices-Z5C
@Javi
When you take a screenshot @ 4K, what is the resolution? Or if your simply run CPU-Z what resolution does it detect when you are set to 4K output?
CPU-Z
Pix: 1920×1080
dp: 1920×1080
Screen density: 160dpi
Is this test pattern open source or copyrighted?
@IlBu
You can use the video as you wish. However, note that I created the video based on Dan Car work at https://plus.google.com/u/0/+DanielCardenas/posts/VTRrHcD9dTz?cfem=1, so you may want to ask him too to make sure.
I’d rather just kill myself now because after two weeks the audio and sound still suck and I have the best of the best and a $3K bill… F THAT AND FML!
Almost all 4K TVs are smart and running on some version of Linux.
It could have been great if someone designed a small code to identify the TV as 4K, like Antutu bench marking.
Having trouble outputting HD video. I recently purchased YI+ 4K action camera. I edited a short clip and burned a DVD. I played the DVD back on my UHD TV and it still looks crummy. After spending hours and days, trying to solve this, I discovered that regardless of the editing and output resolutions I select, the specs for my PC, my GPU are at lower resolution. Also, I’ve read the max resolution for a DVD is only 480p, and regardless of the resolution I select for editing or output, everything will default to limited res settings. Is this true.… Read more »
If you actually burned a Video DVD then the resolution is 720×480.
If you burned a file on a DVD (data) then it depends on the computer or system that plays the file, and connecting to your TV (HDMI, composite, component…)