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

How to concat two videos.

Open prateekjain2104 opened this issue 8 years ago • 6 comments

-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.

prateekjain2104 avatar Aug 31 '16 05:08 prateekjain2104

+1 for remote link video.

MythodeaLoL avatar Aug 31 '16 14:08 MythodeaLoL

@FloridaStream hey you have any idea?

prateekjain2104 avatar Sep 02 '16 15:09 prateekjain2104

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

prateekjain2104 avatar Sep 02 '16 15:09 prateekjain2104

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

MythodeaLoL avatar Sep 02 '16 20:09 MythodeaLoL

@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 avatar Jan 25 '18 18:01 sagartrehan

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

sagartrehan avatar Jan 25 '18 19:01 sagartrehan