Avisynth: Tweaking for same compression and quality, but faster?
How could I tweak my .avs that it would have the same compressibility and quality but it would be faster, it´s taking about 15 hours for a 1,5 hour film to encode, here´s 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.58)) mergeluma(blur(0.2)) SpaceDust() TemporalCleaner() Convolution3d(preset="movieHQ") DctFilter(1,1,1,1,1,1,0.5,0) GripBorders() LegalClip() #Sampler(length=24) |
hi CheronAph ( the friend with "it" avatar ) 8O :wink:
with: "GripCrop(width=704, height=576, overscan=2)" 704x576 is too big! :wink: and taking about 15 hours for a 1,5 hour film to encode, is not too slow. what's your cpu? :?: |
I have P3 1 GHz.
Too big, why, the result was 700 MB videofile, CQ was 65! I´m open to any suggestions how to improve the quality! |
Quote:
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) :wink: :) |
Ok, I´ll give it a try!
|
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?
|
Quote:
http://www.kvcd.net and lot more there!!!!! :wink: |
Yes I know where to get them but I don´t see a 480x576 template, I´m sorry if I´m being a dummy again :oops:
|
Quote:
:?: |
I really don´t know, whatever gives me great quality!
|
Quote:
is ntsc or pal? :? |
Pal, and thanks for helping me friend!
|
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 :wink: |
Thanks, I´ll give it a go!
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.