Repository navigation
|
Great library, I'm beginning to use on personal project where I extract cropped snippets from various files and then concatenate them in a final video. I can get the snippets generated and add them to a text input file, but having problems getting a concatenation done via Jaffree. The command line looks like: ffmpeg -f concat -i concat_files.txt -c copy concatenated.mp4 Thanks, |
Replies: 2 comments 4 replies
|
Could you clarify what problems you have with Jaffree? Does the command which you provided work from command line? |
|
This works: FFmpeg.atPath() |
This works:
FFmpeg.atPath()
.addInput(
UrlInput.fromUrl(concatFile.getAbsolutePath())
.addArguments("-f", "concat")
.addArguments("-safe", "0")
)
.addArguments("-c", "copy")
.setOverwriteOutput(true)
.addOutput(UrlOutput.toUrl(new File(dir, "concatenated.mp4").getAbsolutePath()))
.execute();