digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: problem wth resize? (http://www.digitalfaq.com/archives/avisynth/1603-avisynth-problem-wth.html)

jorel 11-17-2002 02:45 AM

Avisynth: problem wth resize?
 
i see this for acident,i forgot to put the resize,(simple chapter)
and it's equal a vob: try this only for test with a single chapter!

[AVISYNTH_Unfilter, NoMoSmoother & Blockbuster] final size 13,6mb
1=LoadPlugin(!Unfilter.dll)
2=Unfilter(^x_value,^y_value)
3=LoadPlugin(!NoMoSmooth.dll)
4=NoMoSmooth()
5=LoadPlugin(!Blockbuster.dll)
6=Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 )
7=Blockbuster( method="sharpen", detail_min=20, detail_max=90,strength=^StrengthValue )
!Unfilter.dll=C:\DVD2SVCD\Dlls\UnFilter.dll
^x_value=15
^y_value=15
!NoMoSmooth.dll=C:\DVD2SVCD\Dlls\NoMoSmooth.dll
!Blockbuster.dll=C:\DVD2SVCD\Dlls\Blockbuster.dll
^StrengthValue=20


the image is fantastic....but when i correct the script,
i see "stairs" in the lines:

[AVISYNTH_BilinearResize, Unfilter, NoMoSmoother & Blockbuster] final size 7,01mb
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Unfilter.dll)
3=Unfilter(^x_value,^y_value)
4=LoadPlugin(!NoMoSmooth.dll)
5=NoMoSmooth()
6=LoadPlugin(!Blockbuster.dll)
7=Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 )
8=Blockbuster( method="sharpen", detail_min=20, detail_max=90,strength=^StrengthValue )
!Unfilter.dll=C:\DVD2SVCD\Dlls\UnFilter.dll
^x_value=15
^y_value=15
!NoMoSmooth.dll=C:\DVD2SVCD\Dlls\NoMoSmooth.dll
!Blockbuster.dll=C:\DVD2SVCD\Dlls\Blockbuster.dll
^StrengthValue=20

my simple conclusion:
the filters are very good(including lankos,peach,sharpen...etc)
when we resize , we get "stairs" in lines,
when not resize ,the image is clear! :wink:

:?: what can we do about this???
any idea,please? :cry:
of course,my english is poor and i have difficulty to explain,right? :wink:

kwag 11-17-2002 03:07 AM

Would this mean that the internal resize in TMPEG is better than the external resize methods :?:
It doesn't sound logical, but I'll do a test.

-kwag

jorel 11-17-2002 03:28 AM

Quote:

Originally Posted by kwag
Would this mean that the internal resize in TMPEG is better than the external resize methods :?:
It doesn't sound logical, but I'll do a test.

-kwag

no Kwag,
the first test(error test)
is without resize :!: :!:(no resize in tmpeg too)

720 x 480

:!:

kwag 11-17-2002 03:45 AM

Quote:

Originally Posted by jorel
Quote:

Originally Posted by kwag
Would this mean that the internal resize in TMPEG is better than the external resize methods :?:
It doesn't sound logical, but I'll do a test.

-kwag

no Kwag,
the first test(error test)
is without resize :!: :!:(no resize in tmpeg too)

720 x 480

:!:

Right, but what template were you using? If you were using the LBR, internally it's resizing to 352x240 for your target.

-kwag

jorel 11-17-2002 04:36 AM

i don't know what i do
 
Kwag write:
Right, but what template were you using? If you were using the LBR, internally it's resizing to 352x240 for your target.
yes,i use lbr.
can i post a total script here that i use to do this? :?:

jorel 11-17-2002 05:01 AM

i redo this and get the same result
 
8O
Kwag i reencode again,compare with original vob,
and see the same quality..
in tmpeg,when encode i see this:

(MPEG-1 720x480 23,976fps CQ_VBR 25)

i use that script ,and the vob has 45.8 mb,
and the encoded has 13 mb (bbMPEG_Muxed_File00)

read this:


[Settings]
Avisynth Setup=Unfilter, NoMoSmoother & Blockbuster
XPos=50
YPos=3
FirstRun=0
UsePVA2SVCD=0
UseDVD2SVCD=1
UseAVI2SVCD=0
UseMPEG1=1
UseMPEG2=0
Convert to Canopus codec=0
Convert to Divx4=0
Use Frameselection=0
New Default Folder=0
DVD2SVCD Level=1
UseDVDRip=1
UsevStrip=0
UseInternalRip=1
Eject DVD=0
iDCT=0
DVD2AVI Pause=0
Luminance Gain=0
Luminance Offset=3
Audio1Downsampling=1
Audio2Downsampling=1
Audio1BitRate=7
Audio2BitRate=9
tooLame Mode=1
Autodetect Azid Gain=1
Folder Structure Source=
Folder Structure Video=
Folder Structure Audio=
Folder Structure Muxed=
Folder Structure Subs=Subs
Intra=8,16,19,22,26,27,29,34,16,19,22,26,27,29,34, 37,19,22,26,27,29,34,37,38,22,26,27,31,36,37,38,40 ,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,2 9,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
NonIntra=16,18,20,22,24,26,28,30,18,20,22,24,26,28 ,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,3 4,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38, 40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44
Matrice Preset=KVCD
Use deafult Matrice=0
LFEDownmixLR6Ch=-3
LFEDownmixLFE6Ch=0
CenterDownmix6Ch=-1
SurroundDownmix6Ch=-1
DynamicCompression6Ch=1
StereoDownmixType6Ch=0
RearChannelFiltering6Ch=0
DialogNorm6Ch=0
LFEDownmixLR2Ch=-3
LFEDownmixLFE2Ch=0
CenterDownmix2Ch=-1
SurroundDownmix2Ch=-1
DynamicCompression2Ch=1
StereoDownmixType2Ch=0
RearChannelFiltering2Ch=0
DialogNorm2Ch=0
No Audio Conversion=0
Flip Vertival=0
Add ResampleAudio=0
Resize To=2
Use CCE=0
Use TMPGEnc=1
CCE Safe Mode=0
NoOfpasses=5
CCE Image Quality=17
CCE Anti noise value=2
CCE Anti noise=0
CBR=0
One Pass VBR=0
Multi Pass VBR=1
RoBa Multi Pass=0
RoBa Visibel=0
CCE Bias=20
CCE Field Order=2
Progressive=1
Auto Intra DC=0
DVD Compliant=0
Restrict auto I frame insertion=0
Close all GOPs=0
Intra DC=2
M GOP=3
MN GOP=5
SEQ Header=1
Constrained Parameter Set=1
TMPGEnc Rate Control Mode=3
TMPGEnc Motion search precision=5
TMPGEnc Field Order=2
Frames pr spread=34
Spread=60
OffsetFixed CQ Value=30
OffsetFixed CQ_VBR Value=25
Use fixed CQ Value=0
DC component precision=0
Output YUV data as Basic YCbCr not CCIR601=0
Use floating point DCT=1
No motion search for still picture part by half pixel=0
Soften block noise=0
Soften Intra=35
Soften NonIntra=35
TMPGEnc GOP I Pictures=1
TMPGEnc GOP P Pictures=18
TMPGEnc GOP B Pictures=2
TMPGEnc SEQ Headers=1
TMPGEnc Max frames in GOP=18
TMPGEnc Close GOPs=0
TMPGEnc Detect Scene Change=0
Enabled Padding=1
TMPGEnc VBVBuffer=40
Dont Delete Files=1
Create VAF=1
QFactor=60
Linear quantizer scale=1
Zigzag scanning order=1
Use2Streams=0
Pri1Audio1=88
Pri1Audio2=139
Pri2Audio1=139
Pri2Audio2=139
Sub1=88
Sub2=139
Sub3=139
Sub4=139
Sub5=139
Sub6=139
Sub7=139
Sub8=139
Azid Gain Offset=6
SubOutputPalette0=clBlack
SubBlendPalette0=0
SubOutputPalette1=clYellow
SubBlendPalette1=15
SubOutputPalette2=$001E1E1E
SubBlendPalette2=15
SubOutputPalette3=clGray
SubBlendPalette3=15
Rip subtitles=0
Min. Delay. Between Subtitles=100
Resize Subtitles=100
SVCD subtitles=0
CVD subtitles=0
Permanent subtitles=1
PAL Y-Pos=-1
NTSC Y-Pos=-1
bbMPEG MPEG1=0
bbMPEG VCD=1
bbMPEG MPEG2=0
bbMPEG SVCD=0
bbMPEG DVD=0
bbMPEG VBR=1
bbMPEG Pad VCD=0
bbMPEG Write PEC=1
bbMPEG Add Scan Offsets=0
bbMPEG Align Sequence Headers=0
bbMPEG Use Private Stream 2=0
bbMPEG Computed Bitrate=1
bbMPEG TimeStamps=0
bbMPEG Pulldown=2
bbMPEG MuxRate=0
bbMPEG Pack Size=2324
bbMPEG Packets Pack=1
bbMPEG Video Buffer=46
bbMPEG Audio 1 Buffer=4
bbMPEG Audio 2 Buffer=4
bbMPEG videoDelay Adjustment=344
bbMPEG audioDelay Adjustment=344
bbMPEG audio1Delay Adjustment=344
Use MPEGAV=0
MinsHigh1=50
MinsHigh2=63
MinsHigh3=102
MinsHigh4=125
MinsHigh5=170
NumCd1=1
NumCd2=1
NumCd3=1
NumCd4=1
NumCd5=1
NumCd6=1
CDSize 1=740
CDSize 2=800
CDSize 3=800
CDSize 4=800
CDSize 5=800
CDSize 6=800
MaxBitrate=1800
MinBitrate=300
MaxAvg=0
MinAvg=1600
Adjust Audio Bitrate=0
Use Min. Avg.=0
Force Film=0
Movie Offset=0
CDOverlap=0
UseCDOverlap=0
FixedChapters=0
DVDChapters=1
PBCType=0
Data Preparer=DVD2SVCD
Use I-Author=0
Use VCDImager=0
No images=1
Use VCDXBuild=0
Length of Chapters=120
Use TitlePicture=0
Use ChangeCD Picture=0
Use LastCD Picture=0
Use EntrySVD=0
Save XML=1
Save Movie Info=1
ProcessPriority=1
SmartDeinterlace Mode=2
SmartDeinterlace Treshold=10
SmartDeinterlace Denoise=1
SmartDeinterlace Blend=0
SmartDeinterlace Fast=1
Edit Avisynth Script file=0
Use CDMage=0
RunPerCDImage=0
RunPerCDImage Params=
RunFinal=0
RunFinal Params=
Automatic Shutdown=0
Anamorphic Aspect=1
TMPGEnc Num of passes=2
Prediction Size=0.95

[Executables]
PVA Executable=
vStrip Executable=
DVD2AVI Executable=C:\DVD2SVCD\DVD2AVI\DVD2AVI.exe
BeSweet Executable=C:\DVD2SVCD\headac3he-0.23aFull\SweetHead.exe
MadPlay Executable=C:\DVD2SVCD\MADPlay\madplay.exe
MPEG51 Executable=
CCE Executable=C:\program files\Custom Technology\Cinema Craft Encoder SP\cctsp.exe
VFAPI Executable=VFAPIConv-EN.exe
TMPGEnc Executable=C:\DVD2SVCD\TMPGEnc\TMPGEnc.exe
Pulldown Executable=C:\DVD2SVCD\Pulldown\pulldown.exe
SubMux Executable=
bbMPEG Executable=C:\DVD2SVCD\bbMPEG\RunbbMPEG.exe
I-Author Executable=
VCDImager Executable=
VCDXBuild Executable=
CDMage Executable=
RunPerCDImage Executable=
RunFinal Executable=
MPG2Dec DLL=C:\DVD2SVCD\MPEG2Dec\MPEG2DEC.dll
InverseTelecine DLL=C:\DVD2SVCD\InverseTelecine\Donald Graft\Decomb.dll
Subtitle DLL=C:\DVD2SVCD\Avisynth Subtitler.dll
BMP Loader DLL=C:\DVD2SVCD\Avisynth BMP Loader.dll
Title Picture=
Change CD Picture=
Last CD Picture=
Dividee MPEG2Dec=C:\DVD2SVCD\MPEG2Dec\MPEG2DEC.dll

[Folders]
PVA Folder=D:\01 Svcd-kvcd\
DVD2AVI Folder=D:\01 Svcd-kvcd\
vStrip Folder=D:\01 Svcd-kvcd\
Audio Folder=D:\01 Svcd-kvcd\
CCE Folder=D:\01 Svcd-kvcd\
TMPGEnc Folder=D:\01 Svcd-kvcd\
Pulldown Folder=D:\01 Svcd-kvcd\
bbMPEG Folder=D:\01 Svcd-kvcd\
I-Author Folder=D:\01 Svcd-kvcd\
Subpictures Folder=D:\01 Svcd-kvcd\Subs

[AVISYNTH_Unfilter, NoMoSmoother & Blockbuster]
0=LoadPlugin(!Unfilter.dll)
1=Unfilter(^x_value,^y_value)
2=LoadPlugin(!NoMoSmooth.dll)
3=NoMoSmooth()
4=LoadPlugin(!Blockbuster.dll)
5=Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 )
6=Blockbuster( method="sharpen", detail_min=20, detail_max=90,strength=^StrengthValue )
!Unfilter.dll=C:\DVD2SVCD\Dlls\UnFilter.dll
^x_value=15
^y_value=15
!NoMoSmooth.dll=C:\DVD2SVCD\Dlls\NoMoSmooth.dll
!Blockbuster.dll=C:\DVD2SVCD\Dlls\Blockbuster.dll
^StrengthValue=20

ps:
:roll:
sorry to post this too long but,i can't explain better than this...
the final file has 720x480 23,976fps!
the image is FANTASTIC!
:wink: :wink: :wink:

SansGrip 11-17-2002 08:46 PM

Re: i redo this and get the same result
 
Quote:

Originally Posted by jorel
sorry to post this too long but,i can't explain better than this...
the final file has 720x480 23,976fps!
the image is FANTASTIC!

My tests with 720x480 at max 2500 produced serious macroblocks all over the place, but I wasn't using a kwag template. I'll have to try it before commenting :)


All times are GMT -5. The time now is 05:52 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.