ffmpeg4j icon indicating copy to clipboard operation
ffmpeg4j copied to clipboard

Retrieval of total position/progress ratio in transcoder

Open das-kaesebrot opened this issue 10 months ago • 0 comments

Hi! Thank you for this library, it provides almost all of the features I'm looking for!

As I've noticed, it would be helpful to be able to retrieve the total position across all source streams to be able to calculate a transcoding progress ratio. Or, even better, a way to retrieve the current progress from the transcoder either via passing a callback method or a getter.

I've tried my luck at implementing a simple getter method for the position. During testing I divided it by the sum of all packet durations to get a total progress ratio, which seemed to work out fine.

Unfortunately, I am not as familiar with the whole library (or JavaCV) yet - would it somehow be possible to retrieve the total duration of all streams before handling the packets inside the transcoder class?

das-kaesebrot avatar Aug 26 '23 23:08 das-kaesebrot