Capturing Two HDMI Streams at Once 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)

This video builds upon my previous video “Cheap HDMI USB Capture Card on a Raspberry Pi 4”: https://youtu.be/O1NqziPRFVQ

List Devices
v4l2-ctl --list-devices
List PulseAudio Sources
ffmpeg -sources pulse
Record Two Streams at Once
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 alsa_input.usb-MACROSILICON_USB_Video-02.analog-stereo \
-f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size 1920x1080 -framerate 30 -i /dev/video2 \
-f pulse -thread_queue_size 1024 -i alsa_input.usb-MACROSILICON_USB_Video-02.analog-stereo.2 \
-codec copy -copytb 1 \
-map 0:0 -map 1:0 stream1.avi \
-codec copy -copytb 1 \
-map 2:0 -map 3:0 stream2.avi

Leave a comment

Your email address will not be published.