primitive
29th March 2002, 08:38
I decided I needed a tool to make sense of the xvid dbgv output I was seeing for the first pass stats. I wrote this perl script to help me.
What this script does is it first looks at the frame sizes of the quant:2 encode done in the first pass and finds the largest frame size of this quant:2 encode. Then it splits the range [0,$largest_frame] into $buckets regions and steps through an array containing all the frame sizes, incrementing the value in the appropriate region for that frame size. The output is a text file that you should be able to import into a spreadsheet program and make pretty pictures with.
If you want to use this script, here's how.
1) Open the script file and change the input file to the name of the file you saved your dbgv output to. This file should have in it the first-pass and the second-pass debug output from a single encoding session (i.e. one video file only).
2) I made this with the presumption you would be dumping it into a spreadsheet and making pretty graphs. Change $delimiter to the character your spreadsheet program uses to discriminate between multiple colums placed on a single row when importing a plain text file. AFAIK, Excel uses "," and OpenOffice uses "\t".
3) Change the value of $buckets. The smaller the value, the fuzzier the resolution of the output.
An analyzer for the second pass will be written tomorrow when I have time.
This is my first perl script ever. Hold me.
-p
*edit* Attach on this post failed, and I got bored so I finished my second perl script ever tonight as well. The .rar with them both is in the second post.
What this script does is it first looks at the frame sizes of the quant:2 encode done in the first pass and finds the largest frame size of this quant:2 encode. Then it splits the range [0,$largest_frame] into $buckets regions and steps through an array containing all the frame sizes, incrementing the value in the appropriate region for that frame size. The output is a text file that you should be able to import into a spreadsheet program and make pretty pictures with.
If you want to use this script, here's how.
1) Open the script file and change the input file to the name of the file you saved your dbgv output to. This file should have in it the first-pass and the second-pass debug output from a single encoding session (i.e. one video file only).
2) I made this with the presumption you would be dumping it into a spreadsheet and making pretty graphs. Change $delimiter to the character your spreadsheet program uses to discriminate between multiple colums placed on a single row when importing a plain text file. AFAIK, Excel uses "," and OpenOffice uses "\t".
3) Change the value of $buckets. The smaller the value, the fuzzier the resolution of the output.
An analyzer for the second pass will be written tomorrow when I have time.
This is my first perl script ever. Hold me.
-p
*edit* Attach on this post failed, and I got bored so I finished my second perl script ever tonight as well. The .rar with them both is in the second post.