View Full Version : avs script for dvd material


DvPs
26th January 2005, 14:35
hi

i am using dvd rebuilder and cce to backup dvds.
at the moment i am searching good scripts for the avisynth frame server.


main movie (i change the crop and addborders numbers from film to film)
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("M:\RIPPEN\BILL2\D2VAVS\V01.D2V",idct=7)
trim(0,2874)
Crop(4,76,712,424)
Undot()
ConvertToYUY2()
TemporalSoften(1,6,4,15,2)
AddBorders(4,76,4,76)
ConvertToYUY2(interlaced=true)
AudioDub(BlankClip())


for extras (i have used this also a long time for the main movie, but GripCrop cuts to much from the sides (you don't see the difference on TV, but i don't want to lose so much video information):

t = GripCrop(720,576,overscan=0)
a = width(t)%8
b = height(t)%8
Crop(t,(a/2)*2,(b/2)*2,0-a+((a/2)*2),0-b+((b/2)*2))
Undot()
ConvertToYUY2()
TemporalSoften(1,6,4,15,2)
AddBorders((720-width)/2,(576-height)/2,(720-width)/2,(576-height)/2)

what filter would be good in order to become a good video quality with a bitrate from about 3000?

is it better not to use any filter in order not to manipulate the material? or will the movie become unsharp without no filter and needs a filter to sharpen it?


mfg DvP

actionman133
27th January 2005, 14:14
hi, sorry i can't help you too with filters, but i think your 'movie' script could do with a couple touchups that might boost speed.

for one, contrary to the avisynth help, temporal soften can work on material in YV12, so softening can be sped up there by removing the first ConvertToYUY2 line.

secondly, im not sure what the second ConvertToYUY2 line is meant to do. i'm not familiar with CCE, so if it can't read YV12, but can read YUY2, then fair enough. but, if the content is film-based (progressive), then you shouldn't need the interlaced=true...

btw, with temporalsoften, i get nice results with TemporalSoften (2, 4, 8, 15, 2). my goal with that is simply to eliminate grain. i haven't compared my settings to yours, so i don't know which one turns out better, but give it a shot.

hope i helped...

DvPs
27th January 2005, 14:17
sorry for this noob question:
what is progressive material? how can i dedect it?


mfg DvP

actionman133
27th January 2005, 14:34
boy, i remember the first time i asked that question. it was a long time ago, and im still learning about it. progressive material is where the entire content of a frame is related to a single moment in time. a film frame is an example.

the other type is interlaced. for an example of this, look at the still a couple pages down and on the left at this page. http://www.doom9.org/ivtc-tut.htm.

read the little description about interlacing just above it. the giveaway with interlaced video is the horizontal lines that appear in scenes with some moderate motion.

basically, two frames of video (or film in special cases) are mixed into one by interlacing individual lines together. all the even lines correspond to one image, and the odd lines correspond to the other. if you have a camcorder, record some moving footage in broad daylight and open the resulting avi file with DirectShowSource ("xxxx.avi"). you should see the same horizontal banding as you see on patrick stewart.

if your film is progressive, you won't have those lines, so you shouldn't worry about converting to YUY2 with interlacing made true.

hope that cleared it up. if not, search about interlacing on google. you would probably get a better understanding there, than from me.

Teegedeck
27th January 2005, 15:09
Perhaps you should start out by removing things from your script instead of adding lines.

I'm really not much into MPEG2 encoding and what it requires but when using DVD-bitrates you probably should throw Undot and TemporalSoften out of your script, unless you actually are dealing with a low-quality source. And I am not quite sure whether you need those colorspace conversions, either. Generally, the higher the quality of your original source, the less you should touch it with filtering.

If you want a more unobstrusive denoiser, perhaps you'd like to give removedirt(mode=2) a try. Grain, as in very small spots, gets quite effectively removed by removegrain(). But I wouldn't do that because the effect is quite noticeable.