PDA

View Full Version : Please allow YV12 registration in future XviD 1.0 installers!


LigH
27th January 2004, 23:54
Dear XviD developers,

once upon a time (up to June 2003), some XviD codec installers (at least those from Koepi) registered for the FourCCs 'xvid' as well as 'yv12'. XviD dev-4-api or 1.0 RC1 do no longer register for 'yv12'; furthermore, they seem to unregister a previous XviD codec version (probably due to calling its uninstaller).

I always thought that VirtualDubMod was able to read YV12 video natively (e.g. I want to use AviSynth 2.5x and encode to XviD using "Fast recompress" mode). Now that XviD 1.0 does no longer register the 'yv12' FourCC, no codec is registered for this FourCC now - and suddenly, VirtualDubMod brings the usual error message "source image format not acceptable (-2)". Obviously, "native YV12 support" was a totally wrong assumption, VirtualDubMod still needs the help of a registered codec (or a color space conversion in the AviSynth script).

Therefore, I have a whish for the next XviD installers: Please include a checkbox which allows me to register the XviD codec to handle 'yv12' video if I want.

Or tell me why I unfortunately thought that VirtualDubMod would support YV12 natively... ;)

celtic_druid
28th January 2004, 02:08
You could also just install the Helix YV12 codec.

RadicalEd
28th January 2004, 02:47
ffvfw will do, as well.

sysKin
28th January 2004, 02:48
Huh, it doesn't register YU12?

I remember I changed the order in which colourspcaes are recommended (YUY2 first [edit: a typo. thanks LigH] ) but didn't remove anything like that. I'll fix it, then...

Checkboxes are not a bad idea, I'd like to add DX50 support as well.

Radek

Mug Funky
28th January 2004, 08:07
actually, the reg key for YV12 didn't change for me...

however seeing as the dll files have different names now, the regkey for YV12 saying "xvid.dll" was useless.

change it to "xvidvfw.dll" and all is well

LigH
28th January 2004, 08:28
Yeah - just found out the same as 'Mug Funky': The changed file naming is the reason that it didn't work any more...

But I still wonder why I thought that VDMod would be able to read YV12!
__

@ sysKin:

Please, be careful when discussing FourCCs, misspelled ones don't make any sense! YUY2 is packed 4:2:2, YV12 is planar 4:2:0.

tiki4
28th January 2004, 10:37
Originally posted by LigH

But I still wonder why I thought that VDMod would be able to read YV12!



VirtualDubMod handles YV12 in fast recompress mode, but for displaying the preview window when you open a file in this colour space it needs an registered YV12 decoder.

tiki4

LigH
28th January 2004, 20:26
Ah - that's a point I can follow; so I shall better save VDubMod's options with disabled input preview.

Thank you, I'll try that!

LigH
28th January 2004, 21:40
I think I got it!

I have to disable the option "Use DirectX for display panes". Then VirtualDubMod is able to both encode YV12 input in Fast Recompress mode, and also display the input while dubbing (okay - as if I would need it...).

mikeX
28th January 2004, 22:01
I installed rc1 on two PCs:

on the first one i had the same problem LigH originally mentioned (prior xvid version installed was xvid beta 3) (i had display input video unchecked)
checking out my registry i too noticed the entry for vidc.yv12 was xvid.dll
replacing it with xvidvfw.dll fixed the problem

when i installed rc1 on the second pc (prior xvid version there was xvid beta 1 i think) the problem did not occur.
checking the registry i found out i had not vidc.yv12 string!
now i found that weird!

so i deleted the string on the first pc as well but i still get playback...

checking out what dll was used for playback (through bsplayer) i found out it was 'quartz.dll' (avi decompressor(YV12)): anyone knows where that came from (i have installed and uninstalled k-lite codec pack in both PCs, is it leftover from that?)

the thing is that no matter what value i set vidc.yv12 to, that same decompressor gets used (however virtualdubmod can certainly see the entry i set cause i get the extra xvid codec with yv12 fourcc in the 'compression' menu)

anyone knows what's going on?
how come i got that error message LigH got, stopped getting it after i modified vidc.yv12 to xvidvfw.dll but won't get it anymore if i delete the vidc.yv12 string completely??

note: i'm reffering to HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/Current Version/Drivers32 key

LigH
28th January 2004, 22:15
The quartz.dll is the default handler for uncompressed video formats, roughly said - installed during the first hour of Windows on your harddisk.
__

Which graphic cards do you have on these two computers?

I have an ELSA Gladiac GeForce2 GTS - and I guess that it is not able to display YV12 directly.

And please look at the VDubMod option about using DirectX panes, too!

mikeX
29th January 2004, 04:49
i made a few tests but the results are mostly contradicting :(

i managed to simulate the problem with vdubmod again by uninstalling xvid. switching off the DirectX Panes in vdubmod 1.5.10.1 didn't help at all (i didn't find a similar option in 1.5.4.1)

(i also was unable to play any raw yv12 files (unless configuring ffdshow to do so))

then i experimented with deleting the vidc.yv12 string and installing/uninstalling xvid:

at first vdubmod still couldn't proccess yv12 content unless i created a vidc.yv12 string with a value of 'xvidvfw.dll'

but after that first time the problem was gone! i didn't have to create a vidc.yv12 string anymore... the moment i installed xvid vdubmod was able to proccess yv12...

all the tests were made without restarting, maybe if i uninstall and restart the problem will come up again...
anyway i see that the registry value for vidc.yv12 doesn't play such a big role..., can't see why though...???...(that also explains why i could still play yv12 before [regarding my previous post], bsplayer can't play any yv12 if i uninstall xvid (with ffshow disabled)...)