Log in

View Full Version : Problem with ConvertToYV12


pvann
11th September 2006, 23:11
When I try to preview the following script in AVSEdit, it says there is an error in the script (I even copy/pasted the Convert line from a post on this forum in case I had a typo!!); removing the Convert statement removes this error message.

AviSource(“…..\MyMovie.avi”)
ConvertToYV12(interlaced=true)

The avi file is one captured from a DV camera via Premier 6.5. It is interlaced PAL 576*720 and avisynth’s IsRGB32() returns true. I've been using avisynth ver2.5 and last weekend moved to ver 2.6 which still returns this error.

I've added pixel_type=”YV12” but that also returns an error message saying the codec doesn’t support that.

Whilst I love using avisynth for cleaning of old VHS family video using FFT3d and FRFun, I want to explore some cleaning and sharpening techniques I have read about on this forum (Spresso, SeeSaw, MVDegrain2, LimitedSharpen etc) and some require YV12. I admit that I’m not up on colour spaces, I just follow the many useful examples in this forum.

I’ve searched the forum for similar error messages but drew a dead end.

Is there something obvious that I’m missing?


FWIW, My system is a P4 3Ghz, 1GB RAM, 400GB over two disks running XP Prof. It is primarily used for editing home video (Premier 6.5) and creating DVDs (TMPGEnc & DVDLab) with AVISynth for additional processing and VirtualDub for DeShaking (only when really needed)

Ebobtron
12th September 2006, 00:12
I am going to guess that you have a codec problem. It isn't uncommon.

http://forum.doom9.org/showthread.php?p=687842#post687842

The link above is to my thread about avsFilmCutter look toward the bottom of the first post. You will find there two links to yv12 codecs.

good luck,
EBT

IanB
12th September 2006, 02:51
When I try to preview the following script in AVSEdit, it says there is an error in the script (I even copy/pasted the Convert line from a post on this forum in case I had a typo!!); removing the Convert statement removes this error message.It might be kinda helpfull to quote the exact text of this error message so we might know what your problem is.

YV12 has some restrictions like needs even width and mod 4 height (for interlaced).

Alternatively to be able to decode and display YV12 most applications need a YV12 codec. DivX and Xvid codecs can provide this function.

pvann
12th September 2006, 03:15
EBT - will try installing the codec when I get home tonight
IanB - if error persists, I'll copy exact error message

Thanks for the replies


Edit - EBT, loading the codec solved the problem - many thanks, now for some fun experimenting with some additional cleaning & sharpening filters

Peter