Log in

View Full Version : Dual Pass - help on how to


mandm
6th November 2002, 00:37
Hi all,
I was trying to add a complete dual pass support (DivX, xVid, RealMagic) to the M&M program (DVD2AVI evolution) but I've been stuck in some points.

1) there is a way (after I've called the ICCompressorChose) to understand if the selected plugin is the first step of a dual pass ?
1a) for video
1b) for audio

2) which is the correct sequence i have to do to create an avi with a dual pass ?
for single pass is:

ICCompressorChoose
AVIFileOpen
AVIFileCreateStream
AVIMakeCompressedStream
AVIStreamSetFormat
AVIStreamWrite
AVIStreamClose
ICSeqCompressFrameEnd
ICCompressorFree

2a) how do I start the second pass ?
2b) with which filename ?

3) I have to process again the whole file ? this means I have to provide again all the frames to the compressor to encode it?

4) which structures i have to keep in memory to reinit the compresso for second pass ?

Thanks in advance,
M&M

[Toff]
6th November 2002, 00:48
You should look to this thread "Command Line Compressor"
http://forum.doom9.org/showthread.php?s=&threadid=36768
Source are included.

mandm
6th November 2002, 01:05
Toff,
thanks for the link, I'll study them...
(it works only on video or on audio too ??)


from a first view they can help me on 2-3-4
while I still do not know how to work on question 1
(you have the -2 parameter, you do not get it from the compressor properties)

another doubt I have is:
is it possible to have sigle pass for audio and dual pass for video?
or vice versa ?

how do you handle it?


M&M