Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETA's are pretty inaccurate #19

Open
bjornua opened this issue Nov 8, 2016 · 1 comment
Open

ETA's are pretty inaccurate #19

bjornua opened this issue Nov 8, 2016 · 1 comment

Comments

@bjornua
Copy link
Owner

bjornua commented Nov 8, 2016

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.

@bjornua
Copy link
Owner Author

bjornua commented Nov 8, 2016

Alternatively just simplify the current system and at least make it a little more transparent what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant