Log in

View Full Version : Troubles: AVISynth and 1366x768 AVI.


belonesox
24th May 2011, 20:59
Hello all.

I have AVI 1366x768, x264, no sound.

Here is small sample http://wiki.4intra.net/images/f/fb/Test-1366x768.avi (250Kb).

VirtualDub opens it without problem:
http://wiki.4intra.net/images/a/a1/Virtualdub-test-1366x768.png

But, if I try to open in with AVISynth script


AVISource("test-1366x768.avi")


I have


---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
Avisynth error: YV12 images for output must have a width divisible by 4 (use crop)!
---------------------------
OK
-----------------


If I crop

AVISource("test-1366x768.avi").Crop(0,0,-2,0)

or add borders
AVISource("test-1366x768.avi").AddBorders(0,0,2,0)

I have this nightmare:
http://wiki.4intra.net/images/9/92/Avisynth-test-1366x768.png

What happens? Is it possible to open such avi-files by AVISynth?

Thanks all in advance,

Sincerely, Stas Fomin
link to the issue page (http://wiki.4intra.net/User:StasFomin/AviSynth/Bugs/1366x768)

mgh
25th May 2011, 16:46
use pixel_type parameter
AVISource("test-1366x768.avi", pixel_type="RGB32")
you can convert back to YV12 after cropping or adding border.
RGB24 does not work correctly, it recreates your 'nightmare,' for reasons unknown to me.

TheFluff
26th May 2011, 00:27
Or you can try ffvideosource(), if you want to avoid the conversion to rgb32 and back.