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
Feature: Add estimated file size #3
Comments
Better FFmpeg Progress no longer shows a progress string but rather a tqdm progress bar. I do not wish to clog up the progress bar with the estimated filesize. However, what you can do is send the estimated filesize as an additional argument to If you decide to implement this, please submit a pull request rather than opening an issue as the former is more appropriate. A few things to note:
|
I followed some 90 step guide on how to do a pull request and seen a mention of my edit on https://github.com/CrypticSignal/better-ffmpeg-progress/pulls but when I checked again it was gone. No email or mention here. If there was a problem with it, I'm sure you can do the change yourself. jmraker@ab3e53a |
I've been testing the file size estimator and I'm not sure if I want to implement it. It only provides a good estimate when the process has essentially finished. Here is the output when transcoding a one-minute-long video to H.264 using libx264 at the default preset of medium. The data is in the format
Even when the conversion was 93% complete, it was about 7 MB off the final filesize which is more than 25% off the mark. |
Why regards to being unable to submit a pull request, it takes a few clicks so I'm surprised a 90-step guide exists. In case you're wondering, I did not see any pull requests so I certainly haven't discarded a pull request from you. Don't worry about trying to submit a pull request as I correctly implemented the output filesize estimator myself for testing purposes, but I have refrained from pushing the code to GitHub because as shown in my previous comment, the accuracy is not good enough for my liking until the process is 99% complete. With that being said, I might add the estimator with a disclaimer that the estimate is not very accurate and should be taken with a grain of salt. |
I've only used it when encoding several 40 minute tv show episodes (h265 to h264). It starts off not too accurate but at around 2% it's accuracy improves enough to closely predict the final size. It does fluctuate up and down a few megs to the end because of the variable bit rate. |
I was able to add an estimated file size that seems to estimate okay after a few progress updates. It checks for changes because ffmpeg sporadically writes to disk and it's probably the most accurate when it writes.
The text was updated successfully, but these errors were encountered: