Log in

View Full Version : How's my avs script?


Sgt_Strider
6th March 2003, 05:49
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\Program Files\AVIsynth 2.5\plugins\mpeg2dec3.dll")
#LoadPlugin("C:\Program Files\AVIsynth 2.5\plugins\decomb.dll")
#LoadPlugin("C:\Program Files\AVIsynth 2.5\plugins\simpleresize.dll")
#
# SOURCE
mpeg2source("C:\Documents and Settings\Lawrence Lee\My Documents\Minority.d2v")
#
# CROPPING
crop(0,0,720,480)
#
# RESIZING
BicubicResize(720,480,0,0.5)

I'm a noob at scripting and so I use gknot to make the script and take out what I think I don't need. Basicly I want to use the input resolution of my ntsc dvd rip which is 720x480 and I want to do it with no crop at all. Do I still need the resizing or can I take it out? How about the simplerresize? If its all not needed, then plz tell me what to do to either improve it or you give me a nice script of your owns that match what I want. Thx :).

Guest
6th March 2003, 06:08
Both your cropping and your resizing are superfluous and can be removed.

Sgt_Strider
6th March 2003, 07:13
Originally posted by neuron2
Both your cropping and your resizing are superfluous and can be removed.

Uh can you clearify that for me? I am so new to this avisynth stuff and editing that I'm pretty much clueless :(.

MasterYoshidino
6th March 2003, 07:20
the lines
# CROPPING
crop(0,0,720,480)
#
# RESIZING
BicubicResize(720,480,0,0.5)

can be easily changed to

# CROPPING
#crop(0,0,720,480)
#
# RESIZING
#BicubicResize(720,480,0,0.5)

add # symbols, which disable a script line
unless you want to change the resolution, read the avisynth docs that come with avisynth to understand the syntax of the script

Sgt_Strider
6th March 2003, 07:27
Originally posted by MasterYoshidino
the lines
# CROPPING
crop(0,0,720,480)
#
# RESIZING
BicubicResize(720,480,0,0.5)

can be easily changed to

# CROPPING
#crop(0,0,720,480)
#
# RESIZING
#BicubicResize(720,480,0,0.5)

add # symbols, which disable a script line
unless you want to change the resolution, read the avisynth docs that come with avisynth to understand the syntax of the script

Uh doesn't he just want to disable the resizing instead of the cropping? In your case, don't you want to disable both the cropping and resizing?

Sgt_Strider
6th March 2003, 09:13
Originally posted by Sgt_Strider
Uh doesn't he just want to disable the resizing instead of the cropping? In your case, don't you want to disable both the cropping and resizing?

I found this at avisynth.org

"All PAL, NTSC, and SECAM video is interlaced, which means that only every other line is broadcast at each refresh interval. Deinterlacing filters let you take care of any problems caused by this. IVTC (inverse telecine, aka pulldown removal) filters undo the telecine process, which comes from differences between the timing of your video and its original source. "

Does that include ntsc dvd's as well? So I need to use decomb.dll to fix that?

frank
6th March 2003, 17:26
NTSC DVD has 720x480 resolution. No resizing required.

scmccarthy
6th March 2003, 17:52
@Sgt_Strider

Try going to the DVD2AVI part of the forum and ask about force film there, since this last question is starting to stray from the original point that you do not need the crop and resize filters set at 720x480.

which means that only every other line is broadcast at each refresh interval. I think you are stumbling inadvertantly on a controversial issue perhaps. That is, which formats store the video information field by field and which of them store the video information frame by frame, whether interlaced of progressive. My guess is mpeg2dec always stores everything frame by frame, that only applies to DVD though, I am clueless about DV, since I never used a DVCAM. This is too complicated for you right now, better for you to go to DVD2AVI first and ask about force film.

Stephen

Sgt_Strider
7th March 2003, 07:33
Originally posted by scmccarthy
@Sgt_Strider

Try going to the DVD2AVI part of the forum and ask about force film there, since this last question is starting to stray from the original point that you do not need the crop and resize filters set at 720x480.

I think you are stumbling inadvertantly on a controversial issue perhaps. That is, which formats store the video information field by field and which of them store the video information frame by frame, whether interlaced of progressive. My guess is mpeg2dec always stores everything frame by frame, that only applies to DVD though, I am clueless about DV, since I never used a DVCAM. This is too complicated for you right now, better for you to go to DVD2AVI first and ask about force film.

Stephen

Acaila told me that neuron can answer this and I hope he does :).

scmccarthy
7th March 2003, 16:08
neuron2 already gave you an answer. I am suggesting going to the DVD2AVI forum to ask about force film because it is past of that program and not part of avisynth. Although it does affect what the mpeg2dec.dll does, so it's really does belong here, mmmm.

Stephen

Acaila
7th March 2003, 16:46
I also told you to check out this (http://www.doom9.org/ivtc-tut.htm) guide for info about deinterlacing and force film. It didn't answer your question?

Sgt_Strider
8th March 2003, 00:57
Originally posted by Acaila
I also told you to check out this (http://www.doom9.org/ivtc-tut.htm) guide for info about deinterlacing and force film. It didn't answer your question?

Not really, I'm not sure if ntsc dvd's are interlaced or not. Maybe I'm not understanding it well..

Guest
8th March 2003, 02:20
Originally posted by Sgt_Strider
I found this at avisynth.org

"All PAL, NTSC, and SECAM video is interlaced, which means that only every other line is broadcast at each refresh interval. Deinterlacing filters let you take care of any problems caused by this. IVTC (inverse telecine, aka pulldown removal) filters undo the telecine process, which comes from differences between the timing of your video and its original source. "

Does that include ntsc dvd's as well? So I need to use decomb.dll to fix that? This quote is referring to the actual analog video signal. Even if you have 24fps progressive frames as source content, it can be represented in the analog signal only as (3:2 pulled down) alternating fields (leaving aside HDTV).

After you capture such a signal, you are not in the analog domain anymore, but in the digital domain, where the atom is a frame, and each frame is a weave of two successive fields. Such frames may be combed due to movement between fields or due to pulldown (or due to phase shift in the PAL world).

NTSC DVD's will typically either need to be deinterlaced or IVTC'ed. The referenced tutorial contains voluminous information on deciding which is needed.

Guest
8th March 2003, 02:23
Originally posted by Sgt_Strider
Not really, I'm not sure if ntsc dvd's are interlaced or not. Maybe I'm not understanding it well.. Some have pure interlaced content, some have 3:2 pulled-down progressive content, and some have hybrid mixtures of the two.

scmccarthy
8th March 2003, 05:19
Not really, I'm not sure if ntsc dvd's are interlaced or not. neuron2 is right, but I can put it a different way. NTSC @ 29.97fps is always intelaced. Telecine means interlaced too, but if it is you can inverse the telecining process (IVTC) down to 23.976fps progressive. You can deinterlace 29.97fps to 29.97fps progressive and this works fine, unless it is telecine material, in which case there are duplicate fields that need to be decimated. You can use 'Force Film' in DVD2AVI to make mpeg2dec.dll deinterlace and decimate frames for you. Or use telecide() decimate() from the DeComb.dll which offers many ways to deal with hybrid material.

Basically, I like to use the term telecine for interlaced video that came from a progressive film source. I am saying the same thing without using the 3/2 pulldown terminology.

Stephen

Sgt_Strider
8th March 2003, 10:58
Originally posted by scmccarthy
neuron2 is right, but I can put it a different way. NTSC @ 29.97fps is always intelaced. Telecine means interlaced too, but if it is you can inverse the telecining process (IVTC) down to 23.976fps progressive. You can deinterlace 29.97fps to 29.97fps progressive and this works fine, unless it is telecine material, in which case there are duplicate fields that need to be decimated. You can use 'Force Film' in DVD2AVI to make mpeg2dec.dll deinterlace and decimate frames for you. Or use telecide() decimate() from the DeComb.dll which offers many ways to deal with hybrid material.

Basically, I like to use the term telecine for interlaced video that came from a progressive film source. I am saying the same thing without using the 3/2 pulldown terminology.

Stephen

So in other words, by using force film, will the mpeg2dec3.dll by marc fd do all of the deinterlacing for me and everything else to make it progressive? Do I need to change or set up any settings in order to do a good job? Sorry for all of these noob questions but I'm really new to this :(.

Guest
8th March 2003, 13:51
Sarge,

Being a noob doesn't excuse you from doing your homework. You've been pointed to resources for getting the answers to your questions. Ask some questions that show you've at least tried to digest the materials. Don't expect us to regurgitate Deinterlacing 101 for every noob that comes along!

Here's your homework question: What percentage FILM content as reported by DVD2AVI would suggest that FORCE FILM would be successful? Extra credit: What is the justification for that figure?

Sgt_Strider
8th March 2003, 22:57
Originally posted by neuron2
Sarge,

Being a noob doesn't excuse you from doing your homework. You've been pointed to resources for getting the answers to your questions. Ask some questions that show you've at least tried to digest the materials. Don't expect us to regurgitate Deinterlacing 101 for every noob that comes along!

Here's your homework question: What percentage FILM content as reported by DVD2AVI would suggest that FORCE FILM would be successful? Extra credit: What is the justification for that figure?

95% or higher?

Guest
8th March 2003, 23:14
Correct. You've now answered your own question.

Best wishes for brilliant encodes!

scmccarthy
9th March 2003, 15:26
Extra credit: What is the justification for that figure? I don't know the answer to this question, but one of the many reasons that DVDs tend to be hybrid is that if the DVD encoders edit the movie for the DVD, they seem to always edit directly in NTSC interlaced mode. To the DVD encoder, the only reason to have 3/2 pulldown (I hope I am using the terminology right) instead of hard coding all the telecining is to save space. They don't care that it is easier to use DVD2AVI's 'Force Film' against 2/3 pulldown rather that perform an IVTC against hard coded telecining.

Mmmm, I just learned something, of course, DVD2AVI detects pulldown, not telecining, if it is telecined without pulldown, it will be detected as NTSC rather than FILM. If you don't use 'Force Film', Decomb can tell if it is all telecined or not. So sometimes what DVD2AVI detects as 'hybrid' is still really 100% telecined and can be handle perfectly well when you take the true IVTC route.

Stephen