[FFmpeg-user] Capture multiple streams into same container?

Simon Roberts simon at dancingcloudservices.com
Wed Jun 24 16:23:14 EEST 2020


On Wed, Jun 24, 2020 at 5:43 AM Moritz Barsnick <barsnick at gmx.net> wrote:

> On Tue, Jun 23, 2020 at 21:31:25 -0600, Simon Roberts wrote:
> > But I have no clue how to start with this. I tried simply adding more
> input
> > channels to my input specifications:
> [... elided my incorrect command...]
>


> By default, ffmpeg only maps one of each stream type (video, audio,
> subs), as described here:
> https://ffmpeg.org/ffmpeg.html#Automatic-stream-selection
>
> In your case, you need to explicitly map multiple inputs:
>
> $ ffmpeg -f decklink -i 'DeckLink Quad HDMI Recorder (1)' -f decklink -i
> 'DeckLink Quad HDMI Recorder (4)' -map 0 -map 1 -c:v copy -c:a copy
> -metadata title=DeckLinkCapture capture.mov
>
> (Note the "-map 0 -map 1" addition.)
>
> Many thanks Moritz, I'll go tinker with this, and engage with that
documentation you refer to too. The overall docs can be quite overwhelming
when one doesn't have a clue where to start!

Cheers,
Simon


More information about the ffmpeg-user mailing list