Log in

View Full Version : AVSEdit / YV12 Error


SacredCultivator
13th February 2014, 18:44
Hello,

Wasn't too sure if this was the appropriate place to ask this.

But for some reason when I use AVSEdit to try and Crop a video, I get an error saying that I don't have YV12 installed. Which is weird because I have Koepi's XviD installed and see the files needed (I assume it's "xvidvfw.dll") located in my System32 folder, I also placed it in SysWOW64 as well.

The error that I get specifically is:
An error occurred. Maybe no YV12 decoder available, installing XviD, DivX or ffdshow might help.

System.Exception: AVIFileOpen failed at VFW.AVIFile.Open(String fileName)


And I tried the Registry trick of registering YV12 but no avail.

So not too sure what's causing this issue, as I know if I open VirtualDubMOD, YV12 does show up as well as XviD.

Currently just doing my cropping via meGUI but it's a bit inconvenient when I have my AVS script template all set up.

If any further information is needed, I hope to be able to provide to fix this issue.

Thanks.

StainlessS
13th February 2014, 19:39
It plays ok without cropping ? (if so, crop coords bad, perhaps only for player).
What cropping coords are you using (give script), what player (F5=built-in AVSEdit, F6=customized to particular player).
Some players require Width MOD 4 coord clips, including VDubMod for YV12 (and height should be mod 2 for YV12).

Try on last line

Return ConvertToRGB.Info

EDIT: VLC should work if OK YV12 coords (Windows Explorer, right click, open with VLC) as it has its own decoders I think.

EDIT:
I just tried non mod 4 width clip in AVSEdit using built in player F5, got exact same message as you.
You need to make width exactly divisible by 4 for the built-in player and also XP's MPlayer2, and 2 for height.

Use Return ConvertToRGB.Info and amend coords

SacredCultivator
13th February 2014, 20:12
It's weird beause the source isn't AVI at all.

DGDecode_mpeg2source("D:\C-ute\C-ute - Alo-Hello! 2014.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
crop(0,0,0,0)
Spline36Resize(720,480)
AssumeFPS(30000,1001)
Undot()

The source plays fine in MPC, but if I click/drag the AVS script into the player then it fails to render.

For the "Return ConvertToRGB.Info", what am I supposed to do with it as I input it into the script but not sure what's supposed to happen.

Also if I drag it into meGUI no issues, but if I drag the AVS Script into VirtualDub then I get AVI Import Filter error: (Unknown) (80040154)

StainlessS
13th February 2014, 20:16
Intent was to place on last line to show dimensions, did you see blue text above.
EDIT:
So your crop has no effect and the resize is mod 4, dont know what to say.

(Not sure but I think I've also had probs in MPC-HC with non mod 4 RGB, some time ago).

Probably Return Info.ConvertToRGB would give better info before conversion

SacredCultivator
13th February 2014, 20:26
It's weird, even without cropping if I Highlight it and try to crop/preview within AVSEdit, then those errors arise.

StainlessS
13th February 2014, 20:34
Sorry, the exact error I got was a bit different to yours,

An error occurred. Maybe no YV12 decoder available, installing XviD, DivX or ffdshow might help.
System.Exception: AVIStreamGetFrameOpen failed at VFW.AVIFile.Open(String fileName)


if I Highlight it and try to crop/preview
I'm a bit unclear upon that, hilite what and crop how ?
I'm using AVSEdit v1.1.1.3 (old but latest I thnk) and I'm not aware of any interactive crop.
do you have some other version ?

EDIT: Oh, I see, you select 'Crop' in Filters list and click on Preview.
Clicking on Preview does not give you some kind of interactive crop function, you double click it and it inserts
a line like
Crop(left,top,right,bottom)
into the script. So what you describe without double click is the same as clicking preview (F5 built in viewer).

EDIT: I'm not sure where that message is coming from, it is not I think an Avisynth error message.
Looks to be an AVSEdit message box, with a standard "maybe its a missing YV12 codec" type standard error message.
AVSEdit is a bit peculiar in that it creates a temp script file called "AVSEdit Preview.avs", perhaps the
file open error is about that file. The temp file is just a copy of current script (in case you have not saved it to disk).

Try only this to assertain that it does actually load the clip without any other editing

DGDecode_mpeg2source("D:\C-ute\C-ute - Alo-Hello! 2014.d2v")

If ok then enable other lines one at a time
otherwise maybe Helix YV12 decoder would prove either way if YV12 decoder fault (and uninstall if not).

(I'm assuming its not a fault in the d2v file)