PDA

View Full Version : I found a way to compute SetCompData string of XviD.


qyb
5th September 2006, 07:30
http://qyb.blogspot.com/2006/09/computing-virtualdubvdubmod.html

I started a simple program written by Python/wxPython to compress my DV clips few months ago. It run like AutoGK that generate .vcf file and call VDubMod. Now it works under 1.0.3/1.1.0-beta2/1.1.0/1.2.0-dev .. xvid version.

My mother tongue is chinese and the document with program is chinese. But I start a english blog recently. (http://qyb.blogspot.com/). Is anyone have interest in it? I need help for XviD's exact setting. My email is 'qiuyingbo at gmail dot com'.

qyb
6th September 2006, 03:48
Now I call xvid_global() from xvidcore.dll and get XviD's version, such as major_version=1, minor_version=2, patch_version=129, build_info = xvid-1.2.0-dev. I also call DriverProc() from xvidvfw.dll and get the structure's size that is 3532 , and get the whole default config data .

Then I adjust bitrate or desired_size ( depend on use_2pass_bitrate setting ) to run 2-pass compression. But the targetsize/bitrate is not my expectation. Why? Do I need modify more arguments in the CONFIG structure? How to do it?

Kaur
27th September 2006, 11:50
I would just like to say that you can compute the string very easily by just riping the code out of vdubs source.

qyb
29th September 2006, 21:06
Right.

But the my language is python. I think reuse my code is more simple then c/c++.

BTW: my DV-2-XviD (http://www.dup2.org/en/dv2xvid/) 0.7 have been released.