![]() I am not entirely familiar with ffmpeg or which options and arguments I should be using. and the three videos can be of different resolutions. where list.txt is a list of files in the format: Code: file video1.mp4 file video2.mp4 file video3.mp4. I'm trying to concat some video into one single video using ffmpeg.įirst I tried command below and it works fine:įfmpeg -i a.mp4 -i b.mkv -f lavfi -t 0.1 -i anullsrc -filter_complex scale=1920:808:force_original_aspect_ratio=decrease,pad=1920:808:(ow-iw)/2:(oh-ih)/2 concat=n=2:v=1:a=1 -map -map -vcodec libx264 -crf 27 -preset ultrafast -threads 2 out.mp4įfmpeg -i b.mkv -i a.mp4 -f lavfi -t 0.1 -i anullsrc -filter_complex scale=1920:808:force_original_aspect_ratio=decrease,pad=1920:808:(ow-iw)/2:(oh-ih)/2 concat=n=2:v=1:a=1 -map -map -vcodec libx264 -crf 27 -preset ultrafast -threads 2 out. The concat filters require all segments to have the same properties, including aspect ratio. I am building a wrapper for ffpmeg but the concatenate part has me a bit stuck. For example, ffmpeg can mux different resolution files into an mp4 or ts container: Code: ffmpeg-f concat-i list.txt -c copy mix.mp4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |