These are chat archives for WritingMinds/ffmpeg-android-java

20th
Aug 2015
Thanh Chinh Ban
@thanhbc
Aug 20 2015 10:20
hi @hiteshsondhi88 I'm using your lib to write a simple demo that join 2 video file into one but i'm got error with the output video "No such file or directory". My command is:
-f concat -i /storage/emulated/0/file_list.txt -c copy /storage/emulated/0/output.mp4
Hitesh Sondhi
@hiteshsondhi88
Aug 20 2015 10:21
Hi @thanhbc first thing is above question is more related to FFmpeg then to the library
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
You need to use above set of commands to combine mp4
Please check this link - https://trac.ffmpeg.org/wiki/Concatenate
Thanh Chinh Ban
@thanhbc
Aug 20 2015 10:45

@hiteshsondhi88 "concat:intermediate1.ts|intermediate2.ts": No such file or directory error, but this command is work good now

-f concat -i /storage/emulated/0/file_list.txt -c copy /storage/emulated/0/output.mp4

i'm missing "file '/path/to/file1'" word is file_list.txt :D. tks you

Hitesh Sondhi
@hiteshsondhi88
Aug 20 2015 10:46
good good :-)