[FFmpeg-user] Concat with listing all files in command?

Micael Silva micaelsilva at gmail.com
Mon Nov 19 18:13:28 EET 2018


On Sat, Nov 17, 2018 at 2:36 PM Ben <bxstover-at-yahoo.co.uk at ffmpeg.org>
wrote:

> I want to concat various video files with ffmpeg (in WinOS). Therefore I
> used so far the following command:
>
>    ffmpeg.exe" -f concat -safe 0 -i "D:\clips\filelist.txt" -c copy
> "ffmpegconcatout.mp4"
>
> Where D:\filelist.txt contains all filenames to concatenate.
>
> Now I want to change the command so that no intermediate file is necessary
> any more.
>
> How can I achieve this?
>
> The following command does NOT work:
>
>    ffmpeg.exe" -f concat -safe 0 -i "D:\clips\firstfile.mp4"
> "D:\clips\secondfile.mp4" "D:\clips\thirdfile.mp4" -c copy
> "ffmpegconcatout.mp4"
>
> Whats worng?
>
> Ben
>

Did you tried ffmpeg -i "concat:file1.ts|file2.ts|file3.ts" ?
But remember that concat input only accepts "headless" containers like mpg
or ts, mp4 isn't one of them.


More information about the ffmpeg-user mailing list