[FFmpeg-user] Concatenate diffetents video size in one output.mp4
Marcelo Laia
marcelolaia at gmail.com
Fri Sep 8 21:46:33 EEST 2017
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
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
MP4Box -cat video_640.mp4 -cat VID-20170820-WA0233_edit_B.mp4 -new output.mp4
But, I don't got a joined videos.
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
More information about the ffmpeg-user
mailing list