Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

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
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
v4l2-ctl --list-devices
v4l2-ctl --list-devices
v4l2-ctl --list-devices
List PulseAudio Sources
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ffmpeg -sources pulse
ffmpeg -sources pulse
ffmpeg -sources pulse
Record Two Streams at Once
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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
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
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. Required fields are marked *