Log in

View Full Version : 2nd pass encode with rv10


starwarsandrisk
4th May 2004, 01:25
i've finished the first pass of an rv10 enocode... i've got the .pass file.... problem is... my second pass got killed.... how can i just go back over the second pass with the .pass file?....

sirber

i'm still using the modified realanime 1.91.... if you have a way to change the job.dat file real quick for me.... that would be even nicer....

Sirber
4th May 2004, 01:37
I cannot search for you. Sorry, I don't have much time to support old RealAnime. Please read in the RC thread.

"Thruth is somewhere else" :D

starwarsandrisk
4th May 2004, 01:47
thanks anyways... which one is the rate control thread?... i guess i just need to know how to make a jobfile... any just easy way to make one and the different types of xml calls?... also... it there a jobfile creator or editor?

Sirber
4th May 2004, 01:53
Get a look at the "Realvideo 9 Information" sticky. All you need is there.

karl_lillevold
4th May 2004, 01:58
It is a little tricky to run the 2nd pass separately unless you are familiar with the producer command line. Since the 1st pass is always very fast (about 4X the speed of the 2nd pass), in many cases I would just recommend re-running both passes.

Of course, if you want to learn something new, check the RealVideo 10 Elysian (http://forum.doom9.org/showthread.php?s=&threadid=71022) thread.

The simplest way to re-run the 2nd pass is to take the code below, save it to a file (for instance c:\pass2.rpad), edit it with the bitrate you want, audio codec name and flavor (it is currently HE-AAC at 64 kbps), you can of course edit and add other parameters, then run producer like this:


producer -i inputfile.avs -ad c:\pass2.rpad -o outputfile.rmvb -lc e,d -dt


EDIT: forgot -dt switch to make sure producer runs just one pass (-dt is needed when running 1st or 2nd pass separately)

pass2.rpad:

<?xml version="1.0"?>
<audience>
<avgBitrate type="uint">500000</avgBitrate>
<maxBitrate type="uint">4000000</maxBitrate>
<streams>
<videoStream>
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<codecName type="string">rv10</codecName>
<codecProperties type="bag">

<rcEnableCurveCompression type="bool">true</rcEnableCurveCompression>
<rcAnalysisFileName type="string">c:\realvideo.pass</rcAnalysisFileName>
<rcLogFileName type="string">c:\realvideo.log</rcLogFileName>


<rcKeyFrameBoost type="uint">0</rcKeyFrameBoost>
<rcHighBitrateReduce type="uint">0</rcHighBitrateReduce>
<rcLowBitrateBoost type="uint">0</rcLowBitrateBoost>

<rcPassNumber type="uint">2</rcPassNumber>

<!-- Inloop filter options -->
<inloopCutOffQuant type="uint">10</inloopCutOffQuant>
<inloopCutOffCompatible type="bool">false</inloopCutOffCompatible>
<inloopCutOffBUseRefQuant type="bool">true</inloopCutOffBUseRefQuant>

</codecProperties>
<encodingType type="string">vbrBitrate</encodingType>
<maxFrameRate type="double">30</maxFrameRate>
<maxKeyFrameInterval type="double">10</maxKeyFrameInterval>
<enableLossProtection type="bool">false</enableLossProtection>
</videoStream>
<audioStream>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<codecName type="string">racp</codecName>
<codecFlavor type="uint">1</codecFlavor>
<streamContext type="bag">
<presentationType type="string">audio-video</presentationType>
<audioMode type="string">music</audioMode>
</streamContext>
</audioStream>
</streams>
</audience>

starwarsandrisk
4th May 2004, 02:32
i use besweet to get ogg audio and put the rmvb and ogg in a matroska... can i just cut out the audio part of that code and save some cpu usage... yeah and thanks!.... that helps alot... i'm finally learning how to use all of these cool encoder properties... this is kinda cool to learn... i can just make a bunch of job files now for all of the different jobs for first pass and second pass....

karl.... do you work in the building next to the spghetti factory?

starwarsandrisk
4th May 2004, 08:57
<audience>
<avgBitrate type="uint">450000</avgBitrate>
<maxBitrate type="uint">2250000</maxBitrate>
<streams>
<videoStream>
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<codecName type="string">rv10</codecName>
<codecProperties type="bag">
<customPacketSize type="uint">16000</customPacketSize>
<rcEnableCurveCompression type="bool">true</rcEnableCurveCompression>
<rcAnalysisFileName type="string">C:\witch hunter robin\witch_hunter.pass</rcAnalysisFileName>
<rcLogFileName type="string">c:\realvideo.log</rcLogFileName>
<rcLowBitrateBoost type="uint">10</rcLowBitrateBoost>
<rcSourceFrameRate type="uint">23976</rcSourceFrameRate>
<rcPassNumber type="uint">2</rcPassNumber>
</codecProperties>
<encodingType type="string">vbrBitrate</encodingType>
<maxFrameRate type="double">30</maxFrameRate>
<maxKeyFrameInterval type="double">10</maxKeyFrameInterval>
<enableLossProtection type="bool">false</enableLossProtection>
</videoStream>
<audioStream>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<codecName type="string">racp</codecName>
<codecFlavor type="uint">1</codecFlavor>
<streamContext type="bag">
<presentationType type="string">audio-video</presentationType>
<audioMode type="string">music</audioMode>
</streamContext>
</audioStream>
</streams>
</audience>


okay... thats my audience file.... how come when i do exactly as you say.... it starts out in analysation mode

starwarsandrisk
4th May 2004, 09:22
this thread is just really a note session to myself.... lol.... you have to use the trigger -dt in the command line to make it not 2 pass....

karl_lillevold
4th May 2004, 17:19
starwarsandrisk: I forgot the -dt switch :( Thanks for adding that. -dt is necessary when running separate passes, since Producer does not know about the codec rcPassNumber options, and will try to run 2 passes unless -dt is specified.

starwarsandrisk
4th May 2004, 22:26
thanks man... you really helped..... i do this because i can only encode on my comp when noone else wants to use it.... and i only got a 1.02 ghz celeron processor... so to encode at night time i can usually only get a first pass and about half of a second of an anime.......

Sirber
5th May 2004, 03:02
In IDLE mode, people can use it while you encode :)

starwarsandrisk
5th May 2004, 07:13
lol... "if you're not on the computer, i don't want your stuff running".... i need to get a paypal button to get donations for my own computer... lol....