Cheap HDMI USB Capture Card on a Raspberry Pi 4

HDMI to USB Video Capture Card 1080P: http://ebay.us/Mv0snK (eBay Affiliate)

HDMI to USB Video Capture Card 1080P (Amazon Affiliate)
US: https://amzn.to/3cwUqjv
UK: https://amzn.to/2DD2QZh
CA: https://amzn.to/2PwBNS0
ES: https://amzn.to/30w07tM
FR: https://amzn.to/31sG92a
IT: https://amzn.to/30yMOsz
DE: https://amzn.to/2XD83aO
AU: https://amzn.to/3a3ItQZ

4K 1×2 HDMI Splitter by OREI – 1 Port to 2 HDMI Display Duplicate/Mirror – Powered Splitter Ver 1.4 Certified for Full HD 1080P High Resolution & 3D Support (One Input To Two Outputs) – USB Powered (Amazon Affiliate)
US: https://amzn.to/3ktPDlS
UK: https://amzn.to/3gsluCv (similar)
CA: https://amzn.to/3qAgjoB
ES: https://amzn.to/3gmYq8e (similar)
FR: https://amzn.to/36Qe34J (similaire)
IT: https://amzn.to/33QNg6C (simile)
DE: https://amzn.to/2JVVQKn (ähnlich)
IN: https://amzn.to/3gjsAcz
AU: https://amzn.to/2JYXLhe

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
US: https://amzn.to/3azJgrW
UK: https://amzn.to/2JdMq9o
CA: https://amzn.to/3bwiRvY
ES: https://amzn.to/2T06LnM (similar)
FR: https://amzn.to/3cvIZrs (similaire)
IT: https://amzn.to/2Ar74Sj (simile)
DE: https://amzn.to/2AqfWHQ (ähnlich)
IN: https://amzn.to/3ey6fWj
AU: https://amzn.to/2VTUt1C
NL: https://amzn.to/3f5NdsD (vergelijkbaar)

FFmpeg Capture Notes: https://trac.ffmpeg.org/wiki/Capture/Webcam

Install v4l
sudo apt install v4l-utils
List Devices
v4l2-ctl --list-devices
List Modes
ffmpeg -f v4l2 -list_formats all -i /dev/video0
List PulseAudio Sources
ffmpeg -sources pulse
Display Video from HDMI Capture Card using FFplay (720p 60fps)
ffplay -f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 60 -i /dev/video0
Display Video from HDMI Capture Card using FFplay (1080p 30fps)
ffplay -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video0
Play Audio from HDMI Capture Card using FFplay
ffplay -f pulse -i default
Capture Audio and Video to AVI File (720p 60fps, no re-encoding)
ffmpeg -f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 1280x720 -framerate 60 -i /dev/video0 -f pulse -thread_queue_size 1024 -i default -codec copy vid_720p_60.avi
Capture Audio and Video to AVI File (1080p 30fps, no re-encoding)
ffmpeg -f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video0 -f pulse -thread_queue_size 1024 -i default -codec copy vid_1080p_30.avi
Convert avi to mp4 (hardware encoding)
ffmpeg -i vid_720p_60.avi -vcodec h264_omx -acodec aac -b:v 9500k -pix_fmt yuv420p vid.mp4
Convert avi to mp4 (software encoding)
ffmpeg -i vid_720p_60.avi -vcodec libx264 -acodec aac -b:v 9500k -pix_fmt yuv420p vid.mp4
Play mp4 with Hardware Decoding
omxplayer vid.mp4

Leave a comment

Your email address will not be published.