Contenu connexe Similaire à USB 3.0 CAPTURE HDMI 4K with Loop-through for Image redistribution (20) Plus de Naoto MATSUMOTO (20) USB 3.0 CAPTURE HDMI 4K with Loop-through for Image redistribution1. USB 3.0 CAPTURE HDMI 4K
with Loop-through
for Image redistribution
2018/09/01 SAKURA Internet, Inc. Research Center SR / Naoto MATSUMOTO
(C) Copyright 1996-2017 SAKURA Internet Inc
2. USB 3.0 CAPTURE HDMI 4K with Loop-through for Image redistribution
2
# uname -sr; tail -1 /etc/redhat-release
Linux 3.10.0-862.9.1.el7.x86_64
CentOS Linux release 7.4.1708 (Core)
# yum install -y usbutils hwinfo mplayer v4l-utils ffmpeg git
# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
|__ Port 4: Dev 2, If 9, Class=Human Interface Device, Driver=usbhid, 5000M
# lsusb -vv
# hwinfo --usb
# v4l2-ctl --list-devices
USB Capture HDMI 4K+ (usb-0000:00:14.0-4):
/dev/video0
# v4l2-ctl -d /dev/video0 --info
# v4l2-ctl --list-formats-ext -d /dev/video0
Type : Video Capture
Name : YUV 4:2:2 (YUYV)
Size: Discrete 4096x2160
Interval: Discrete 0.017s (60.000 fps)
# wget https://libav.org/releases/libav-12.3.tar.xz
# tar Jxvf ./libav-12.3.tar.xz; cd libav-12.3
# ./configure --disable-yasm; make; make install
# avconv -f video4linux2 -input_format nv12 -s 1920x1080 -i /dev/video0 -qscale 10 out.mpeg
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1240.062083, bitrate: 1492992 kb/s
nv12, 1920x1080, 1492992 kb/s
60 fps, 1000k tbn
# ffmpeg -f v4l2 -list_formats all -i /dev/video0
[video4linux2,v4l2 @ 0x24114c0] Raw
: yuyv422 : YUV 4:2:2 (YUYV) :
640x360 640x480 720x480 720x576 768x576 800x600
856x480 960x540 1024x576 1024x768 1280x720 1280x800
1280x960 1280x1024 1368x768 1440x900 1600x1200 1680x1050
1920x1080 1920x1200 2048x1080 2560x1440 3840x2160 4096x2160
[video4linux2,v4l2 @ 0x24114c0] Raw
: nv12 : YUV 4:2:0 (NV12) :
640x360 640x480 720x480 720x576 768x576 800x600
856x480 960x540 1024x576 1024x768 1280x720 1280x800
1280x960 1280x1024 1368x768 1440x900 1600x1200 1680x1050
1920x1080 1920x1200 2048x1080 2560x1440 3840x2160 4096x2160
© 2018, Nanjing Magewell Electronics Co., Ltd
SERVERSERVER
HDMI output
SERVER SERVER
HDMI CAPTURE
SERVER
HDMI CAPTURE
HDMI Loop-Trough HDMI Loop-Trough HDMI Loop-TroughHDMI Loop-Trough
POWER ON/OS DOWN POWER ON/OS DOWN
HDMI CAPTURE HDMI CAPTURE
USB 3.0
BUS
POWER
USB 3.0
BUS
POWER
USB 3.0
BUS
POWER
USB 3.0
BUS
POWER
USB 3.0
BUS
POWER
ORIGINAL
READ once
COPY COPY