Avisynth Script Help (for cowboy bebop)

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
shinji13
Joined: Sat Mar 29, 2003 4:40 pm
Location: Seattle, WA
Contact:
Org Profile

Avisynth Script Help (for cowboy bebop)

Post by shinji13 » Tue May 15, 2007 10:16 pm

Okay, so I have been messing with avisynth and asking Scintilla for help from the get-go on the basics, but I finally feel comfortable enough to embarrass myself in front of everyone now. :lol:

Below is my currently used script.
cowboybebopscript wrote:mpeg2source("D:\done.d2v",cpu=6)
ConvertToYV12()
Telecide(post=2,blend=true,vthresh=30,back=1)
Decimate(cycle=5,mode=3,quality=3)
SmoothD(quant=2,num_shift=6,adaptive_shift=0,zero_weight=1)
WarpSharp(depth=132)
Crop(8,0,-8,-0)
LanczosResize(640,480)

and unfortunately I cant get screenshots because everything I try fails, I cant figure out how to do screenshots in magix video editor (just bought it) -- if you know let me know how, it wont work when I do screenshots cause it just makes a messed up picture, all black and windows movie maker doesnt support the format so when I import the video and try to use it it freezes up and closes.

Basically though the problems are the lines (like around the faces and such) arent straight, they are all bit-up and not very sharp, also there is still some grain and dotting throughout the video. There is some scenes that look very clean but most are very grainy and have bad lines.

There is no interlacing in the video and the edges are all clean after using this script, also there are no black edges after the cropping.
--------------------------------------

How can I modify these current filters in order to make my video better, and what other filters should I try to use to fix my current predicaments?

Any help what-so ever would be appreciated, I really want good video quality for my next video and I have been working on figuring out avisynth for three days now. o.o

also if someone can tell me a way to capture the images I will be able to give you some screenshots of how it looks so you can make a better judgement.
"The secret to creativity is knowing how to hide your sources." - Albert Einstein

User avatar
shinji13
Joined: Sat Mar 29, 2003 4:40 pm
Location: Seattle, WA
Contact:
Org Profile

Re: Avisynth Script Help (for cowboy bebop)

Post by shinji13 » Wed May 16, 2007 12:51 am

Okay; fortunately for me I got some images.

http://img.photobucket.com/albums/v202/ ... image2.jpg

http://img.photobucket.com/albums/v202/ ... image3.jpg

http://img.photobucket.com/albums/v202/ ... image1.jpg

These were all from the same video source that I used the above script on.
"The secret to creativity is knowing how to hide your sources." - Albert Einstein

User avatar
AMV_4000
Joined: Wed Apr 10, 2002 6:29 am
Location: USA
Contact:
Org Profile

Post by AMV_4000 » Wed May 16, 2007 2:13 am

may wanna crop more off of the right side, still got some black bar...that may help a little...

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed May 16, 2007 9:23 am

Okay, those screenshots just scream "bad deinterlacing job".

I would first suggest changing Decimate's <b>mode</b> from 3 to 2; mode 3 applies frame blending if it detects nonfilm sections of the footage, while mode 2 just drops a frame from the longest string of duplicates in each 5-frame section.

I would also suggest raising Telecide's <b>vthresh</b> back to its default of 50 and then looking at those frames again. If they look fine, then you were probably deinterlacing too many progressive frames by setting <b>vthresh</b> too low.
If on the other hand they're combed, then you may want to consider using a different deinterlacer (Telecide uses FieldDeinterlace by default). Absolute Destiny describes how to do that <a href="http://www.animemusicvideos.org/guides/ ... l">here</a>, in the subsection "Alternative Method 2" under the section "Telecined Footage".
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
shinji13
Joined: Sat Mar 29, 2003 4:40 pm
Location: Seattle, WA
Contact:
Org Profile

Post by shinji13 » Wed May 16, 2007 9:41 am

Thank you both for the help, here is my new video.

http://img.photobucket.com/albums/v202/ ... tages2.jpg

and

http://img.photobucket.com/albums/v202/ ... tages1.jpg

I think this looks much better than the old one (the shot with julia with a gun to her head is good test shot, look at my old one in second post you'll see the difference).

But these shots are only 640x480 and I am sure most people watch music videos in full screen, I am afraid the videos quality will be lowered when they are viewed in a larger screen; is there more scripting I can do to prevent this?
script wrote:mpeg2source("D:\done.d2v",cpu=6)
converttoyv12(interlaced=true)
Telecide(post=2,blend=true,vthresh=50,back=1)
Decimate(cycle=5,mode=2)
#beforeafterline(1,"""tweak(cont=1.2,sat=1.5,bright=2,hue=0).mftoon()""")
tweak(cont=1.2,sat=1.5,bright=2,hue=0)
SmoothD(quant=2,num_shift=6,adaptive_shift=0,zero_weight=1)
WarpSharp(depth=132)
FRFun7(lambda=3)
Crop(10,8,-12,-0)
LanczosResize(640,480)

Thats my current script.

Oh and also should I resize from 740x480 to 640x480? Which mode is more desired? (I switched to 640 because I read someone else saying they did, so I thought maybe I should ._. kind of a stupid reason).

Let me know if any of my filters are all caplooey, I am sure some of them are. :[

Again, thanks for the help so far-- especially Scintilla, I can see video quality improvement already (kind of exciting).
"The secret to creativity is knowing how to hide your sources." - Albert Einstein

User avatar
shinji13
Joined: Sat Mar 29, 2003 4:40 pm
Location: Seattle, WA
Contact:
Org Profile

Post by shinji13 » Wed May 16, 2007 9:47 am

The left over line on the right has been fixed, so dont worry about that. :] I didnt expect to have to insert such a high # to get rid of it.
"The secret to creativity is knowing how to hide your sources." - Albert Einstein

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed May 16, 2007 12:53 pm

shinji13 wrote:Oh and also should I resize from 740x480 to 640x480? Which mode is more desired? (I switched to 640 because I read someone else saying they did, so I thought maybe I should ._. kind of a stupid reason).
640x480 is 4:3 with square pixels, and therefore it is a correct resolution for playback on a computer monitor, if you don't want to have to deal with aspect ratio flags. (Last I heard, it still wasn't a good idea to use aspect ratio flags in AVI, OGM, Matroska, MP4, or MKV for compatibility reasons -- not all players will handle them properly. Someone correct me if this is no longer an issue.)

720x480 is for if you want to record a DVD or send your video to a convention. It can also be used for other MPEG-1 and MPEG-2 distribution encodes, as most encoders will set the 4:3 aspect ratio flag by default and it's not very hard to do it yourself if they don't.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

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

Post by Keeper of Hellfire » Wed May 16, 2007 1:20 pm

Scintilla wrote:640x480 is 4:3 with square pixels, and therefore it is a correct resolution for playback on a computer monitor,
That's no longer true with modern monitors. Both of my monitors (1 CRT, 1 LCD) have a proper 4:3 DAR, but both are driven with 1280x1024, which would be 5:4 with square pixels. So they have a PAR of 1.067 like PAL. But of course, most people won't notice the difference.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed May 16, 2007 2:17 pm

Keeper of Hellfire wrote:
Scintilla wrote:640x480 is 4:3 with square pixels, and therefore it is a correct resolution for playback on a computer monitor,
That's no longer true with modern monitors. Both of my monitors (1 CRT, 1 LCD) have a proper 4:3 DAR, but both are driven with 1280x1024, which would be 5:4 with square pixels. So they have a PAR of 1.067 like PAL. But of course, most people won't notice the difference.
I kind of assumed that people who ran their CRT monitors at 1280x1024 (like myself, actually) set the monitor's display width and height manually to be closer to 5:4, so that everything would still show up properly -- squares still look square, etc.

And you mean your LCD monitor's pixels aren't actually square? I personally would expect that an LCD monitor with a native resolution of 1280x1024 ought to have a 5:4 aspect ratio...

In any case, this isn't an issue with most of the other common resolutions for standard monitors (800x600, 1024x768, 1152x864, 1600x1200), which actually ARE 4:3, so I'd say 4:3 with square pixels is just about the safest you can get.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

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

Post by Keeper of Hellfire » Wed May 16, 2007 2:43 pm

Scintilla wrote:I kind of assumed that people who ran their CRT monitors at 1280x1024 (like myself, actually) set the monitor's display width and height manually to be closer to 5:4, so that everything would still show up properly -- squares still look square, etc.
I don't think so. Most people will adjust it to fit the borders.
Scintilla wrote:And you mean your LCD monitor's pixels aren't actually square?
Obviously they aren't.
Scintilla wrote:In any case, this isn't an issue with most of the other common resolutions for standard monitors (800x600, 1024x768, 1152x864, 1600x1200), which actually ARE 4:3, so I'd say 4:3 with square pixels is just about the safest you can get.
Agreed. I always did wonder why exists a non 4:3 resolution. Unfortunately nowadays it is very wide spread. And I don't want to think about about the possible PAR of the so called widescreen monitors with their weird resolutions.

Locked

Return to “AviSynth Help”