|
|
| diehardii |
| Posted: Apr 29 2005, 03:14 AM |
 |
|
Unregistered

|
Hi guys,
I've been trying to figure out how to set the DivX/XviD encoders properties programatically, and I'm striking out. Any ideas or code anyone could point me to in VirtualDub? I'd be more than happy with a file name . Sorry about the laziness, but VDub is a lot of code to wade through.
~Steve |
 |
| phaeron |
| Posted: Apr 29 2005, 03:19 AM |
 |
|

Virtualdub Developer
  
Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02

|
ICGetState()/ICSetState() to save and restore the state. Actually changing the parameters themselves will require a bit of work on your part to determine the fields in the structure, as they're codec-specific and VirtualDub doesn't attempt to do so (it only saves and loads the block opaquely). |
 |
| diehardii |
| Posted: Apr 29 2005, 07:15 PM |
 |
|
Unregistered

|
Thanks for the help phaeron,
Just out of curiousity, I would assume that this would change every time a new version of the codec comes out. Is this true?
~Steve |
 |
| phaeron |
| Posted: Apr 30 2005, 03:27 AM |
 |
|

Virtualdub Developer
  
Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02

|
Yup. The structure of the memory block is completely up to the codec vendor, so they can either keep backwards compatibility or break it at will. |
 |