View Full Version : Help to remove green line at the bottom of the video


dragon_warrior
17th October 2010, 16:35
I just wanna encode some 1080i vids to 720p and ran into this problem:
This is a part of my script
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("E:\HDTV.dga")

ConvertToYV12()
crop( 14, 12, -12, -10)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\nnedi3.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\yadifmod.dll")
YADIFMod(edeint=NNEDI3())
Spline36Resize(1280,720)

I always get dang green lines at the bottom, either in the preview window in MeGUI or the output file. The source is 1920x1080 and if I'm not wrong, doing the crop would give a height of 1080 - (12 + 12) = 1056, which is mod16, and there's no way these dang lines would appear

Btw, if I crop after deinterlace, i.e
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("E:\HDTV.dga")

ConvertToYV12()

LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\nnedi3.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\yadifmod.dll")
YADIFMod(edeint=NNEDI3())
crop( 14, 12, -12, -10)
Spline36Resize(1280,720)

it seems these lines crept up. Well, only in the preview window!!! Cuz when I do this, I kept seeing an error: "x264.exe has stopped working" and no file was output

I need help, plz. These are gonna driving me nuts :thanks:

Didée
17th October 2010, 16:48
Make that "-10" a "-12" and try again. Crop's pixel order is (x,y,x,y) (left,top,right,bottom).

Also, DGAVCDecode is dangerous with interlaced streams. It might work for PAFF interlacing (IIRC, not sure), but it doesn't work with MBAFF interlacing. It's a restriction of the libav-routines used in DGAVCDecode.

Gser
17th October 2010, 17:34
This is actually a rendering issue with DGAVCDecode. Use FFMPEG2. Has happened to me with dgavc.

dragon_warrior
18th October 2010, 04:53
Thanks Didée, the green lines disappear after I change "-10" into "-12" :)
Also, should I try FFMPEG2? Does it produce a better quality than DGAVCDecode?