but c.mp3 is the concatenated result while c.ogg is a converted copy of a.mp3
I've tried a bunch of other possibilities, including using asplit, but I just end up with less than helpful error messages. I've read much of the extensive ffmpeg documentation, including the filter document, but I don't think I understand how one connects the various streams that can be created. Even an explanation of why the above command does what it does would be helpful.
Re: How do I concatenate audio files and produce two copies in different formats?
On Wed, Oct 21, 2015 at 08:25:36 -0700, ms wrote:
> ffmpeg -i a.mp3 -i b.mp3 -filter_complex concat=n=2:v=0:a=1 c.mp3 c.ogg
> but c.mp3 is the concatenated result while c.ogg is a converted copy of
> Even an explanation of why the above command does what it does would be
You are specifying two outputs. The second output gets a completely new
set of output arguments, i.e. options which apply to it. You didn't
provide any, so ffmpeg uses defaults. In your case, it uses no filter
and the first input source for the second output.
To resolve this, you could specify filter_complex twice (with explicit
[0:0][1:0] inputs). Or even better, you duplicate the result of the
filter chain using the mentioned asplit, and use the results each for
your outputs respectively: