canadian_fbi
9th April 2002, 05:26
a while ago, primitive posted some perl scripts that analyze debugview output of first and second passes, and write information about frame sizes and quants into a file readable by spreadsheet programs. for a detailed description of what these scripts do (and therefore the basic features of this new script), see this thread:
http://forum.doom9.org/showthread.php?s=&threadid=22005
well, i found the second script particularly useful for analyzing the second pass quants, and made some modifications to it. basically it has the following new features:
- input/output file can now be input from command-line
(format: second_pass_analyze.pl <input> <output>)
- calculates average quant value for all frames
- displays total number of i-frames and p-frames
- displays quant distribution of i-frames and p-frames
- calculates average quant value for i and p-frames
(hopefully this will be made obsolete soon by the addition of b-frames ;) )
if you don't want to input filenames at the command-line, entering no arguments will use the default values hardcoded as $infile and $outfile_second, in case you always have the same log file name and don't want to type it in every time. similarly, it will also work if you just input the input filename, by writing results to the default output name. don't try passing the output filename argument only though :)
download this new version of the second pass analyzer here: http://www.disconnect.net/second_pass_analyze.pl
i found it particularly useful when i got curious as to what quants i-frames were getting... turns out they were a lot higher than they should've been and i had to lower the max on them. any comments would be very welcome as this is the first perl script i've written (modified actually) since my internet programming class :|
p.s.: thanks to primitive for starting this script and making it freely available to modify and improve and whatnot.
http://forum.doom9.org/showthread.php?s=&threadid=22005
well, i found the second script particularly useful for analyzing the second pass quants, and made some modifications to it. basically it has the following new features:
- input/output file can now be input from command-line
(format: second_pass_analyze.pl <input> <output>)
- calculates average quant value for all frames
- displays total number of i-frames and p-frames
- displays quant distribution of i-frames and p-frames
- calculates average quant value for i and p-frames
(hopefully this will be made obsolete soon by the addition of b-frames ;) )
if you don't want to input filenames at the command-line, entering no arguments will use the default values hardcoded as $infile and $outfile_second, in case you always have the same log file name and don't want to type it in every time. similarly, it will also work if you just input the input filename, by writing results to the default output name. don't try passing the output filename argument only though :)
download this new version of the second pass analyzer here: http://www.disconnect.net/second_pass_analyze.pl
i found it particularly useful when i got curious as to what quants i-frames were getting... turns out they were a lot higher than they should've been and i had to lower the max on them. any comments would be very welcome as this is the first perl script i've written (modified actually) since my internet programming class :|
p.s.: thanks to primitive for starting this script and making it freely available to modify and improve and whatnot.