PDA

View Full Version : Vegas and YV12


Skelsgard
7th January 2007, 12:18
Can Vegas handle YV12 colorspace or does it do RGB24 conversion on all sources by default?
Cause I´m frameserving from Avisynth. My output is YV12 from a YUY2 source, then I need to load it to Vegas for final add of some logos (it has a great chroma keyer, as I haven´t been able to find for avisynth), and then output for x264 encoding in megui.
If it can´t, I´ll have 4 conversions: YUY2 --> YV12 --> RGB24 --> YV12, wich I want to avoid.

Cheers.

communist
7th January 2007, 21:20
It probably converts to RGB if you apply filters on top of it. Also if you need to put a logo on it - it may be a better idea to use a png/tga with an alpha channel rather than to chroma key away blank parts - its way cleaner that way ;) + you can have varying transparency levels rather than one fixed value.

Blue_MiSfit
7th January 2007, 23:33
Right. If you do need to get it into vegas maybe you can at least keep it in YUY2 in AviSynth, then it's just YUY2->RGB24->YV12

Skelsgard
8th January 2007, 05:44
@Blue_MiSfit

That would be ideal if only...
I wish I could but I´m using SeeSaw in my script and as it requires YV12 input, I´m pretty much screwed :(

@communist

I´ve been trying to do alpha channel composition but I can´t get it to work. I´ve tried with PSD, PNG and TGA (one layer: background) with alpha channel and "Composition mode: Source Alpha" in Vegas and nothing. I´m sure there´s some specially-for-dumbasses right-in-my-face option that I´m not seeing until someone points it out for me.
Here´s the PSD I´ve tried, can you tell me if there´s something wrong with it cause I´m rapidly running out of ideas.
http://www.badongo.com/file/1980348
The only way it works is as PNG with an independent layer without background. But it´s worst than just chroma keying with the right background color.

Thanks in advance
Cheers

communist
8th January 2007, 08:09
"without background" thats the trick of alpha layers ;)

I've taken the liberty to fix your file by removing the background and making it transparent. I've also added some circles and gradients to show what you can do with alpha opposed to chroma keying. The psd probably requires CS2 - I also uploaded a png version.
psd (http://www.stud.uni-goettingen.de/~s304280/D9/test_560_alpha-ed.psd)
png (http://www.stud.uni-goettingen.de/~s304280/D9/test_560_alpha-ed.png)

Skelsgard
8th January 2007, 10:29
Thanks, man, I´m getting the hang of it, although I hate Photoshop (I´m a Photopaint man) but when you got no other choice... :D :D

Cheers.

Zarxrax
8th January 2007, 14:42
This may all be irrelevant if you can get it working to apply the logo in avisynth, but here are some suggestions.

To avoid one conversion, you might consider using the seesaw thing after you export from vegas rather than before. Depending on what sort of effects or graphics you add in vegas, or if you are combining with other types of video, this may not be viable though.

To test if Vegas is doing colorspace conversions (I am almost sure it does), you can export some files straight out of avisynth in different colorspaces, then load each of those into vegas and export one at a time. Afterwards, use avisynth's compare() or subtract() functions to check if the video output by vegas was identical to the input. If they are different, then vegas did a conversion.