I also plan to convert the script to python, if possible, to make it cross platform and give it a GUI. It is based on the remaining number of frames to process and the current fps that ffmpeg is working at. I have now added an ETA function, which, as far as I can tell, should be pretty accurate, I’ll be testing it tomorrow to see how well it works. To use the script, call the script with the full path of the file to be converted afterwards, e.g.: “./ffmpeg-progress.sh /home/prupert/FIVE.mpg” and it gives you something like this: mpg DVB-T recordings from MythTV to mkv files. You have to put in your own ffmpeg command if you want, mine is just for converting. It does this, by looking at the number of frames your input video file has, and then reading what frame ffmpeg is currently on every ten seconds, and printing out the percentage. It currently only tells you how far the conversion has progressed as a percentage, but I will soon add an ETA and time to it as well (now added, see update below). This script should be a very accurate indicator of the progress of a ffmpeg video conversion. Annoyingly, for what ever reason, ffmpeg doesn’t use Carriage Returns and Line Feeds in the expected way when it outputs its output during a conversion, resulting in two days of stress for a noobie bashophile like me.Įventually, after hours of googling, I came across the solution. This was much much much harder than I ever anticipated. I decided to write a progress indicator for ffmpeg video conversions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |