[Python] How can I merge all the videos in a folder to make a single video file using FFMPEG

Discussão em 'Python' iniciado por Stack, Janeiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have a folder with 20+ video files and I need to merge them to make one long video file. How can I achieve this using FFMPEG in Python?

    I know the following command

    ffmpeg -vcodec copy -isync -i \ "concat:file1.mp4|file2.mp4|...|fileN.mp4" \


    outputfile.mp4

    But I'd rather not type all the names of the 20+ files.

    Continue reading...

Compartilhe esta Página