This repository has information about these cheap USB HDMI video capture dongle that are available at Amazon/AliExpress/Banggood:
These are great for capturing a computer HDMI output (e.g. from a raspberry pi) into a video file.
You can use Open Broadcaster Software (OBS) Studio (obsproject/obs-studio) to easily record a video from the HDMI input:
And the source properties were configured as:
TIP After setting the source resolution, and returning to the main window, you should right-click the video source, and execute the Resize output (source size)
command to resize the output canvas to the size of the source.
After recording, it looks like:
You can also use µStreamer (aka uStreamer) to start a Motion JPEG (aka MJPEG) streaming web server at http://localhost:8080 with:
./ustreamer \
--format jpeg \
--resolution 1280x720 \
--desired-fps 15 \
--drop-same-frames 5 \
--slowdown
NB You should play with the values of the --desired-fps
and
--drop-same-frames
arguments to minimize the CPU usage of ustreamer and the
web browser.
NB If the image is blurred, check the resolution at the OS level with the
fbset
or xrandr
command, and use it in the ustream --resolution
argument.
lsusb details:
lsusb
Bus 003 Device 004: ID 534d:2109 MACROSILICON
lsusb -s 3:4 -v
See the output at lsusb-output.txt.
v4l details:
v4l2-ctl --device /dev/video0 --list-formats-ext --all
See the output at v4l-output.txt.