cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

How to concat two videos. #137

Open prateekjain2104 opened 8 years ago

prateekjain2104 commented 8 years ago

-y -i "concat:/storage/emulated/0/input1.ts|/storage/emulated/0/input2.ts" -c copy -bsf:a aac_adtstoasc /storage/emulated/0/output.mp4

I am using this command and it works for windows but doesn't work for android.

mayurkpd commented 8 years ago

remove " before concat, e.g. -y -i concat:/storage/emulated/0/input1.ts|/storage/emulated/0/input2.ts -c copy -bsf:a aac_adtstoasc /storage/emulated/0/output.mp4

prateekjain2104 commented 8 years ago

@mayurkpd i have tried this but still its same. :-(

prateekjain2104 commented 8 years ago

@hiteshsondhi88 Can you please help? concat work for this lib or not.

mayurkpd commented 8 years ago

@prateekjain2104 use string builder to build your command and at last just do mStringbuilder.split(" ") in the ffmpeg method where it takes String[]. ps. remember to put appropriate spaces while putting in commands i.e mStringbuilder.append(" -c") and its been used in production so i know it works.