ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

how to catch ffmpeg error?

Open weituotian opened this issue 7 years ago • 1 comments

can i get the error from ffmpeg?

weituotian avatar Nov 03 '17 13:11 weituotian

FFcomon (abstract class which is extended by FFmpeg) throws an IOException through the throwOnError(Process p) method. You should be able to view the stackTrace or catch the IOException it throws and do what you like.

The throwOnError is called from run, which is called when you call createJob on your FFmpegExecutor: [executor.createJob(anFFmpegBuilder).run();]

lemme know if that answers your question.

Omar-Riaz avatar Nov 16 '17 14:11 Omar-Riaz