Quantcast Avisynth: Tweaking for Same Compression and Quality, but Faster? - digitalFAQ.com Forums [Archives]
  #1  
03-03-2003, 06:56 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
How could I tweak my .avs that it would have the same compressibility and quality but it would be faster, its taking about 15 hours for a 1,5 hour film to encode, heres my script,

LoadPlugin("E:\KVCD Converting\Filters\Mpeg2dec.dll")
LoadPlugin("E:\KVCD Converting\Filters\GripFit_Preview.dll")
LoadPlugin("E:\KVCD Converting\Filters\LegalClip.dll")
LoadPlugin("E:\KVCD Converting\Filters\Sampler.dll")
LoadPlugin("E:\KVCD Converting\Filters\convolution3d")
LoadPlugin("E:\KVCD Converting\Filters\DustV5.dll")
LoadPlugin("E:\KVCD Converting\Filters\TemporalCleaner.dll")
LoadPlugin("E:\KVCD Converting\Filters\DctFilter_YUY2.dll")

avisource("E:\-=[ CACHE ]=-\Reign_of_Fire_(2002).XviD.DMT.ShareReactor.avi")
ConvertToYUY2()
LegalClip()

GripCrop(width=704, height=576, overscan=2)
GripSize(resizer="lanczosresize")

mergechroma(blur(1.5)
mergeluma(blur(0.2))
SpaceDust()
TemporalCleaner()
Convolution3d(preset="movieHQ")
DctFilter(1,1,1,1,1,1,0.5,0)

GripBorders()
LegalClip()
#Sampler(length=24)
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
  #2  
03-04-2003, 02:27 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
hi CheronAph ( the friend with "it" avatar )

with:
"GripCrop(width=704, height=576, overscan=2)"
704x576 is too big!
and taking about 15 hours for a 1,5 hour film to encode,
is not too slow.

what's your cpu?
Reply With Quote
  #3  
03-04-2003, 03:16 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 have P3 1 GHz.
Too big, why, the result was 700 MB videofile, CQ was 65!
Im open to any suggestions how to improve the quality!
Reply With Quote
  #4  
03-04-2003, 03:53 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
I have P3 1 GHz.
Too big, why, the result was 700 MB videofile, CQ was 65!
Im open to any suggestions how to improve the quality!
700 mb videofile with CQ 65 : good!

why is too big?
the size.... 704x576 is cool but is too big (i think)

P3 1 GHz :
with p3 1 ghz and this size(704x576)
it would not be much faster (15 hours).

if you want improve time and got good quality too
change to 480x480/576 or better
352x480/576....the time to encode will be short and
with more CQ you got the size(700mb)


Reply With Quote
  #5  
03-04-2003, 06:25 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
Ok, Ill give it a try!
Reply With Quote
  #6  
03-09-2003, 10:59 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
Where do I get this 480x576 template or will I use another template and rezise it in the script somehow, can you give me an example?
Reply With Quote
  #7  
03-09-2003, 11:04 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
Where do I get this 480x576 template or will I use another template and rezise it in the script somehow, can you give me an example?
don't you know where are all templates?

http://www.kvcd.net

and lot more there!!!!!
Reply With Quote
  #8  
03-09-2003, 11: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
Yes I know where to get them but I dont see a 480x576 template, Im sorry if Im being a dummy again
Reply With Quote
  #9  
03-09-2003, 11:11 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
Yes I know where to get them but I dont see a 480x576 template, Im sorry if Im being a dummy again
what template do you want to change to 480x576 ?
Reply With Quote
  #10  
03-09-2003, 11:13 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 really dont know, whatever gives me great quality!
Reply With Quote
  #11  
03-09-2003, 11:16 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
I really dont know, whatever gives me great quality!
one more question,i forgot

is ntsc or pal?
Reply With Quote
  #12  
03-09-2003, 11:18 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
Pal, and thanks for helping me friend!
Reply With Quote
  #13  
03-09-2003, 11:52 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
CheronAph,
this is the kvcdx3mpeg1 528x576pal original Kwag.

i only change to 480x576,ok?

open your notepad,copy and paste and save as:

KVCDx3MPEG1-PAL 480x576.mcf

easy?
--------------------------------------------------------------------------------------

object TMPEGConfigFile
MPEG.Text = ''
MPEG.WizardCategoryName = ''
MPEG.WizardSubFormatName = ''
MPEG.WizardCaption = ''
MPEG.WizardDescription = ''
MPEG.WizardTargetMedia = MPEGConfig_TargetMediaType_Unknown
MPEG.WizardAutoCalcVideoBitRate = False
MPEG.WizardAutoChooseList.EnableVideoSize = False
MPEG.WizardAutoChooseList.VideoSize = <
item
MinVideoBitRate = 0
Width = 240
Height = 480
VideoEncodeMode = MPEGVideoEncoder_VideoEncodeMode_Progressive_32Pul ldown
FrameRate = 1
AspectRatio = 2
end
item
MinVideoBitRate = 1000000
Width = 352
Height = 480
VideoEncodeMode = MPEGVideoEncoder_VideoEncodeMode_Progressive_32Pul ldown
FrameRate = 1
AspectRatio = 2
end>
MPEG.WizardAutoChooseList.EnableVideoGOP = False
MPEG.WizardAutoChooseList.VideoGOP = <
item
MinVideoBitRate = 0
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 700000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 800000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 900000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1000000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1100000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 25
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1200000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 23
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1300000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 21
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1400000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 18
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1500000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 15
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1600000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 12
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1700000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 10
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1800000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 11
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 1900000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 10
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 2000000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 9
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 2100000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 8
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 2200000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 7
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 2300000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 6
GOP_B_FrameCount = 2
end
item
MinVideoBitRate = 2400000
GOP_I_FrameCount = 1
GOP_P_FrameCount = 5
GOP_B_FrameCount = 2
end>
MPEG.OutputStreamType = MPEG_OutputStreamType_VideoOnly
MPEG.OutputStreamType_ReadOnly = False
MPEG.Video.StreamType = MPEGVideoEncoder_StreamType_MPEG1
MPEG.Video.StreamType_ReadOnly = False
MPEG.Video.Width = 480
MPEG.Video.Width_ReadOnly = False
MPEG.Video.Height = 576
MPEG.Video.Height_ReadOnly = False
MPEG.Video.YUVFormat = 1
MPEG.Video.YUVFormat_ReadOnly = False
MPEG.Video.DC_prec = 0
MPEG.Video.DC_prec_ReadOnly = False
MPEG.Video.VideoEncodeMode = MPEGVideoEncoder_VideoEncodeMode_Progressive
MPEG.Video.VideoEncodeMode_ReadOnly = False
MPEG.Video.FrameRate = 3
MPEG.Video.FrameRate_ReadOnly = False
MPEG.Video.AspectRatio = 8
MPEG.Video.AspectRatio_ReadOnly = False
MPEG.Video.RateControlMode = MPEGVideoEncoder_RateControlMode_CQ
MPEG.Video.RateControlMode_ReadOnly = False
MPEG.Video.MaxBitRate = 0
MPEG.Video.MaxBitRate_ReadOnly = False
MPEG.Video.MinBitRate = 0
MPEG.Video.MinBitRate_ReadOnly = False
MPEG.Video.MinAvgBitRate = 0
MPEG.Video.MinAvgBitRate_ReadOnly = False
MPEG.Video.CBR_BitRate = 0
MPEG.Video.VBR_MultipassVBRAlgorithm = MPEGVideoEncoder_MultipassVBRAlgorithm_MultipassCQ
MPEG.Video.VBR_AvgBitRate = 0
MPEG.Video.VBR_MaxBitRate = 0
MPEG.Video.VBR_MinBitRate = 0
MPEG.Video.VBR_MaxPassCount = 2
MPEG.Video.VBR_Quality_P = 0
MPEG.Video.VBR_Quality_B = 0
MPEG.Video.VBR_EnablePadding = False
MPEG.Video.MVBR_MaxBitRate = 0
MPEG.Video.MVBR_MinBitRate = 0
MPEG.Video.MVBR_Quality_P = 0
MPEG.Video.MVBR_Quality_B = 0
MPEG.Video.MVBR_EnablePadding = False
MPEG.Video.AVBR_Quality = 0
MPEG.Video.AVBR_MaxBitRate = 0
MPEG.Video.AVBR_MinBitRate = 0
MPEG.Video.AVBR_EnablePadding = True
MPEG.Video.CQ_Quality = 60
MPEG.Video.CQ_Quality_P = 0
MPEG.Video.CQ_Quality_B = 0
MPEG.Video.CQ_MaxBitRate = 2500000
MPEG.Video.CQ_MinBitRate = 300000
MPEG.Video.CQ_EnablePadding = True
MPEG.Video.VBVBufferSize = 40960
MPEG.Video.VBVBufferSize_ReadOnly = False
MPEG.Video.GOP_SeqHeaderInterval = 1
MPEG.Video.GOP_SeqHeaderInterval_ReadOnly = True
MPEG.Video.GOP_I_FrameCount = 1
MPEG.Video.GOP_I_FrameCount_ReadOnly = True
MPEG.Video.GOP_P_FrameCount = 5823
MPEG.Video.GOP_P_FrameCount_ReadOnly = True
MPEG.Video.GOP_B_FrameCount = 2
MPEG.Video.GOP_B_FrameCount_ReadOnly = True
MPEG.Video.GOP_BitStreamForEdit = False
MPEG.Video.GOP_BitStreamForEdit_ReadOnly = False
MPEG.Video.GOP_MaxFrameCount = 24
MPEG.Video.GOP_MaxFrameCount_ReadOnly = True
MPEG.Video.QuantizeMatrix_Intra_ReadOnly = False
MPEG.Video.QuantizeMatrix_NonIntra_ReadOnly = False
MPEG.Video.Profile = 4
MPEG.Video.Profile_ReadOnly = False
MPEG.Video.Level = 8
MPEG.Video.Level_ReadOnly = False
MPEG.Video.VideoFormat = 2
MPEG.Video.VideoFormat_ReadOnly = False
MPEG.Video.DisplayWidth = 0
MPEG.Video.DisplayWidth_ReadOnly = False
MPEG.Video.DisplayHeight = 0
MPEG.Video.DisplayHeight_ReadOnly = False
MPEG.Video.MotionSearchSpeed = MPEGVideoEncoder_MotionSearchSpeed_Slow
MPEG.Video.MotionSearch_AlwaysHalfPel = True
MPEG.Video.UseFloatDCT = True
MPEG.Video.QuantizeMode = False
MPEG.Video.QuantizeModeVal_Intra = 0
MPEG.Video.QuantizeModeVal_NonIntra = 0
MPEG.Video.YUVBasicYCbCr = False
MPEG.Video.QuantizeMatrix_Intra = {
08090C161A1B1D22090A0E1A1B1D22250C0E121B1D22252616 1A1B1F24252628
1A1B1D24272628301B1D22252628303A1D22252628303A4522 252628303A454F}
MPEG.Video.QuantizeMatrix_NonIntra = {
10121416181A1C1E121416181A1C1E201416181A1C1E202216 181A1E20202224
181A1C20222224261A1C1E20222426281C1E202224262A2A1E 20222426282A2C}
MPEG.Audio.StreamType = MPEGAudioEncoder_StreamType_MPEG1_Layer2
MPEG.Audio.StreamType_ReadOnly = False
MPEG.Audio.SamplingFrequency = 44100
MPEG.Audio.SamplingFrequency_ReadOnly = False
MPEG.Audio.ChannelMode = 2
MPEG.Audio.ChannelMode_ReadOnly = False
MPEG.Audio.CantUseMono = False
MPEG.Audio.BitRate = 128000
MPEG.Audio.BitRate_ReadOnly = False
MPEG.Audio.CalcCRC = False
MPEG.Audio.CalcCRC_ReadOnly = False
MPEG.Audio.OriginalFlag = False
MPEG.Audio.OriginalFlag_ReadOnly = False
MPEG.Audio.CopyrightFlag = False
MPEG.Audio.CopyrightFlag_ReadOnly = False
MPEG.Audio.PrivateFlag = False
MPEG.Audio.PrivateFlag_ReadOnly = False
MPEG.Audio.EmphasisType = 0
MPEG.Audio.EmphasisType_ReadOnly = False
MPEG.System.StreamType = MPEGSystemEncoder_StreamType_MPEG1_VideoCD_Illegal
MPEG.System.StreamType_ReadOnly = False
MPEG.System.EnableCommentText = False
MPEG.System.CommentText = ''
end

--------------------------------------------------------------------------------------
is easy to change the resolution,and you can do it easy in all templates.
see this :

MPEG.Video.Width = 480

before i change the resolution was:

MPEG.Video.Width = 528
Reply With Quote
  #14  
03-09-2003, 11:56 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
Thanks, Ill give it a go!
__________________
CHERONAPH
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: New compression filters? tengo6dedos Avisynth Scripting 17 04-27-2008 02:56 PM
Is this a good Avisynth script for compression? Quality? Luciano Cabrera Avisynth Scripting 3 03-31-2004 04:53 PM
Avisynth: Motion adaptive tweaking of HybridFupp? Abond Avisynth Scripting 8 03-31-2004 04:49 PM
Avisynth: Great Quality And Great Compression? Jellygoose Avisynth Scripting 13 02-16-2004 11:18 AM
KVCD: Faster Encoding, almost the same quality? digitalize Video Encoding and Conversion 47 09-17-2003 11:17 AM

Thread Tools



 
All times are GMT -5. The time now is 08:05 PM  —  vBulletin Jelsoft Enterprises Ltd