[FFmpeg-user] How to create "Input #1", "Input #2" etc. in addition to "Input #0"?

James Darnley james.darnley at gmail.com
Mon Sep 28 03:27:48 EEST 2020


On 28/09/2020, Stub via ffmpeg-user <ffmpeg-user at ffmpeg.org> wrote:
>  Dear Jin DeLaHunt,
> Thank you for your detailed response.
> I am quite familiar with how versatile ffmpeg is with its extensive
> commandline flags. I know about how to use multiple input files (-i), use
> mapping (-map) to select what of those inputs should go into the output
> file, and apply complicated filters on that before it is going into the
> ouput file container.
>
> When I then do a 'ffprobe' of the resulting output file, I get for example
> something like this:
> Input #0, matroska,webm, from 'GMT20200918-030903.mkv':  Metadata:
> COMPATIBLE_BRANDS: isommp42    MAJOR_BRAND     : mp42    MINOR_VERSION   :
> 0    ENCODER         : Lavf58.29.100  Duration: 00:23:21.60, start:
> 0.000000, bitrate: 580 kb/s    Stream #0:0: Video: h264 (High),
> yuv420p(progressive), 640x360, 25 fps, 25 tbr, 1k tbn, 2k tbc (default)
> Metadata:      HANDLER_NAME    : H.264/AVC video      ENCODER         : AVC
> Coding      DURATION        : 00:23:21.600000000    Stream #0:1: Video: h264
> (High), yuv420p(progressive), 1024x768, 25 fps, 25 tbr, 1k tbn, 2k tbc
> (default)    Metadata:      HANDLER_NAME    : H.264/AVC video      ENCODER
>        : AVC Coding      DURATION        : 00:23:21.600000000    Stream
> #0:2: Audio: aac (LC), 32000 Hz, mono, fltp (default)    Metadata:
> HANDLER_NAME    : AAC audio      DURATION        : 00:23:21.568000000
> Stream #0:3: Subtitle: webvtt    Metadata:      DURATION        :
> 00:23:20.790000000
>
>
> The streams that I have selected from the input files, all end up under the
> "Input #0" of the output file.
>
> My question is then this:Can I also have (and/or create) "Input #1", "Input
> #2", etc. in the output file container?Having an "Input #0" in the file, at
> least suggest that the container file can contain also "Input #1", "Input
> #2", etc.
>
> I have been searching the Internet for more than a week, without
> success.....
>
> Any ideas?

Please do not top post.  Your reply should be placed below the text
you are quoting.

I don't quite understand.

Are you trying to get the string "Input #0" into the output file?
Perhaps you want to look at the -metadata option and give the streams
you map some label of your choosing.  Just be aware that not all
formats support arbitrary metadata.


More information about the ffmpeg-user mailing list