Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim-5:applications:hdmi-input

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim-5:applications:hdmi-input [2026/09/14 06:20]
nick
products:sbc:vim-5:applications:hdmi-input [2026/09/14 06:36] (current)
nick
Line 1: Line 1:
-====== VIM4 HDMI Input for 5.15 Kernel ======+====== VIM 5 HDMI Input for Linux ======
  
 <WRAP important > <WRAP important >
Line 7: Line 7:
 ===== Hardware Connection ===== ===== Hardware Connection =====
  
-  * Connect your VIM4 HDMI Out to an HDMI Display +  * Connect your VIM 5 HDMI Out to an HDMI Display 
-  * Connect your HDMI OUT cable to VIM4 HDMI IN port+  * Connect your HDMI OUT cable to VIM 5 HDMI IN port
  
 <WRAP important > <WRAP important >
-You must connect your VIM4 to a workablbe HDMI screen or the HDMI IN will not working.+You must connect your VIM 5 to a workablbe HDMI screen or the HDMI IN will not working.
 </WRAP> </WRAP>
  
 +===== Preview =====
  
-===== 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  +Execute the HDMI Input demo command ''sudo hdmiin-demo'' 
-and encoding them to ''H264'' format and mux to ''MP4'' format store in file ''/tmp/test71.mp4''.+ 
 +If everything is OK you will see the HDMI Input source on your display.
  
 ```shell ```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+hdmiin_preview_setup # Setup 
 +sudo hdmiin-demo # Preview
 ``` ```
  
-/*+//Note: You can press ''ESC'' key to exit.//
  
-===== Preview the HDMI IN Frames on Gnome Desktop ===== 
  
-You can use gstreamer plugin ''clutterautovideosink'' to preview the HDMI IN frames on the Gnome desktop.+===== 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 ```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+hdmiin_capture_setup # Setup 
 +gst-launch-1.0 -vvv v4l2src device=/dev/video71 io-mode=dmabuf num-buffers=600 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=interleaved ! amlvenc ! h264parse ! qtmux ! filesink location=test_71.mp4 # Capture frames
 ``` ```
  
-<WRAP tip > +You can also use gstreamer plugin ''glimagesink'' to preview the HDMI IN frames on the Gnome desktop.
-  * You can use ''Alt+F7'' to select the window and move mouse to move the window. +
-  * It doesn't support fullscreen mode. +
-</WRAP>+
  
-*/+```shell 
 +hdmiin_capture_setup # Setup 
 +gst-launch-1.0 -vvv v4l2src device=/dev/video71 io-mode=dmabuf num-buffers=600 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=interleaved ! glimagesink # Capture frames 
 +```
  
-===== Preview the HDMI IN Frames on Framebuffer Console =====+//Note: You can press ''ESC'' key to exit.//
  
-**HDMI input preview can only work under framebuffer console**, so you need to use the server image, you can install via OOWOW.+===== Setup HDMI IN audio =====
  
-If you use the desktop image, you need to switch to the framebuffer console. +Enable audio:
- +
-Press ''Ctrl + Alt + F3'' to switch to the framebuffer console and **use ''root'' to login**. +
- +
-<WRAP important > +
-You must use ''root'' to login or the audio may not working on Ubuntu 24.04. +
-</WRAP> +
- +
- +
-<WRAP tip > +
-If you want to go back to the desktop press ''Ctrl + Alt + F1''+
-</WRAP> +
- +
- +
-==== Test ==== +
- +
-Execute the HDMI Input demo command ''sudo hdmiin-demo'' +
- +
-If everything is OK you will see the HDMI Input source on your display. +
- +
- +
-==== Troubleshooting ==== +
- +
-** No audio for ''sudo hdmiin-demo'': ** +
- +
-If you use the Ubuntu 24.04 desktop image, when you login with the normal user ''khadas'', the audio may not work, there are two solutions to +
-fix this issue: +
- +
-1. Use the server image and use ''root'' to login +
- +
-2. If you use the desktop image, you need to press ''Ctrl + Alt + F3'' to switch to framebuffer console and **use ''root'' to login** +
- +
-<WRAP tip > +
-If you want to go back to the desktop press ''Ctrl + Alt + F1''+
-</WRAP>+
  
 +```bash
 +hdmiin_audio enable
 +```
  
 +//Note: Once the HDMI IN audio is enabled, the system audio will not working anymore, but you can recovery the system audio by disabling the HDMI IN audio.// 
  
 +Disable audio:
  
 +```bash
 +hdmiin_audio disable
 +```
  
  
Last modified: 2026/09/14 06:20 by nick