kray
29th August 2007, 21:29
Hello,
I have a question about cropping
I have a ripped movie from a DVD of mine. I want to encode it in x264.
But what is the best solution for resizing/cropping?
Indeed, usually I encode my movie with a GUI without editing the script and it resizes in 720*404 without cropping the black bands.
So I thought that its stupid to compress this band and I decided to crop it
But I got a problem: Must I resize then crop or crop then resize?
I wanted to made a bench. Unfortunately I succeed only in writing the avs for "crop then resize":
DirectShowSource("C:\Drop\MVIE\VIDEO_TS\VTS_01_1.d2v",fps=25,audio=false)
#deinterlace
crop( 10, 74, -10, -68)
trim(100,400)
LanczosResize(696,304) # Lanczos (Sharp)
#denoise
indeed for resizing then cropping, I used my GUI to make the script(since I don't know where to crop after resizing) and it create this AVS:
LoadPlugin("C:\PROGRA~1\Video\RIAM\dlls\MPEG2Dec3.dll")
Source="C:\Drop\MVIE\VIDEO_TS\VTS_01_1.d2v"
Largeur=720 #width
Hauteur=404 #height
ratio =1.782178
vratio =1.782178
Crop_g=12
Crop_d=-12
Crop_h=54
Crop_b=-46
Indice=0.192364
Video=mpeg2Source(Source)
Video=trim(Video,100,400)
Video=LanczosResize(Video, Largeur, Hauteur)
Video=Crop(Video, crop_g, crop_h, crop_d, crop_b)
Return(Video)
The problem is that the trim doesn't extract the same part of movie(I dont know why)than in my other script, so I cant compare the differences.
The other concern is about dimension: the cropped video dimensions aren't 16 multiple and I wonder if x264 like it(it works, but is it optimized?)
So Finally I asked me this question and I Got no answer:
What is the best solution with movies with black band(Anamorphic?) in term of quality or/and size or/and encoding time beetween: cropping then resizing, resizing then cropping, no resize at all: encode the black band
(and optionnaly what is the difference between the script use by the GUI that use mpeg2source and the one using directshow?)
Thank you very much and sorry for my awful english :)
I have a question about cropping
I have a ripped movie from a DVD of mine. I want to encode it in x264.
But what is the best solution for resizing/cropping?
Indeed, usually I encode my movie with a GUI without editing the script and it resizes in 720*404 without cropping the black bands.
So I thought that its stupid to compress this band and I decided to crop it
But I got a problem: Must I resize then crop or crop then resize?
I wanted to made a bench. Unfortunately I succeed only in writing the avs for "crop then resize":
DirectShowSource("C:\Drop\MVIE\VIDEO_TS\VTS_01_1.d2v",fps=25,audio=false)
#deinterlace
crop( 10, 74, -10, -68)
trim(100,400)
LanczosResize(696,304) # Lanczos (Sharp)
#denoise
indeed for resizing then cropping, I used my GUI to make the script(since I don't know where to crop after resizing) and it create this AVS:
LoadPlugin("C:\PROGRA~1\Video\RIAM\dlls\MPEG2Dec3.dll")
Source="C:\Drop\MVIE\VIDEO_TS\VTS_01_1.d2v"
Largeur=720 #width
Hauteur=404 #height
ratio =1.782178
vratio =1.782178
Crop_g=12
Crop_d=-12
Crop_h=54
Crop_b=-46
Indice=0.192364
Video=mpeg2Source(Source)
Video=trim(Video,100,400)
Video=LanczosResize(Video, Largeur, Hauteur)
Video=Crop(Video, crop_g, crop_h, crop_d, crop_b)
Return(Video)
The problem is that the trim doesn't extract the same part of movie(I dont know why)than in my other script, so I cant compare the differences.
The other concern is about dimension: the cropped video dimensions aren't 16 multiple and I wonder if x264 like it(it works, but is it optimized?)
So Finally I asked me this question and I Got no answer:
What is the best solution with movies with black band(Anamorphic?) in term of quality or/and size or/and encoding time beetween: cropping then resizing, resizing then cropping, no resize at all: encode the black band
(and optionnaly what is the difference between the script use by the GUI that use mpeg2source and the one using directshow?)
Thank you very much and sorry for my awful english :)