i want to crop the black border above the movie so the subs are in the black field under the movie.
(source movie 608x256 23.97fps)
(using Avisynth 1.06)
encoding to PAL 720x576 25fps
My aviscript:
LoadPlugin("J:\PROGRAM\mpeg2dec\mpeg2dec.dll")
LoadPlugin("j:\nytt\plugins\textsub.vdf")
AVISource("J:\film\tears of the sun\tears cd1 full.avi")
ConvertToYUY2()
crop(0,20,720,556)
BicubicResize(720,336,0,0.75)
AddBorders(0,120,0,120)
TextSub("j:\film\tears of the sun\text tears cd1.srt")
AssumeFPS(25,1,True)
iīve got this failure in Tempgenc when i browse my avs-script:
Avisynth:caught an access violation at 0x00dcbbbf attempting to read from 0x01de4000
if i disable the crop field in my aviscript it works in tempgenc.
so whatīs wrong with my "crop"
can u help me get this script work with crop?
+ Reply to Thread
Results 1 to 5 of 5
-
-
crop(0,20,720,556)
The line above will cut out a 720x556 picture from the original picture, placing the top left corner 0 pixels to the right and 20 pixels down. But that is only possible if your source file resolution is at least 720x576 (and then it will crop the top 20 pixels). You wrote that your source file had the resolution 608x256. Do you have black borders in this source?
If you want to crop 20 pixels on the top of your 608x256 source you can use:
crop(0,20,608,236)
I'm not sure what you are trying to do...
Edit: If you just want to put shift your picture area 20 pixels higher then just use something like Addborders(0,100,0,140) after the resizing. By the way your resizing seems to get a strange aspect ratio. I suggest trying FitCD to make it easier and just modify the addborder line. Set your source aspect ratio to 1:1 and destination to DVD and enable format conversion (NTSC source to PAL destination).Ronny -
yes my source have black borders to..but itīs not an DVD PAL(source is ntsc 608x25623.97)
so i must encode to DVD PAL. and that resolution is 720x576
what i want to do is a new DVD movie with the subs under the movie(in the black border) .....so i have to "move up" the hole movie on the TV-screen.thatīs why i want to crop the black border above the movie.
Or is there a better way to do this maybe? -
The reason you get the error is that your crop line is made for a 720x576 source not a 608x256 source. You can't crop to a resolution bigger than what is left after you crop.
Change the crop line to
crop(0,x,608,256-x)
where x is the number of pixels you want to crop from the top of your source.
Then after cropping all the black borders from your source you resize to a correct pixel aspect ratio for your PAL DVD resolution and add the black borders to fill the 720x576 frame.
If you add more black border at the bottom and less at the top then you get more black below the picture to put your subtitle. If you want to shift the picture up by 16 pixels you can add 16 pixels more border to bottom and 16 pixels less to top.
Addborders(left,top,right,bottom)
As I sidenote, why do you hardcode the subtitle into your video if you are making DVD? You can use srt2sup and then multiplex the subtitles into the vob files with ifoedit to get selectable DVD subtitles. An alternative method if you have DVDMaestro or Scenarist authoring software is to convert the srt subs to ssa subs and then use MeastroSBT to create subtitles that can be added in Maestro or Scenarist. With MeastroSBT you can place the subtitle wherever you want.Ronny
Similar Threads
-
Sony Vegas Movie Studio 9 Platinum: Event pan/crop keyframing problem
By Dude E. O'Loo in forum EditingReplies: 2Last Post: 22nd Jan 2012, 19:09 -
to crop, or not to crop, that is the question...
By GrandPixel in forum Blu-ray RippingReplies: 2Last Post: 11th Nov 2010, 14:17 -
Vegas problem with pan/crop dialog box
By lgh529 in forum EditingReplies: 3Last Post: 8th May 2010, 04:39 -
crop in avisynth causing tearing ?
By davexnet in forum Video ConversionReplies: 13Last Post: 2nd Mar 2009, 15:17 -
Problem with Saving Parameters in Pan/Crop.
By solarblast in forum EditingReplies: 2Last Post: 11th Jan 2008, 18:54