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:28]
nick
products:sbc:vim-5:applications:hdmi-input [2026/10/29 01:51] (current)
nick [Capture the HDMI IN Frames]
Line 1: Line 1:
-====== VIM 5 HDMI Input ======+====== VIM 5 HDMI Input for Linux ======
  
 <WRAP important > <WRAP important >
Line 22: Line 22:
  
 ```shell ```shell
-# Setup +sudo hdmiin_preview_setup 
-hdmiin_preview_setup +hdmiin-demo # Preview
-# Preview +
-sudo hdmiin-demo+
 ``` ```
  
-**Note: You can press ''ESC'' key to exit.**+//Note: You can press ''ESC'' key to exit.//
  
  
Line 34: Line 32:
  
 You can use gstreamer to capture the HDMI IN frames. Here is en example to 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''.+and encoding them to ''H264'' format and mux to ''MP4'' format store in file ''/tmp/test70.mp4''.
  
 ```shell ```shell
-# Setup +sudo hdmiin_capture_setup # Setup 
-hdmiin_capture_setup +gst-launch-1.0 -vvv v4l2src device=/dev/video70 io-mode=dmabuf num-buffers=600 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1,interlace-mode=interleaved ! amlvenc ! h264parse ! qtmux ! filesink location=test_70.mp4
-# Capture frames +
-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+
 ``` ```
  
Line 46: Line 42:
  
 ```shell ```shell
-# Setup +sudo hdmiin_capture_setup # Setup 
-hdmiin_capture_setup +gst-launch-1.0 -vvv v4l2src device=/dev/video70 io-mode=dmabuf num-buffers=600 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1,interlace-mode=interleaved ! glimagesink
-# Capture frames +
-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+
 ``` ```
 +===== Setup HDMI IN audio =====
  
-**Note: You can press ''ESC'' key to exit.**+Enable audio:
  
 +```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:28 by nick