Android : FFMPEG command issue for merging mp4 videos in android

on Monday, August 18, 2014


I am using following FFMPEG command for merging mp4 videos in android. But video is rotated 90 degree after merging.


I am stuck from two days .If any idea it would be highly appriciated.


Thanks in Advance !



complexCommand = new String[] {
"ffmpeg",
"-y",
"-i",
recordpath + "Vid1.mp4",
"-i",
recordpath + "Vid2.mp4",
"-strict",
"experimental",
"-filter_complex",
"[0:v]scale=w=640:h=480[v1]; [1:v]scale=w=640:h=480[v2]; [v1][0:a][v2][1:a] concat=n=2:v=1:a=1 [v] [a]",
"-map", "[v]", "-map", "[a]", "-b", "2097k", "-vcodec",
"mpeg4","-ab","64k","-ac","2","-ar","22050", recordpath + "Outputnew.mp4"};

0 comments:

Post a Comment