FFmpeg 4.0.6
Since* 4.0
#

Mix several video input streams into one video stream.

A description of the accepted options follows.

nb_inputs

The number of inputs. If unspecified, it defaults to 2.

weights

Specify weight of each input video stream as sequence. Each weight is separated by space.

duration

Specify how end of stream is determined.

longest

The duration of the longest input. (default)

shortest

The duration of the shortest input.

first

The duration of the first input.