

st: 0 edit list: 2 Missing key frame while searching for timestamp: 0 I tried answer but it still produces the same result.Ĭommand I tried is ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "scale=720:576:force_original_aspect_ratio=decrease,pad=720:576:(ow-iw)/2:(oh-ih)/2,setsar=1 scale=720:576:force_original_aspect_ratio=decrease,pad=720:576:(ow-iw)/2:(oh-ih)/2,setsar=1 concat=n=2:v=1:a=1" -map "" -map "" out.mp4įfmpeg version N-94862-g944d76a3e0 Copyright (c) 2000-2019 the FFmpeg developersĬonfiguration: -enable-gpl -enable-version3 -enable-sdl2 -enable-fontconfig -enable-gnutls -enable-iconv -enable-libass -enable-libdav1d -enable-libbluray -enable-libfreetype -enable-libmp3lame -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-libopus -enable-libshine -enable-libsnappy -enable-libsoxr -enable-libtheora -enable-libtwolame -enable-libvpx -enable-libwavpack -enable-libwebp -enable-libx264 -enable-libx265 -enable-libxml2 -enable-libzimg -enable-lzma -enable-zlib -enable-gmp -enable-libvidstab -enable-libvorbis -enable-libvo-amrwbenc -enable-libmysofa -enable-libspeex -enable-libxvid -enable-libaom -enable-libmfx -enable-ffnvcodec -enable-cuvid -enable-d3d11va -enable-nvenc -enable-nvdec -enable-dxva2 -enable-avisynth -enable-libopenmpt -enable-amf The param name 'unsafe' implies that maybe I should trust it only under certain conditions.

So, how can I concatenate different videos while maintaining the original quality and aspect ratio?īonus: Is something wrong with using unsafe=1?. The only issue is that some videos stretch. I'm using unsafe=1 which works almost perfect. I've tried the following FFmpeg command: ffmpeg -i 1.mp4 -i 2.mp4 -y -filter_complex " concat=unsafe=1:n=2:v=1:a=1 " -map "" -map "" out.mp4 Is it possible to concatenate many videos with different aspect ratio? So in the end every video segment maintains the original aspect ratio.
