On 09/09/17 at 09:29, Paul B Mahol wrote: > On 9/8/17, Marcelo Laia <[email protected]> wrote: > > On 08/09/17 at 08:49, Paul B Mahol wrote: > >> On 9/8/17, Marcelo Laia <[email protected]> wrote: > > Try this: > > $ ffmpeg -i Parte_A1.mp4 -i Parte_B1.mp4 -filter_complex > "[0:v]scale=640:352:force_original_aspect_ratio=decrease,pad=640:352:(ow-iw)/2:(oh-ih)/2[v0]; > [1:v]setsar=1/1[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map > "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart output.mp4
I got this error message: [AVFilterGraph @ 0x561b93f482a0] No output pad can be associated to link label '1:v'. Error initializing complex filters. Invalid argument I tried another approach and it worked: ffmpeg -i Parte_A1.mp4 -i Parte_B1.mp4 -filter_complex "[0:v]scale=640:352, setsar=1/1, setpts=PTS-STARTPTS[v0]; [1:v]scale=640:352, setsar=1/1, setpts=PTS-STARTPTS[v1]; [v0][0:a] [v1][1:a] concat=n=2:v=1:a=1[v][a]" -map "[v]" -vcodec libx264 -b:v 512k -pix_fmt yuv420p -map "[a]" -acodec aac -b:a 128k -ar 44100 -movflags faststart -y "result.mp4" But, I would like to take the first approach to work too to see what is the difference between both. Thank you so much! -- Marcelo _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
