Results 1 to 10 of 10

Thread: How to make good resize. FAQ

  1. #1
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

    Default How to make good resize. FAQ

    1. Install AviSynth and VirtualDub or VirtualDubMod
    2. Download, unzip and copy plugins and scripts to c:\Program Files\AviSynth 2.5\plugins\
    DOWNLOAD
    3. Find the best DVDrip on bakabt or another trackers (I find Hellsing TV 720x480)
    4. Make *.txt file, open with notepad and write a script as here
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    save as *.avs
    Now open *.avs file with VirtualDub


    5. X2 upsize (720x480->1440x960)
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")


    6. Correct aspect ratio (3:2->4:3):
    1440*3/4=1080
    Code:
    ffvideosource("f:\Anime\Hellsing TV\.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1440,1080)
    7. Remove black borders without breaking aspect ratio:
    1440-8-8=1424
    1424*3/4=1068
    1080-1068=12
    12/2=6
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1440,1080)
    crop(8,6,-8,-6)
    8. Downsize to horizontal 1280 without breaking aspect ratio:
    1280*3/4=960
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1440,1080)
    crop(8,6,-8,-6)
    spline64resize(1280,960)
    9. Crop top and bottom to get 16:9 aspect ratio (1280х960->1280x720):
    960-720=240
    240/2=120
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1440,1080)
    crop(8,6,-8,-6)
    spline64resize(1280,960)
    crop(0,120,-0,-120)


    10. Remove grain, noise and artifacts; clearer lines; remove banding
    Code:
    import("c:\Program Files\AviSynth 2.5\plugins\GradFun2DBmod.avs")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\dfttest.dll")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\gradfun2db.dll")
    
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1440,1080)
    crop(8,6,-8,-6)
    spline64resize(1280,960)
    crop(0,120,-0,-120)
    dfttest(sigma=8.0)
    aWarpSharp2(depth=20)
    Gradfun2dbmod(str=0,radius=1,range=1, adapt=1, temp=20, thr=2)


    11. Before save
    VirtualDub Menu -> Video -> Compression... -> Lagarith Lossless Codec -> Configure
    choose Mode YV12
    check "Use Multithreading"
    uncheck all other
    12. Save as...

    ENCODED EXAMPLE ([email protected] 10bit 28 MB)




    Bonus FAQ:

    1. Opening Video+Audio
    a) mp4/mkv/avi/ogm:
    Code:
    f="f:\Anime\Hellsing TV\Hellsing - 01.mkv"
    a=ffvideosource(f)
    b=ffaudiosource(f)
    AudioDub(a,b)
    or
    Code:
    f="f:\Anime\Hellsing TV\Hellsing - 01.mkv"
    a=DSS2(f)
    b=directshowsource(f, video=false)
    AudioDub(a,b)
    b) uncompressed or lossless avi:
    Code:
    avisource("f:\Anime\Hellsing TV\Hellsing - 01.avi")
    without audio:
    Code:
    avisource("f:\Anime\Hellsing TV\Hellsing - 01.avi", false)
    c) raw:
    Code:
    rawsource("f:\Anime\Hellsing TV\Hellsing - 01.y4m")
    d) lossless FRAPS:
    Code:
    f = "f:\Anime\Hellsing TV\Hellsing - 01.avi"
    a = directshowsource(f) 
    b = directshowsource(f, video=false)
    AudioDub(a,b)
    2. FPS conversion
    a) with deletion or duplication frames
    to 23.976
    Code:
    ChangeFPS(24000,1001)
    to 29.97
    Code:
    ChangeFPS(30000,1001)
    b) without deletion or duplication frames (change video speed)
    to 23.976
    Code:
    AssumeFPS(24000,1001)
    to 29.97
    Code:
    AssumeFPS(30000,1001)
    3. Correct opening HD and FullHD h264 sources (and SD if the video MediaInfo have "Color primaries", "Transfer characteristics", "Matrix coefficients": BT.709)
    Code:
    ffvideosource("f:\Anime\Hellsing TV\Hellsing - 01.mkv")
    ConvertToRGB(matrix="Rec709")
    Last edited by Bill Ein; 01-02-2015 at 07:11 PM.

  2. #2

    Default

    Speak of the devil. Nice job, Haar.

  3. #3
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

    Default

    Quote Originally Posted by milleniummaster18 View Post
    Speak of the devil.
    Sorry for my English
    Quote Originally Posted by milleniummaster18 View Post
    Nice job, Haar.
    Who?

  4. #4

    Default

    Oh, nobody. Ignore that last one, please.

    Nice guide, mate. It's certainly going to be of use for the newcomers.

  5. #5
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

    Default

    Quote Originally Posted by milleniummaster18 View Post
    Nice guide, mate. It's certainly going to be of use for the newcomers.
    I hope Zarxrax will use my guide

  6. #6
    Join Date
    Nov 2010
    Location
    Wish i had a place to return to
    Posts
    8,436

    Default

    Quote Originally Posted by Bill Ein View Post
    Sorry for my English

    Who?
    speaking of the devil is a term used when a person apears infront of a coversation about said person.

    he thought you were someone else

    just to throwing a wrench in the system

    "Be happy"are the words you say, there is no one stronger, no one can replace you.

  7. #7
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

  8. #8
    Join Date
    Nov 2008
    Posts
    987

    Default

    Wrong! Oh god why! You can have an hd 4:3 video! Don't encourage people to crop off perfectly good footage!
    ****!
    'Twas grief enough to think mankind
    All hollow, servile, insincere;
    But worse to trust to my own mind
    And find the same Corruption there.

  9. #9
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

    Default

    Quote Originally Posted by adzman View Post
    Wrong! Oh god why! You can have an hd 4:3 video! Don't encourage people to crop off perfectly good footage!
    ****!
    Bu-u-ull****! 4:3 with black borders looks realy bad with a true 16:9 source in one MEP or AMV. It's ****en ugly mistake to combine different aspects ratio miniatures with just adding black borders. This is the same mistake as the use frame blending for fps conversion.
    Last edited by Bill Ein; 12-26-2014 at 06:19 AM.

  10. #10
    Join Date
    Feb 2011
    Location
    Russia
    Posts
    93

    Default

    Code:
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : [email protected]
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 3 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Duration                                 : 22mn 47s
    Bit rate                                 : 1 934 Kbps
    Nominal bit rate                         : 7 620 Kbps
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 16:9
    Original display aspect ratio            : 3:2
    Frame rate mode                          : Constant
    Frame rate                               : 23.976 fps
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.233
    Stream size                              : 315 MiB (74%)
    Title                                    : 25. Silence
    Writing library                          : x264 core 60 r880M 2389de2
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=5 / rdcmp=psy / brdo=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=7620 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
    Language                                 : Japanese
    Default                                  : Yes
    Forced                                   : No




    Code:
    import("c:\Program Files\AviSynth 2.5\plugins\GradFun2DBmod.avs")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\dfttest.dll")
    LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\gradfun2db.dll")
    
    ffvideosource("f:\Anime\Death Note (DVDRip, 2006)\25. Silence.mkv")
    nnedi3_rpow2(rfactor=2,cshift="spline64resize")
    spline64resize(1280,720)
    dfttest(sigma=8.0)
    aWarpSharp2(depth=16)
    Gradfun2dbmod(str=1,radius=1,range=1, adapt=1, temp=20, thr=2)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •