====== VIM4 HDMI Input for 5.15 Kernel ====== ===== Hardware Connection ===== * Connect your VIM4 HDMI Out to an HDMI Display * Connect your HDMI OUT cable to VIM4 HDMI IN port ===== Capture the HDMI IN Frames ===== You can use gstreamer to capture the HDMI IN frames. Here is en example to capture the HDMI IN frames and encoding them to ''H264'' format and mux to ''MP4'' format store in file ''/tmp/test71.mp4''. ```shell gst-launch-1.0 v4l2src device=/dev/video71 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=interleaved ! amlvenc ! h264parse ! qtmux ! filesink location=/tmp/test71.mp4 ``` /* ===== Preview the HDMI IN Frames on Gnome Desktop ===== You can use gstreamer plugin ''clutterautovideosink'' to preview the HDMI IN frames on the Gnome desktop. ```shell gst-launch-1.0 v4l2src device=/dev/video71 io-mode=dmabuf ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=interleaved ! clutterautovideosink ``` * You can use ''Alt+F7'' to select the window and move mouse to move the window. * It doesn't support fullscreen mode. */ ===== Preview the HDMI IN Frames on Framebuffer Console ===== **HDMI input preview can only work under framebuffer console**, so you need to use the server image, you can install via OOWOW. If you use the desktop image, you need to switch to the framebuffer console. ```shell sudo chvt 3 ``` If you want to go back to the desktop ''sudo chvt 2'' ==== Test ==== Execute the HDMI Input demo command ''sudo hdmiin-demo'' If everything is OK you will see the HDMI Input source on your display.