Scripting troubles

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Zwill
Joined: Wed Jun 27, 2007 11:50 am
Status: Doing stuff ;\
Org Profile

Scripting troubles

Post by Zwill » Tue Jun 17, 2008 4:15 pm

l'm having trouble with image quality when l render in photoshop then use the psds in Vegas.

First of all, script:

AVISource("C:\Users\user\Desktop\My Amvs\CCS ~ Nights\CCS ~ NightsNEW.avi")
ConvertToYv12
deen("a3d",3,4,4)
fluxsmoothST()
fastlinedarken()
limitedsharpen()
mftoon(Strength=128)
removegrain(mode=1)
sangnom()
Telecide(order=1,guide=1) <-- Tried it out (Good?)
Decimate(cycle=5, mode=2) <-- Tried it out (Good?)
Crop(8,0,-8,0)
LanczosResize(720,480)

Is it overkill?

Image:

I don't have to tell you how bad that turned out as you can see at first glance.

Image

Problem:

Her lips turned out like that even when l use the filter sangnom(). Anyway to clear that up?
Image

Problem(sorry to take in VLC):

I circled the problem, a few lines just keep flashing on and off (Happens in screen shot above in her eye lip part). I goes black then white and keeps repeating. You can also see it on Sakura's coat near the buttons to the right, there's 2 blurred spots.

Image

Image

This video is still incomplete but wanted to see what quality it would come out when l rendered and made it mp4 and this was the result with that script.

Mosc
Joined: Mon Oct 30, 2006 8:13 am
Org Profile

Post by Mosc » Tue Jun 17, 2008 5:26 pm

You should be applying IVTC before doing any other filtering. I prefer the TFM/TDecimate combo myself, but Telecide/Decimate should work. And yeah, it's definitely overkill. Could you provide a screenshot of the source, or better yet, a sample? Also, why do you resize back to 720x480 after cropping to 704x480?

User avatar
Zwill
Joined: Wed Jun 27, 2007 11:50 am
Status: Doing stuff ;\
Org Profile

Post by Zwill » Tue Jun 17, 2008 5:43 pm

Mosc wrote:You should be applying IVTC before doing any other filtering. I prefer the TFM/TDecimate combo myself, but Telecide/Decimate should work. And yeah, it's definitely overkill. Could you provide a screenshot of the source, or better yet, a sample? Also, why do you resize back to 720x480 after cropping to 704x480?
wow, that was wrong. It's suppose to be 848/480.

Image

That's the sample and l just realize l did overdue it since the eye lip piece is not screwed up there. The problem must of been when l tried to get rid of the interlacing and it left that issue.

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Wed Jun 18, 2008 1:11 am

The order of your filters makes a pretty big difference. [ex. you can't effectively deinterlace/deblock/sangnom something that has already been smoothed over]
try to follow something like this:
Deinterlace>deblock>temporal/spacial denoise>derainbow>color/level correction>resize>smoother>sharpener

[anyone please correct me if I'm wrong]

You should try to only use one of each, if possible. So just rearranging what you have:
AVISource()
ConvertToYv12()
Telecide(order=1,guide=1) <-- Tried it out (Good?)
Decimate(cycle=5, mode=2) <-- Tried it out (Good?)
fluxsmoothST()
removegrain(mode=1) #may or may not need this second spacial denoiser
sangnom() #may not be needed if you Telecide() better [maybe]
Crop(8,0,-8,0)
LanczosResize(720,480)
deen() #lower the settings if there's a lot of detail in the animation
mftoon(Strength=128) #same as above
fastlinedarken()
limitedsharpen() # if mftoon wasn't enough

848x480 will probably unnecessarily add to the filesize. Personally I like 768x432 since it has about the same area as 720x480. Or just leave it as 720x480, and set the aspect ratio to 16:9, and you will retain all the quality without bloating the file size. Hope this helps.

~Phan
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

User avatar
Zwill
Joined: Wed Jun 27, 2007 11:50 am
Status: Doing stuff ;\
Org Profile

Post by Zwill » Wed Jun 18, 2008 5:30 am

Phantasmagoriat wrote:The order of your filters makes a pretty big difference. [ex. you can't effectively deinterlace/deblock/sangnom something that has already been smoothed over]
try to follow something like this:
Deinterlace>deblock>temporal/spacial denoise>derainbow>color/level correction>resize>smoother>sharpener

[anyone please correct me if I'm wrong]

You should try to only use one of each, if possible. So just rearranging what you have:
AVISource()
ConvertToYv12()
Telecide(order=1,guide=1) <-- Tried it out (Good?)
Decimate(cycle=5, mode=2) <-- Tried it out (Good?)
fluxsmoothST()
removegrain(mode=1) #may or may not need this second spacial denoiser
sangnom() #may not be needed if you Telecide() better [maybe]
Crop(8,0,-8,0)
LanczosResize(720,480)
deen() #lower the settings if there's a lot of detail in the animation
mftoon(Strength=128) #same as above
fastlinedarken()
limitedsharpen() # if mftoon wasn't enough

848x480 will probably unnecessarily add to the filesize. Personally I like 768x432 since it has about the same area as 720x480. Or just leave it as 720x480, and set the aspect ratio to 16:9, and you will retain all the quality without bloating the file size. Hope this helps.

~Phan
Yea, l got rid of Sangnom(), it caused the eye problem.

The picture on first post in still like that but l could always switch if it stays like that.

I have one problem though, through the whole video it looks like running noise and thats whats making the whole video wierd. It even looks like the whole video is semi moving since it goes along edges and stuff.

Current:

AVISource("C:\Users\user\Desktop\My Amvs\CCS ~ Nights\CCS ~ NightsNEW.avi")
ConvertToYv12
Telecide(order=1,guide=1)
Decimate(cycle=5, mode=2)
fluxsmoothST()
removegrain(mode=1)
Crop(8,0,-8,0)
LanczosResize(848,480)
fastlinedarken()
limitedsharpen()
mftoon(Strength=128)
deen("a3d",3,4,4)

User avatar
Zwill
Joined: Wed Jun 27, 2007 11:50 am
Status: Doing stuff ;\
Org Profile

Post by Zwill » Wed Jun 18, 2008 6:09 am

I downloaded DeNoise() but whenever l use it, it errors and asks me to specify. Wasnt there a RemoveNoise() download to? I cant seem to find it though.

Mosc
Joined: Mon Oct 30, 2006 8:13 am
Org Profile

Post by Mosc » Wed Jun 18, 2008 6:31 am

Random notes:
  • Be more specific. What is this DeNoise you're talking about, where did you download it, what does the error say exactly, and where did you hear about RemoveNoise?
  • RemoveGrain(mode=1) is far too subtle to have any effect alongside FluxSmooth and Deen.
  • Don't FastLineDarken and mftoon do pretty much the same thing? Either way I don't like the effect (look at the chin in your very first screenshot).
  • LimitedSharpenFaster might be faster than LimitedSharpen.
  • Upsizing to 848x480 makes no sense, just keep it at 704x480 and work from there.
  • Perhaps you should crop off 2 pixels from the top and 4 pixels from the bottom, black bars and fuzzy pixels are bad for you.
  • Don't denoise after sharpening.
  • I don't know what running noise is, please provide a sample.

User avatar
JaddziaDax
Crazy Cat Lady!
Joined: Tue Mar 16, 2004 6:25 am
Status: I live?
Location: Somewhere I think O.o
Contact:
Org Profile

Post by JaddziaDax » Wed Jun 18, 2008 6:31 am

those look worse than the bootlegs I used to have @_@

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Wed Jun 18, 2008 12:04 pm

Zwill wrote:I downloaded DeNoise() but whenever l use it, it errors and asks me to specify. Wasnt there a RemoveNoise() download to? I cant seem to find it though.
I think you misinterpreted what I meant when I said this:
Deinterlace>deblock>temporal/spacial denoise>derainbow>color/level correction>resize>smoother>sharpener

Those are type of filters you should do in that order, not specific filters.
You should know what each of them does so that you can order them better.
ex.)
limitedsharpen() is a sharpening filter, so it would be used last.
[It doesn't makes sense to sharpen an image, then destroy the sharpness by smoothing with deen()]

If you haven't come across these:
http://www.animemusicvideos.org/guides/ ... tqual.html
http://www.animemusicvideos.org/guides/ ... tqual.html

and remember, filtering shouldn't be overly noticeable. If it is, it's probably overfiltered.
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

User avatar
Zwill
Joined: Wed Jun 27, 2007 11:50 am
Status: Doing stuff ;\
Org Profile

Post by Zwill » Wed Jul 02, 2008 4:27 am

I'm bumping this because l need more help.

It seems that this bootleg was encoded differently per disc.

I decided to go the D2v way and make a script for it and this is what it turned out to be. The problem is the cutting process now takes forever. Could You just take some out and then make them for the final script without ruining the overall picture? Below is what l have and the TFM and Tdecimate get rid of the eye and missing lines.

[Mpeg2Source]
converttoyv12(interlaced=true)
TFM(d2v="File.d2v", order=-1,pp=7,slow=2,mode=5)
tdecimate()
SDDeRainbow()
tweak(sat=1.2)
deen("a3d",3,5,5)
crop (16,16,-16,-16) <-- Fix later
LanczosResize(640,480)
fluxsmoothST()
Mftoon(Strength=60)
FastLineDarken(strength=96,thinning=0)


Just a example of what l am using. Any help?

Locked

Return to “AviSynth Help”