ffmpeg-android-java icon indicating copy to clipboard operation
ffmpeg-android-java copied to clipboard

merge audio with video and volume customization

Open pawaom opened this issue 7 years ago • 1 comments

merge audio with video and volume customization

I am trying to merge audio and video using following command

String[] complexCommand = {"-i",STORE_DIRECTORY,"-i",yourRealPath,"-filter_complex","[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a1];[1:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.8[a2];[a1][a2]amerge,pan=stereo:c0<c0+c2:c1<c1+c3[out]","-map","1:v","-map","[out]","-c:v","copy","-c:a","-vcodec","-shortest",filePath};

but it gives me an error Unknown encoder '-vcodec'

How ever when I simply try to merge the audio and video without any change in volume it works fine

can you suggest a proper command to merge audio with video and volume customization

I am referring to this https://superuser.com/a/714991/724432

pawaom avatar Jun 15 '17 13:06 pawaom

Have you solved the problem?

YenRen avatar Sep 02 '17 03:09 YenRen