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

ProgressListener on two-pass job

Open ghost opened this issue 8 years ago • 1 comments
trafficstars

Hello.

The example shows how to setup a progress listener for a one pass job. However, it seems it is not possible to do the same for a two pass job.

Any way this can be achieved? If not, any plans for a future implementation?

ghost avatar Mar 10 '17 20:03 ghost

Since you haven't gotten a reply. I was able to get around this using a pretty hacky solution.

So if you look at the TwoPassFFmpegJob class, it also has a constructor with a progress listener. But this parameter was nulled out in the exposed createTwoPassJob method in FFmpegExecutor. Add a method like this which also takes a progress listener.

public FFmpegJob createTwoPassJob(FFmpegBuilder builder, ProgressListener listener) {
    return new TwoPassFFmpegJob(ffmpeg, builder, listener);
  }

lekzeey avatar Jun 27 '17 01:06 lekzeey