Xfennec / progress

Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFmpeg support

forthrin opened this issue · comments

Wow! What a smart, little tool. I'm truly impressed with the angle, though I guess it's just about checking processes and their corresponding file handles and seek positions. Having said that:

Could FFmpeg be supported? A popular tool which often takes a long time to finish because of heavy work, and strangely has no human friendly progress/ETA indication built into it.

Thanks for your message. FFmpeg is probably already "supported", even if it's not in the default list. See -c and -p flags.

Right you are! Very nice! However, a quick attempt on encoding a 50 minute H.265 file gave an estimate of three hours, whereas the actual time was around one hour.

Is it possible to improve this estimate for FFmpeg, or are the applied techniques so generic / deprived of necessary information that this is as good as it gets?

PS! I assume you use the straight forward way to calculate ETA, by checking how long one has spent processing X percent of the file, and then calculate the time to complete 100-X percent.

PPS! FFmpeg has a -t option to process only part of the file. Your tool doesn't seem to take this into consideration, though this is obviously an edge case and a tall order. I don't even know if one C program can feasably access internal information like this inside another C program.

progress aims to be a generic tool, it's not supposed to have code path specific to one command or another. Maybe in a v2? ;)