Quantcast Avisynth: I Need Anime Encoding Script - Page 3 - digitalFAQ.com Forums [Archives]
  #41  
10-21-2003, 03:29 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by CheronAph
@ incredible

I don´t get it, I used your script,
480x576 mpeg1
bitrates 64 ~ 3000
lenght 98 minutes
audio 128
CQ 63,160
64-3000????
What do you mean?

Well, first look at the movie. If its a Movie including high action scenes?
Or does it contain almost only calm scenes?
My Movie sample "Rendezvous with Joe Black" does not contain action szenes like StarWars for example thats one advantage for very low bitrate encoding. For "Pet Sementary" I would assume a max of 1900 or 2000.
But anyway ... 98 Minutes are not a lot and we can rise your quality if the quality of the source is good.
What's the condition of your source? good or bad (noisy).
The pic looks already very treated (I can see this in very soften parts of the ladys hair). Thats not a DVD Source right? Seems to be an Avi.

I do determine the my max bitrate of CQ by feeling. But you also can try Kwags advice to take a 20sec sample of the highest "bright" action scene of your movie, encoding it at CQ 90. Open the Sample using BitrateViewer and watch the Birate peak, there you can see how much max. bitrate is really needed and thats the value u set at max Bitrate in CQ Mode. Afterwards do your prediction.
The movie in my samples used a max bitrate of 1800kbit and every scene was fine.

As I see in your script you used ONLY STmedian's spatial settings.
Try also to add a ...

TemporalSoften(1,3,5,3,2) # if source gots less noise or
TemporalSoften(2,5,8,5,2) # if source contains more noise

... after StMedianfilter

And although you got that bad quality the side borders of your encode are too big! Maybe they fit the overscan of your Tv but mine would show some parts of the borders you can see in your sample.

or use a MA script including Deen for spatial noisefiltering instead of StMedian:

Code:
##################################### 
nf = 0 
Mpeg2Source("Your_D2V_Source_Here") 
# 
undot() 
Limiter() 
# asharp(1, 4) # only on good noiseless sources, activating this on bad sources the noise will be boosted even more
GripCrop(Your_GripCrop_Parameters_Here) 
GripSize(resizer="BicubicResize") 
deen("a2d",2,10,15) # the last two values stand for luma and chroma threshold - you can finetune this
MergeChroma(blur(1.50)) 
MergeLuma(blur(0.1)) 
# 
###################################### 
# 
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \ 
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \ 
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") 
# 
###################################### 
# 
GripBorders() 
LetterBox(16,16,16,16) # 16px are macroblock based and enough
Limiter() 
# 
###################################### 
# 
## Functions ### 
function fmin( int f1, int f2) { 
return ( f1<f2 ) ? f1 : f2 
} 
# 
######################################
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #42  
10-21-2003, 03:41 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
The source is an original dvd, bit noisy though!
64 ~ 3000 means min and max bitrate, as it is a horror movie, it´s pretty dark with no high action scenes!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #43  
10-21-2003, 04:37 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
If its dark and doesn't contain high action,
set the min to 270 (or 300) and the max to 1800 (as I do assume) .... use the MA-Deen Script as shown above ... and try to encode at "motion est prec." High (slow).
Do your "prediction only" using CQ matic, rename the suffix of CQmatic's Testfile to .m1v, open it into Vdub ... and tell me how does it look and what CQ value did come out of your prediction.
Reply With Quote
  #44  
10-21-2003, 05:06 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
I did with temporalsoft, 704x576 min 300 max 1800 CQ 54 and it came out like this,
480x576 doesn´t even work on my standalone, 544x576 does!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #45  
10-21-2003, 06:14 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by CheronAph
I did with temporalsoft, 704x576 min 300 max 1800 CQ 54 and it came out like this,
480x576 doesn´t even work on my standalone, 544x576 does!
You can see by lowerng the bitrate value even at 704x576 it won't hurt the quality (in this scene!) and still a CQ of 54 comes out.

BUT ???
I don't know what you're doing cause I thought we're talking about an encoded 480x576 Image and now you send an encoded 704x576. And if I understand you right, you treated it by using Temp.Soften only??

If 480x576 using mpeg1 won't work on your standalone give mpeg2 @ 480x576 a try! There are some players with problems playing back 480x576 @ mpeg1. Second: 544x576??? I thought 528x576 would be the next higher size for KVCD?

So first .... post exactly the same pic/frame and maybe one from another scene of your source UNFILTERED!!
Using this script and nothing else, no encoding, just oben this .avs in Vdub and do a screenshot .... so I can see in which condition is the untreated original!:

Code:
######## Just previewing the movie letterboxed ########

Mpeg2Source("D:\DVDtoKVCD\vts_01.d2v") 
GripCrop(720, 576)  
GripSize(resizer="BicubicResize")  
GripBorders()

#########################################
Reply With Quote
  #46  
10-21-2003, 11:00 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
528x576 doesn´t work either, I think I´ve already tried them with mpeg2!
I´ll post the pics later!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #47  
10-21-2003, 11:14 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Not exatly the same but here are 2 pics,

__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #48  
10-21-2003, 11:25 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Oh I see, I forgot the "source_anamorphic= false" argument , but no matter.
Did you try the MA script including Deen I posted above?
Reply With Quote
  #49  
10-21-2003, 11:41 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Not yet, I´ll try it a little later tonight!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #50  
10-21-2003, 12:04 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
704x576, the deen script, CQ 56,894,
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #51  
10-21-2003, 12:22 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
CheronAph, I think this is getting a bit confused cause it seems that you do a prediction of a 704x576 stream to fit on ONE CDr80. My stream was encoded by using 480x576 and this means a big difference in CQ value and Quality when doing a prediction refering to one CD-R80!
Shure you received less CQ like in your last prediction, at least try to encode at 544x576 which are accepted by your player OR try 480x576 / mpeg2.
If you still want to encode your movie at 704x576 so encode it using two disks so it will bring you a higher CQ and quality.

And I see rendalunit is right that this Thread is going out of subject "anime".
Cause the comparisons will go further. Ok I started this by posting my images but I recommend that you open a new thread in the "KVCD Success/Failure" topic so we can use that new/right to come to a solution. I think thats a good Idea.
ok?
Reply With Quote
  #52  
10-21-2003, 12:32 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
I was just trying to compare the scripts, after all, my movie 90 mins shorter.
I´ll make a sample with 544x576 and open a new thread!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Probleme script anime tamahome Conversion et d'Encodage de Vidéo (Français) 9 11-14-2005 10:45 AM
Best Anime Script in Avisynth? hoyahoya Avisynth Scripting 1 09-13-2004 09:49 AM
Avisynth: Anyone tried encoding uperbit DVD with MA script? audioslave Avisynth Scripting 4 07-04-2003 10:01 AM
Avisynth: Anime/Cartoon with 2.5x script? TemplateAVS Avisynth Scripting 2 06-17-2003 03:27 PM
KVCD: encoding an anime takes forever? PToN Video Encoding and Conversion 9 06-07-2002 01:05 AM

Thread Tools



 
All times are GMT -5. The time now is 09:17 PM  —  vBulletin İ Jelsoft Enterprises Ltd