[FFmpeg-user] Concat filter with more than 1 audio stream -- How?

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Feb 24 12:50:00 EET 2020


Am Mo., 24. Feb. 2020 um 01:45 Uhr schrieb Mark Filipak
<markfilipak.windows+ffmpeg at gmail.com>:
>
> On 02/23/2020 07:05 PM, Carl Eugen Hoyos wrote:
> > Am Mo., 24. Feb. 2020 um 00:42 Uhr schrieb Mark Filipak
> > <markfilipak.windows+ffmpeg at gmail.com>:
> >
> >> Here:
> >> https://trac.ffmpeg.org/wiki/Concatenate
> >> I see this:
> >> ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" -c copy output.ts
> >
> > Better use "cat" to concatenate transport streams if you don't
> > want to re-encode.
>
> I'm just trying to find WHAT WORKS.

If you want to concatenate mpeg streams, use "cat" (or "copy /b" on windows)

> In this case, WHAT WORKS is the above.

Sorry, I was under the impression you posted here because you expect
us to know more about it than you do.
Please ignore my answers if I misunderstood.

> I tried making the output 'n:\output.mkv' but ffmpeg complained.
> Eventually I want to convert the TS container to MKV, but first, I need
> to get all the audio tracks into the TS container.
>
> > (You are missing -map 0 but this is not the best solution for
> > your issue.)
>
> ?

You are missing -map 0 but if you want to concatenate (and not
re-encode) than you should not use FFmpeg.

> >> https://ffmpeg.org/ffmpeg-filters.html#concat
> >
> > This is the documentation of a filter, you are using a protocol above.
>
> Do you have any idea how I can specify 'n' 'v' & 'a' in this case?

You cannot because the documentation is for a filter but you are using
a protocol (they - fortunately! - share a name, as does a demuxer).

Note that I am not suggesting you use the filter, for mpeg streams, you
should use the protocol, it is (much) simpler.

Carl Eugen


More information about the ffmpeg-user mailing list