Power & Source of Big Ideas

HDMI-IN NV12 EDID

Moderators: chensy, FATechsupport

Does anybody know how to force the HDMI-IN to NV12?

with this command I can force 422 but not 420

v4l2-ctl --get-edid > edid.txt
v4l2-ctl --set-edid file=edid.txt,format=hex,ycbcr422

any ideas?
Nobody has this problem?
I think it is a hardware-related thing, you can't change to nv12 if the hardware you are connecting from does not support it.
For example, grabbing video from a second board HDMI 1920x1080(out) to HDMI (in) only supports GBR, but grabbing video from my 8K TV set i can have NV12.
I finally managed to use the HDMI-IN with GStreamer. Here’s what I did:

EDID Modification:

First, I removed the YCrCb 444 and 422 formats from the EDID using the Deltacast EDID Tool.
Then, I applied the modified EDID with the following command:

Code: Select all

v4l2-ctl --set-edid format=raw,file=hdmiin_edid.bin --fix-edid-checksums


GStreamer Pipeline:

After modifying the EDID, it was possible to use GStreamer with the following pipeline:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! glupload ! glcolorconvert ! glcolorscale ! video/x-raw(memory:GLMemory), format=RGBA, width=1920, height=1080 ! gldownload ! glimagesink


This setup worked perfectly for me. Hope this helps anyone facing similar issues!
basket random
chrisberg wrote:
Does anybody know how to force the HDMI-IN to NV12?

with this command I can force 422 but not 420

v4l2-ctl --get-edid > edid.txt
v4l2-ctl --set-edid file=edid.txt,format=hex,ycbcr422

any ideas?


Forcing the HDMI-IN to NV12 (YUV420) format can be a bit tricky, as it depends on the capabilities of your hardware and the drivers you are using. The command you've used is for setting the EDID to indicate YCbCr422 support. To force NV12, you would typically need to interact with the video capture interface provided by your hardware through tools like v4l2-ctl.
chrisberg wrote:
Nobody has this geometry dash problem?

I also had the same problem :(
chrisberg wrote:
I finally managed to use the HDMI-IN with GStreamer. Here’s what I did:

EDID Modification:

First, I removed the YCrCb 444 and 422 formats from the EDID using the Deltacast EDID Tool.
Then, I applied the modified EDID with the following command:

Code: Select all

v4l2-ctl --set-edid format=raw,file=hdmiin_edid.bin --fix-edid-checksums


GStreamer Pipeline:

After modifying the EDID, it was possible to use GStreamer with the following pipeline:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! glupload ! glcolorconvert ! glcolorscale ! video/x-raw(memory:GLMemory), format=RGBA, width=1920, height=1080 ! gldownload ! glimagesink


This setup worked perfectly for me. Hope this helps anyone facing similar issues!

Was this solution successful for you? I will try.

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 19 guests