Processing Progress as Percent?

Where all the user feedback and suggestions for improvements go
Post Reply
NiteShdw
Posts: 11
Joined: Sun Oct 29, 2006 3:39 am

Processing Progress as Percent?

Post by NiteShdw »

When Comskip loads an MPEG file, is it able to detect the total number of frames in the file or does it need to decode the entire clip and count the frames?

If it's possible to detect the total number of frames at the beginning, would it be possible to add a Percent progress in the output?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

I realy would like to be able to do that.
However there are two methods to do that, each with their specific problem.

1: Look at the start and end PTS. When the PTS is contiguous that is the perfect method but some recordings have one or more PTS discontinueties
2: Use the file size and file position. Some recordings have large empty chunks at the start or the end of the recording. Will consider it if that is OK?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Build 113 writes progress including % of work done to stderr
This does not work when processing during recording
Post Reply