View Full Version : mpeg2dec3 and YV12toYUY2
kassandro
29th May 2003, 12:40
While the following scrip is ok
LoadPlugin("C:\Programme\avisynth\plugins\MPEG2Dec3.dll")
MPEG2Source("input.d2v")
YV12toYUY2(interlaced=true)
crop(18,4,688,568)
the following slighly more efficient script produces only garbage
LoadPlugin("C:\Programme\avisynth\plugins\MPEG2Dec3.dll")
MPEG2Source("input.d2v")
crop(18,4,688,568)
YV12toYUY2(interlaced=true)
Just out of interest try getting the latest version of avisynth and try:
ConvertToYUY2(interlaced=true)
instead of YV12toYUY2(interlaced=true)
Does that help?
-Nic
kassandro
29th May 2003, 14:10
Both scripts work well with ConvertToYUY2(interlaced=true) instead of YV12toYUY2(interlaced=true).
I use version 2.51.
kassandro
29th May 2003, 16:26
1.There are no problems if crop(18,4,688,568) is replaced by crop(16,4,704,568) (original width=720). Thus vertical cropping nor cropping on the left side does cause problems. It is solely cropping on the right side which causes the problems.
2.The problems are identical with YV12toRGB24.
3.If I do the cropping within dvd2avi, then I get the same kind of garbage without a further crop command in the script. I initially thought that this was a compatibility problem of mpeg2dec3 with dvd2avi, but now it is obviously a sole mpeg2dec3 bug.
I use version 1.06.
sh0dan
29th May 2003, 16:49
It's a known bug - just use the internal conversion routines.
@sh0dan: Are there any benefits in the internal routines compared to the AviSynth ones....(im guessing not)
If I release an update, should I remove those internal routines to stop confusion in the future?
-Nic
sh0dan
29th May 2003, 22:24
As they don't have any more information about interlaced/non interlaced images compared to AviSynth - there is no point in keeping them.
As they cannot handle input pitch != output pitch and produces garbage frames in these cases. Maybe they should just be remapped to the internal functions to keep compatibility?
"Maybe they should just be remapped to the internal functions to keep compatibility?"
Ahhh, Excellent thinking as always. Ill do that with the next release.
-Nic
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.