avfilters.concatenate module

Contents

avfilters.concatenate module#

concatenate(files, dst)

Concatenate multiple media into a single media.

Multimedia files concatenation utilities.

concatenate(files, dst)[source]#

Concatenate multiple media into a single media.

Roughly equivalent to:

ffmpeg -f concat -safe 0 -i list.txt -c copy dst

Where list.txt contains the list of files to concatenate. It will be automatically created in a temporary file.

Parameters:
  • files (Iterable[str]) –

    The files that should be concatenated.

    All files must have the same streams (same codecs, same time base, etc.)

  • dst (str) – The path to the destination file. Any existing file will be overwritten.

Return type:

None