-
Notifications
You must be signed in to change notification settings - Fork 0
Description
FFmpeg outputs the amount of seconds processed.
We also know the amount of total seconds.
We assume amount processing speed for a single conversion is constant. (though this could cause significant an error).
Each file should have a calculated field called "Work"
It's the estimated amount of processing needed to complete.
The significant factors (that we can know before processing) could be:
- input audio decoder
- input video decoder
- hardware decoders are present or is done by cpu
- output video encoder
- output video encoder
- hardware encoders are present or is done by cpu
- input width
- input height
- output width
- output height
- duration
- frames/sec
Need some kind of system to collect all these variables and estimate the amount of work.
We can probably just learn as we go from the computer, which make "hardware support" constant.
Also probably these variables are not completely independent.
A formula could be:
work = output_decoder * input_decoder * width * height * (frames/sec * duration)
where input_decoder and output_decoder are some number.