Log in

View Full Version : Cannot locate codec or decompressor for YV12 using Avisynth2.5


TRILIGHT
29th January 2003, 04:28
Ok, I promise I looked ALL over for the answer to this and have not found one yet. I cannot load my AVS script in either CCE or Vdub. CCE says "Couldn't find appropriate video codec for YV12". That's, of course, if it accepts it at all instead of just crashing CCE. Then Vdub reports "Couldn't locate decompressor for format YV12 (unknown)" and the ride's over there too. The following is my script:


LoadPlugin("C:\WINDOWS\System32\mpeg2dec3.dll")
Mpeg2Source("VTS__01_P01_1.d2v")
ResampleAudio(44100)

I am using the mpeg2dec3.dll that was included with the 2.5 plugin's so I know I'm using the right one. I do not know why I am receiving this error. Can anyone point me in the right direction? Thanks!

The Edge
29th January 2003, 04:34
Not sure this will answer your question but if I were to open that kind of script, DivX5 would act as my YV12 decompressor.
At least that's what VirtualDub reports.

Edge

TRILIGHT
29th January 2003, 04:51
Interesting. So am I to assume that YV12 is a Divx codec? If so, why is it attempting to use this instead of the method normally used when I run CCE or Vdub? You'll have to excuse my ignorance concerning codecs and such. I will admit my area of expertise lies solely with what is involved with DVD-DVDR conversion. I only use Avisynth for the purpose of encoding in CCE (and ocassionally loading in vdub to check certain things).

The Edge
29th January 2003, 04:59
As far as I am aware, DivX5 will decode YV12 no problem.
So in this case, it would just feed CCE the script without affecting it.
It was explained somewhere on the forum before but I'm to tired to remember:)
Install the Gain free codec and keep us posted. I expect someone will have a better explaination.

Edge

MrBunny
29th January 2003, 05:20
On the same line as The Edge, I believe that the divx5 installer installs a YV12 VFW decoder so that vdub is able to actually preview the YV12 stream. YV12 is just a colorspace, and is not a divx codec. If you used something that didn't require a graphical preview (such as avs2avi) to encode, you wouldn't need to install divx5 at all and still be able to use YV12.

Mr. B

TRILIGHT
29th January 2003, 05:30
Thank you both for your replies! So should I be looking for the "Gain free" codec or the "Divx5 installer"? Would both do the same? I will install and see if it changes anything when I know which I should look for and install. Thanks again!

scmccarthy
29th January 2003, 05:35
Look at YV12 FAQ question 4, second paragragh. There is a link to koepi's build of xvid there, the alternative to divx5. But the totally free version of divx5 works as well as anything for this.

Stephen

TRILIGHT
29th January 2003, 05:50
Thanks for the tip, scmccarthy! I installed the one listed on #4 of that FAQ and still receive the same error about no appropriate codec. I will try to search for the others mentioned and see what happens.

gamr
29th January 2003, 05:58
use avisynth to do it, then you dont need anything commercial installed to use it. alternatively install koepi's latest unstable xvid that has yv12 decoder in it (last i heard this was faster than divx's yv12 routines but with 5.03 i havnt heard if divx optimized theirs more)

YV12toYUY2 in avisynth, read the html that comes with mpeg2dec. cce uses yuy2 internally so thats the fastest to feed it like that

from the html for those too lazy to check:

YV12toYUY2(clip, bool "interlaced")

interlaced :

set this to true if your source is interlaced,
to interlace chroma correctly.
if you have a progressive stream, using false will
give sharper and real colors
default : true

tff :

Top Field First.
set this to false if you have Bottom Field First.
default : true

also avisynth has ConvertToYUY2() but i havnt used it before.

TRILIGHT
29th January 2003, 06:02
I just can't help but wonder why in the world all this is necessary when I was able to use AVS scripts flawlessly in CCE before? I can't help but feel like I am introducing steps that will just slow the process down. I wanted to test the new Avisynth and decomb but with all of this mess and what seems to be (at least to me) introducing MORE steps into the encoding process, I the old way might be faster.

I installed the divx5.03 and now I can at least get Vdub to open the AVS file. However, CCE still crashes. Since CCE is the main point of al of this for me, I think I'm just stuck having to go back to the old Avisynth.

gamr
29th January 2003, 06:06
decomb is faster in yv12 so if you deinterlace/decimate while its still in yv12 thats faster. hopefully cce will get native yv12 support 1 day but it isnt there yet so in the meantime thats just what we have to do.

also staying in yv12 for longer gives closer resemlance to the original source. (less chroma interpolation) also if im not mistaken decomb is more accurate with yv12 (? correct me if im wrong).

TRILIGHT
29th January 2003, 06:11
See, this is what I thought when I was reading stuff about the new decomb. I was very eager to see how it performed with the new changes. I'm certainly not hurting like I was on the old hardware I had but still, comparing the 1.5x I get when using decomb does not hold a candle to the 2.5x I get when not having to use it. Does this mean that CCE simply cannot use the new setup or that I have to load something else in the script?

Again, I would like to apologize to the Avisynth veterans. I know what I am talking about probably sounds like child's play but I only use it in as much as it relates to the projects I do so I have to admit I'm somewhat of a "newbie" when it comes to complex Avisynth stuff. I do appreciate all of the help though. ;)

gamr
29th January 2003, 06:20
cce just cant handle the new colorspace

the new colorspace is still great to use internally for your filters (decomb/c3d/watevr you like) but you convert back to yuy2 so cce can read it . . .

LoadPlugin("C:\WINDOWS\System32\mpeg2dec3.dll")
LoadPlugin("C:\path\to\decomb.dll")
Mpeg2Source("VTS__01_P01_1.d2v")
Telecide(guide=1,blend=false)
Decimate(quality=3)
ResampleAudio(44100)
ConvertToYUY2()
make sense?

TRILIGHT
29th January 2003, 06:38
PERFECT sense, actually! Thanks! This at least enabled me to get CCE running. Strange thing is though, I cannot add the AVS scripts to CCE as before. However, if they are already a part of a saved ECL file, I can open the ECL and do an encode. The same was true whether I did or did not delete the previously created VAF information file.

When I did get it to run by loading up a previously saved ECL, my speeds appear no different than they were before. I guess I'm already at the max of what can be done when using this setup. I'll have to do some testing but it appears I'll just have to keep doing things the old way for now. Does anyone happen to know if the new decomb can run on Avisynth 2.07 or is the YV12 stuff written exclusively for 2.5? Thanks again everyone for your help!

gamr
29th January 2003, 07:05
yv12 is avisynth 2.5 only, as for why cce is doing that, i have no idea

you should really try to get 2.5 working properly cos all (well, 99%) of the new filters are being written for 2.5 and yv12 cos of the insane speeds you can get (im doing xvid encoding mostly myself so it helps me a lot)

TRILIGHT
29th January 2003, 07:13
Yeah, I'm not sure about how it affects xvid speeds. With the encoding I do for DVDR, I currently get about 1.5x for clips that require decomb and about 2.5x for clips that do not. My hardware is as listed below:

P4 2.4Ghz o/c to 2.7Ghz
512MB PC1066 Rambus
Asus P4T533-C systemboard

I was hoping to see decomb get even faster but I guess that's in the future. ;)

onesoul
29th January 2003, 11:45
Originally posted by TRILIGHT
Does anyone happen to know if the new decomb can run on Avisynth 2.07 or is the YV12 stuff written exclusively for 2.5? The new decomb can only run on 2.5, it is required the legacy version to run on up to 2.07.

I still am not familiarized with avisynth 2.5, as gamr refered you can use YV12toYUY2 and ConvertToYUY2 and there's also ConvertBackToYUY2. Which option would be better to put in a script to load to CCE?

Regards

sh0dan
29th January 2003, 11:49
@OneSoul: Yes - use decomb "Legacy" version for the 2.0 AviSynth line.

Use ConvertToYUY2 for CCE until further notice. If you have interlaced material, use "Assumefieldbased" before converting.

onesoul
29th January 2003, 12:02
In the case of interlaced material, wouldn't be better YV12toYUY2()?

Thanks :)

sh0dan
29th January 2003, 12:36
It is not an internal filter, so I can't say.

trbarry
29th January 2003, 16:32
Look at YV12 FAQ question 4, second paragragh. There is a link to koepi's build of xvid there, the alternative to divx5. But the totally free version of divx5 works as well as anything for this.

Stephen -

Do you (anyone?) know how I can make sure the Xvid one is used instead of the Divx vfw version for vdub preview?

I have Divx 5 pro installed and it works for this. But in debug mode when testing it will take a couple dozen trapped access violations in Divx!.dll every time I open an avs file, before proceeding normally. This is a pain if I want to trap my own access violations.

Since I paid for the pro version I hate to just remove it, might want it someday. So I'd like to put the Xvid decoder in front somehow for vdub preview and see if that works better to preview YV12.

- Tom

scmccarthy
29th January 2003, 20:40
@tom

Personally, if I were to not simply uninstall Divx 5.02, making a note perhaps of the install key that lets me install the pro version?(I don't have the pro version, so I don't really know how it is installed). I would still try to temporarily disable Divx, rather than work on Xvid.

So I'd try to create install and uninstall reg files for all the keys in the registery relating to divx. I don't know how to do that, so I would start by searching for all files *.reg and learn from them. Then I'd search for the keys in the reg and copy them into my install and uninstall files.

On course, you might be able to tell which key would disable the preview behavior only, which would be better. But sorry, I don't know about it. Personally, I still switch between 4.12 and 5.02. In fact the only one I know I like is alpha 3.11. It is a perfectly good implementation of the mpeg4 standard, which has not changed since then, so why would it be outdated? Don't answer that;)

Stephen

DDogg
29th January 2003, 21:46
To get CCE 2.5 to open an old avs under AS 2.5 I added:

vidc.YV12=DivX.dll

To the registry under drivers 32

I am not suggesting this is the proper way to go about it, but I didn't want to alter all my old scripts and this was a lazy way to accomplish it.

Later Edit: While the above reg will allow CCE 2.5 to open AVS 2.5, the ConvertToYUV2 at the end of your script is a Much better choice as CCE is considerably faster when using it. The numbers are 2.068 RT using ConvertToYUV2 Vs. 1.76 RT using Divx 5.03 to handle YV12 (on my old 1.4 TBird))

Using this script:

LoadPlugin("MPEGDecoder.dll")#Comes with 2.5 (plugins)
MPEGSource("D:\misery\DVD2AV~1.D2V") #Note NOT MPEG2Source
BicubicResize(480,480,0.0,0.55)
ResampleAudio(44100)
ConvertToYUY2()#REM this out if you want to use Divx to handle YV12

onesoul
30th January 2003, 15:28
Originally posted by DDogg
To get CCE 2.5 to open an old avs under AS 2.5 I added:

vidc.YV12=DivX.dll

To the registry under drivers 32 Many thanks for this valuable information. Can you please tell where exactly to put at the registry?

Thanks

Wilbert
30th January 2003, 15:45
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.YV12"="divx.dll"

onesoul
30th January 2003, 15:48
Thanks :D

scmccarthy
30th January 2003, 22:13
@onesoul

I liked the little animater gif better. I plan to go back and animate my avatar. Not to change it any, because it will be from the same part of the movie. The goofy expession he has on his face cannot be captured in a single frame.

Stephen

onesoul
30th January 2003, 23:36
@scmccarthy

You don't like that cute rabbit? :)
Actually this rabbit is taken from a movie too and beware because "that rabbit's dynamite" :D (that is quoted from the movie :))

Hint for guessing the movie: Do you know the Knights who say Ni? :D

TRILIGHT
30th January 2003, 23:54
Hell dude, I had that one before you even gave the hint. hehehe :D

onesoul
31st January 2003, 00:09
:D I just love that movie. Makes me laugh everytime I see it. :)

kempodragon
31st January 2003, 00:24
Beware, that rabbit's a killer!! You need the Holy Hand Grenade!! (choral music inserted). Aaah, the memories that movie brings back. BTW, anyone encounter problem encoding this movie because of the mix of live motion and the animations?

TRILIGHT
31st January 2003, 00:55
Get a DVDR, dude. It's a DVD5 disc. Straight copy. hehe :)

kyebean
10th February 2008, 06:17
This should all be very unnecessary, all you should have to do is check CCE>Options>Misc>Try decoding in YUY2

Leak
10th February 2008, 11:47
This should all be very unnecessary, all you should have to do is check CCE>Options>Misc>Try decoding in YUY2
I do hope you noticed that the post you answered is 5 years old... and can say if that option was there 5 years ago?

np: Duo505 - Last Summer (Another Illusion)

kyebean
18th February 2008, 21:22
I'm just giving what I think is the best solution for this problem, so if someone is reading this thread, trying to find an answer they don't have to jump through hoops.

MetallMann
20th March 2008, 15:23
... installing latest xvid solves the problem... :stupid: