Raspberry Pi 4 HDMI Capture Work in Progress

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

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 Audio Devices
arecord -l
List PCMs
arecord -L
Display Video from HDMI Capture Card using FFplay
ffplay -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video0
Play Audio from HDMI Capture Card using FFplay
ffplay -f alsa -i plughw:CARD=Video,DEV=0
Install MPlayer
sudo apt install mplayer
Display Video from HDMI Capture Card using MPlayer
mplayer tv:// driver=v4l2:width=1920:height:1080:device=/dev/video0:fps=30
Attempt to Record Audio and Video to mp4
ffmpeg -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video0 -f alsa -i plughw:CARD=Video,DEV=0 vid.mp4
Attempt to Record Audio and Video to avi
ffmpeg -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video0 -f alsa -i plughw:CARD=Video,DEV=0 -codec copy vid.avi
Convert avi to mp4
ffmpeg -i vid.avi vid.mp4

Leave a comment

Your email address will not be published. Required fields are marked *