Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Set Divx/xvid Parameters Programatically
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
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 smile.gif. Sorry about the laziness, but VDub is a lot of code to wade through.

~Steve
 
  Top
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).
 
    Top
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
 
  Top
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.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Apr 29 2005, 03:14 AM Track this topic | Email this topic | Print this topic

<< Back to Off-Topic