Log in

View Full Version : How to return current video output?


morphinapg
1st December 2008, 23:44
Lets say I have a script with all the processing I wanted to do to it, but not using a variable.

I'm trying to set it up to only convert to YV12 if needed, like this:

IsYV12 ? (current output) : ConverttoYV12()

what would I put for current output if I don't already have anything set to a variable?

IanB
1st December 2008, 23:57
IsYV12 ? Last : ConverttoYV12()However ConvertToYV12() is a nop if the input is already YV12, so...
ConvertToYV12()will do what you want.

morphinapg
2nd December 2008, 00:01
Oh, ok, someone suggested I only converttoyv12 if needed in ASXGui, so I was looking to do this. I guess I don't need to then?

IanB
2nd December 2008, 09:15
I am guessing the real warning was in not changing colour space unnecessarily. Perhaps a little more research on the attributes of each colour space might help clarify things. :search:

morphinapg
2nd December 2008, 09:28
Well all my scripts need to output in YV12 because I'm pretty sure x264 requires it, but some other filters I use also require it.