[FFmpeg-user] How to copy all of 5 audio streams to mp4 file

Moritz Barsnick barsnick at gmx.net
Mon Feb 18 15:56:27 EET 2019


On Mon, Feb 18, 2019 at 11:56:42 +0100, Ulf Zibis wrote:
> I have a ripped vob stream with 5 audio streams. I want all these audio
> streams in the mp4 file. What to do for this?

Read here:
https://ffmpeg.org/ffmpeg.html#Automatic-stream-selection

    "In the absence of any map options for a particular output file,
     ffmpeg inspects the output format to check which type of streams
     can be included in it, viz. video, audio and/or subtitles. For
     each acceptable stream type, ffmpeg will pick one stream, when
     available, from among all the inputs."

So, by default, ffmpeg only selects one of each.

You can use "-map 0" to get *all* streams from the input. This is at
the risk of also mapping e.g. data streams, which the output format may
not support. You would surpress them with "-dn".

Otherwise, you can map each stream explicitly: "-map 0:a:0 -map 0:a:1 ..."

> Also there should be 13 subtitle streams in this video, but I don't find
> them here.

In VOBs, subtitles tend to appear later in the files. Use large values
for "-probesize" and "-analyzeduration" for seeing them (not only when
probing, but also when converting).

OTOH, your ffmpeg output doesn't report them appearing later, which it
should, if it were to find them. So I'm not sure they're there.

Moritz


More information about the ffmpeg-user mailing list