Page 1 of 1

HDMI-IN NV12 EDID

Posted: Mon Nov 13, 2023 9:35 am
by chrisberg
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?

Re: HDMI-IN NV12 EDID

Posted: Mon Jan 15, 2024 9:02 am
by chrisberg
Nobody has this problem?

Re: HDMI-IN NV12 EDID

Posted: Wed Jan 17, 2024 11:43 pm
by @lex
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.

Re: HDMI-IN NV12 EDID

Posted: Mon Jun 17, 2024 8:15 am
by chrisberg
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!

Re: HDMI-IN NV12 EDID

Posted: Tue Jun 18, 2024 9:41 am
by Rociefoldn
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.

Re: HDMI-IN NV12 EDID

Posted: Wed Jul 17, 2024 9:12 am
by Willyunn
chrisberg wrote:
Nobody has this geometry dash problem?

I also had the same problem :(

Re: HDMI-IN NV12 EDID

Posted: Thu Jul 18, 2024 9:17 am
by jaydenz
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.