On 9/8/17, Marcelo Laia <[email protected]> wrote: > Hi, > > I would like to concatenate two videos files. > > 1. 352 x 640 > 2. 640 x 352 > > All others parameters are the same. > > I doing a lot of search on google and I tried: > > ffmpeg -i VID-20170820-WA0233_edit_A_B.mp4 -i VID-20170820-WA0233_edit_B.mp4 > -filter_complex > "[0:v]scale=640:352:force_original_aspect_ratio=decrease,pad=640:352:(ow-iw)/2:(oh-ih)/2[v0]; > [v0][0:a][1:v][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
This one should work from quick look. > > ffmpeg -i VID-20170820-WA0233_edit_A_B.mp4 -i VID-20170820-WA0233_edit_B.mp4 > -filter_complex > '[0:v]pad=iw:ih*2:0:0[intv];[intv][1:v]overlay=(W-w)/2:H/2[vid]' -map [vid] > -c:v libx264 -crf 22 -preset veryfast output.mp4 This is not concatination. > > MP4Box -cat video_640.mp4 -cat VID-20170820-WA0233_edit_B.mp4 -new > output.mp4 > > But, I don't got a joined videos. What you get instead? > > Please, is it a way to join (concatenate) these two videos? The history: My > daughter started a recording with her cellphone in a vertical and after 30 > seconds she rotate de cell to horizontally. So, the video start in vertical > end > rotate to horizontal. I split it with avidemux and got they in horizontal > way > (I rotate on with avidemux). Both, ffmpeg and avidemux not doing the job > (concatenate). > > Thank you > > -- > 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". _______________________________________________ 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".
