PDA

View Full Version : ConvertYV12() at the end of each script


fjhdavid
29th January 2009, 12:17
Dear Jdobbs,

I saw that, if I choose HC encoder, you add a "convertYV12()" at the end of each script.

if I end my script with a "convertYV12(Rec.709)" for example which is not the defalult "convertYV12()" parameters, does your addition at the end of the script will cancel my rec.709 choice?

thanks

steptoe
29th January 2009, 13:51
If you have convertYV12(Rec.709) as the first line in your script, it will follow after convertYV12() which is the default so would be doing the conversion twice as the filter chain would see this

convertYV12()
convertYV12(Rec.709)

Use the following instead, it does exactly the same job, but automatically takes into account what type of video source you have and can also be assigned more threads if you have a multi-core CPU. I have a quad core I use 4 threads

LoadPlugin("E:\Video\AviSynth\Plugins\colormatrix.dll")
c:i:ColorMatrix(mode="Rec.601->Rec.709",threads=4,interlaced=true)
c:p:ColorMatrix(mode="Rec.601->Rec.709",threads=4)

Replace the default plugin location with yours or you WILL get an error as it can't find the filter

I manually tell avisynth to load any filters or functions as avisynth can't be trusted to guarantee it will autoload them, so I tell it to load each filter or functions. This way I know it has been loaded for the filter to work correctly, thats what the LoadPlugin() is there for



http://web.missouri.edu/~kes25c/ColorMatrixv25.zip

This one has been optimised so may run upto twice as fast as the previous link I gave you. Does exactly the same job, the filter has just been overhauled and optimised

http://jourdan.madism.org/~manao/ColorMatrix.zip

fjhdavid
29th January 2009, 22:55
I mean when you are looking to the D2VAVS folder (after a rebuild), you will find files named: V01000000001001, V01000000002001....which are avisynth script files.

And at the end of each script you find:

Load plugin(....)
....
ConvertToYV12(matrix="Rec709") (this is my example)
....
....
trim(x,y)
ConvertToYV12()


so I thought that the last ConvertToYV12() (added automatically by dvd-RB) will override ConvertToYV12(matrix=rec709") which is written before in the script.
Am I wrong?