Log in

View Full Version : cropping/resizing


asdfen
4th May 2011, 08:06
Hi all I am just starting to encode again after a long break and trying out Megui (64bit)
I have win7 64/avisynth64/megui64/h264 64

The source I am working with is 1080 BDrip .m2ts file

I've made a .avs scrip with megui

DirectShowSource("blah.m2ts", fps=23.976, audio=false, convertfps=false)
crop( 36, 20, -36, -20)
Lanczos4Resize(1280,720) # Lanczos4 (Sharp)
ConvertToYV12()

and encoded it with megui everything worked except that I am getting small 5-10 pixel border (black bars) from top and bottom of the frame. When Megui was letting me preview the scrip the borders are/were absent.

What I am trying to do here is remove black borders from source. There was 20px padding from top/bottom. and convert the video to 720p. Am I missing something?

Blue_MiSfit
4th May 2011, 08:37
How does the avs script look if you render it in avsp?

asdfen
5th May 2011, 15:18
thanks for reply Blue_MiSfit
in avsp it looks as I want it to look - no padding is visible

asdfen
5th May 2011, 15:40
I've just tried leaving only crop command and the resolution changed but padding stayed. Weired.

I think I am going to uninstall every 64 bit instance and install 32 bit. Probably something has gone wrong during install and/or due to nature of 64 bit not very stable 64 bit code.

just reinstalled everything tried 32 bit programs only and am still having same issue - cropping does not seem to function. I am not sure what else to try other than not using MeGUI

Tried 2 different players MPC 64bit & VLC media player x32 bit. both display bars.

Tried encoding with xvid, using mp4 container. All nets the same result - bars.

installed MPCx86 loaded AviSynth script into it. Bars are back so I guess this narrows it down to being AviSynth issue. still trying to figure it out.

tried
LoadPlugin("DGAVCDecode.dll")
AVCSource("blah.dga")
Crop(0, 20, 0, -20)
ConvertToYV12()

same thing

tried a small test avi clip loaded through DirectShowSource. Crop works ... So as soon as I have h264 source crop doesnt work...

ok I was wrong crop does work after a fashion. What I am experiencing even thought I am in the middle of the frame for example after cropping 600px from top I am still getting black border on top ... How?!

ok this thread is now closed since I was just being retarded. This effect was due to PC screen resolution being too small to fit the video generating black borers in the movie player. Man do I feel dumb

Blue_MiSfit
7th May 2011, 04:43
:) No stress. It happens to the best of us! I'm glad you resolved your issue.

Cheers,

Derek