cropsly / ffmpeg-android

FFmpeg for Android compiled with x264, libass, fontconfig, freetype, fribidi and lame (Supports Android 4.1+)
http://writingminds.github.io/ffmpeg-android/
Other
1.63k stars 415 forks source link

How to concat two videos. #44

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.

MythodeaLoL commented 8 years ago

+1 for remote link video.

prateekjain2104 commented 8 years ago

@FloridaStream hey you have any idea?

prateekjain2104 commented 8 years ago

@hiteshsondhi88 Can you please help?Does concat actually work or not with this lib.?

MythodeaLoL commented 8 years ago

In newer versions this was disabled in ffmpeg, you need to use the command -safe 0 to allow the use of concat.

Be aware that for a better understanding, the logs, debug log of the operation are necessary. @prateekjain2104

sagartrehan commented 6 years ago

@FloridaStream Can you please elaborate your answer? Do we need to use "-safe 0" while executing command to concat files? OR Do we need to use "-safe 0" while compiling FFMPEG for Android?

sagartrehan commented 6 years ago

@FloridaStream -safe 0 argument in command while concat fix the issue. Thanks for your inputs. This issue should be closed now.