Help with DVD script

Locked
Ninjafox
Joined: Mon Nov 10, 2003 3:49 am
Location: Australia, NSW
Org Profile

Help with DVD script

Post by Ninjafox » Mon Sep 04, 2006 10:07 pm

mpeg2source("C:\Documents and Settings\User\Desktop\ghost in the shell.d2v")
ConvertToRGB32(Interlaced=true)
SmoothDeinterlace(tff=true, doublerate=false)
LanczosResize(1024,576)
ConvertToYUY2(interlaced=true)
Telecide(order=1, guide=2)

This is my first time trying to use dvd footage so please bare with me lol. This is probably stupid of me asking but is their anything else i should add? Also whenever i type "Telecide(order=1, guide=2)" above any other command i get this error:

"Avisynth open failure: Telecide YUV2 or YV12 data only
(file path, line what ever)"

but if i leave last it works lol..

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Mon Sep 04, 2006 11:03 pm

you should probably leave the footage alone (no colorspace conversions for now)
also. SmoothDeinterlace and Telecide do the same thing. (at least I'm pretty sure they do)

when you say you put it above any other command, do you put it above mpeg2source?

you might want to add a sharpener such as msharpen(), vmtoon(), or fastlinedarken() and also use a temporal smoother like Deen()

don't forget to crop the edges of your video (to get rid of those little black borders on the sides) with crop(int left side, int top, int right side, int bottom)

IVTC-ing my footage has always gotten rid of interlacing (minus a bit of mouth movement, but that can be taken care of too) and made the footgage progressive (progressive footage is more predictable when synching)
the old way is to use Telecide() followed by Decimate(), but there are newer ways to do this (Like TVITC, a pack of functions that IVTC and a few other things) which can be found here
Image
Image

trythil
is
Joined: Tue Jul 23, 2002 5:54 am
Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
Location: N????????????????
Org Profile

Post by trythil » Tue Sep 05, 2006 1:05 am

Kariudo wrote:you should probably leave the footage alone (no colorspace conversions for now)
also. SmoothDeinterlace and Telecide do the same thing. (at least I'm pretty sure they do)
No. Wrong.

Please search before spreading misinformation. The documentation for these filters is widely available.
you might want to add a sharpener such as msharpen(), vmtoon(), or fastlinedarken() and also use a temporal smoother like Deen()
I hope you're intimately familiar with Ghost in the Shell. Otherwise, please refrain from offering filtering suggestions. Ham-fisted application of filters is often worse than not filtering anything at all.
"Avisynth open failure: Telecide YUV2 or YV12 data only
(file path, line what ever)"

but if i leave last it works lol..
Telecide expects YUV2 / YV12 data. If you are putting it anywhere after ConvertToRGB32, it will break.

If MPEG2Source is not returning data in the latter colorspace, please provide the names and versions of the tools you are working with.

User avatar
Keeper of Hellfire
Joined: Sun Jan 09, 2005 6:13 am
Location: Germany
Org Profile

Post by Keeper of Hellfire » Tue Sep 05, 2006 3:25 am

While SmoothDeinterlace and Telecide have different approaches, both do deinterlacing, resulting in progressive footage. Theres no need to use 2 deinterlacers. Since you are using PAL footage, the order=1 in the telecide command is wrong. It must be 0 (bff). And the tff=true in the SmoothDeinterlace is wrong eihter.

Since SmoothDeinterlace already produces progressive footage, the line

Code: Select all

ConvertToYUY2(interlaced=true)
is wrong. And if you put the telecide at the right position, the colorspace conversion is unnecessary at all.

The conversion into RGB colorspace should be the last one.

The place where to put the deinterlacing depends on the filters you use. Some are supposed to work with interlaced material, so you should place them before the deintelacer.

User avatar
Melanchthon
Joined: Thu Sep 02, 2004 11:12 am
Org Profile

Post by Melanchthon » Tue Sep 05, 2006 1:18 pm

This is probably stupid of me asking but is their anything else i should add?
Do you notice any specific problems with the picture?

User avatar
Minion
Joined: Sat May 22, 2004 10:16 pm
Location: orlando
Contact:
Org Profile

Post by Minion » Tue Sep 05, 2006 1:43 pm

this is what i use for the majority of my footage
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("yourfilename.d2v")
Telecide(order=1,post=2,blend=false,vthresh=30,back=1)
Decimate(cycle=5,mode=3,quality=3)
ColorYUV(gain_u=15)
KioAtWork: I'm so bored. I don't have class again for another half hour.
Minion: masturbate into someones desk and giggle about it for the remaining 28 minutes

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Tue Sep 05, 2006 1:59 pm

Keeper of Hellfire wrote:While SmoothDeinterlace and Telecide have different approaches, both do deinterlacing, resulting in progressive footage.
Wrong, telecide does Inverse Telecine, not deinterlacing. True, they both result in progressive footage (very DIFFERENT progressive footage), but they do not both do deinterlacing. (well technically, telecide can do deinterlacing, but it is not it's primary function).

@Ninjafox:
It looks like you are working from a PAL version of the disc, which probably has the fields and stuff all screwed up to begin with.

I would recommend restructuring your script in this way:

Code: Select all

mpeg2source("C:\Documents and Settings\User\Desktop\ghost in the shell.d2v")
SmoothDeinterlace(tff=true, doublerate=false)
LanczosResize(1024,576)
ConvertToRGB32()
Without seeing the source, I can't tell you if this will work well or not. However, this would be an improvement over what you currently have. I'm not sure if the 'tff' in SmoothDeinterlace needs to be true or false. You should try it both ways and see which looks better, unless you specifically know the field order of your footage.

@Minion:
I can assure you that the vast majority of footage does not need its u_gain tweaked by 15.

User avatar
Melanchthon
Joined: Thu Sep 02, 2004 11:12 am
Org Profile

Post by Melanchthon » Tue Sep 05, 2006 2:04 pm

Zarxrax wrote:@Minion:
I can assure you that the vast majority of footage does not need its u_gain tweaked by 15.
No part of the tech guide is as often misread as that one. All gain_u=15 does is make the video more blue and less yellow. If the footage is slightly yellow to begin with, it gets corrected. If it isn't, it gets tinted blue.

User avatar
Minion
Joined: Sat May 22, 2004 10:16 pm
Location: orlando
Contact:
Org Profile

Post by Minion » Tue Sep 05, 2006 9:09 pm

what would you suggest i drop it down to?
i havn't noticed any blue tinting, but of course that doesn't mean its not there. i could just be used to looking at it :/
KioAtWork: I'm so bored. I don't have class again for another half hour.
Minion: masturbate into someones desk and giggle about it for the remaining 28 minutes

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Tue Sep 05, 2006 9:15 pm

Minion wrote:what would you suggest i drop it down to?
Why have it at all?

Locked

Return to “Video & Audio Help”