<p>FFMPEG takes 2 -i input options (can a capture device) and uses -map to select the input streams then uses -program to define program name and -st to define output streams to a output file. i.e.</p>
<pre><code>!ffmpeg -y -i https://mkvtoolnix.download/samples/vsshort-vorbis-subs.mkv \
-i https://github.com/Matroska-Org/matroska-test-files/raw/master/test_files/test5.mkv \
-map 0:0 -map 0:1 -map 0:2 -map 0:3 \
-map 1:0 -map 1:1 -map 1:2 -map 1:3 -map 1:4 -map 1:5 -map 1:6 -map 1:7 -map 1:8 \
-program title=vsshort-vorbis-subs:st=0:st=1:st=2:st=3 \
-program title=test5:st=4:st=5:st=6:st=7:st=8:st=9:st=10st=11:st=12 \
 -c:s copy mpts.mkv
</code></pre>

CC BY-SA 4.0
2020-09-02T11:40:07.153Z
Thanks for pointing me to ffmpeg. Originally, I wanted a hardware recorder. But now I think a computer with ffmpeg will be much more helpful for my application.
Lasse Kliemann
CC BY-SA 4.0
2020-09-01T01:27:48.877Z
2020-09-01T01:27:48.877Z
xer-rex
<p>Is there something like the Atomos Ninja V, but with <strong>two</strong> HDMI inputs and producing MP4 or MKV files with <strong>two</strong> video tracks? A combination of multiple devices (mixer, recorder) would also be fine.</p>

CC BY-SA 4.0
2020-08-31T18:00:16.103Z
What is your question? Please edit your post to clarify.
Matt
<video-recording><hdmi>
Recorder for 2 HDMI Signals into MP4/MKV with 2 Video Tracks
Lasse Kliemann
# Recorder for 2 HDMI Signals into MP4/MKV with 2 Video Tracks

(Asked by: username_0 on 2020-08-31)

Is there something like the Atomos Ninja V, but with **two** HDMI inputs and producing MP4 or MKV files with **two** video tracks? A combination of multiple devices (mixer, recorder) would also be fine.

**Tags:** video-recording, hdmi

> **Comments:**
> **username_1**: What is your question? Please edit your post to clarify.  

---

## 1 answers

### Answer by username_2 on 2020-09-01. Score: 0 | Accepted answer

FFMPEG takes 2 -i input options (can a capture device) and uses -map to select the input streams then uses -program to define program name and -st to define output streams to a output file. i.e.
!ffmpeg -y -i https://mkvtoolnix.download/samples/vsshort-vorbis-subs.mkv \
-i https://github.com/Matroska-Org/matroska-test-files/raw/master/test_files/test5.mkv \
-map 0:0 -map 0:1 -map 0:2 -map 0:3 \
-map 1:0 -map 1:1 -map 1:2 -map 1:3 -map 1:4 -map 1:5 -map 1:6 -map 1:7 -map 1:8 \
-program title=vsshort-vorbis-subs:st=0:st=1:st=2:st=3 \
-program title=test5:st=4:st=5:st=6:st=7:st=8:st=9:st=10st=11:st=12 \
 -c:s copy mpts.mkv

> **Comments:**
> **username_0**: Thanks for pointing me to ffmpeg. Originally, I wanted a hardware recorder. But now I think a computer with ffmpeg will be much more helpful for my application.  

---

