VideoHelp Forum




+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 69 of 69
  1. then the error I have is ColorMatrix: input to filter must be YV12 OR YUY2.

    So what i did was add 'ConvertToYUY2' just before ColorMatrix line and script opens up.

    this is what I have to do to open script:
    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")ConvertToYV16
    assumeTFF()
    QTGMC()
    crop(8,2,-12,-8)
    ConvertToYUY2
    Colormatrix("Rec.601->Rec.709")
    ConverttoYV16().Temporaldegrain2()
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    
    Prefetch(5)
    Quote Quote  
  2. Looks like you have outdated versions somewhere (maybe QTGMC or its dependencies). So try this
    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")
    ConvertToYV16(interlaced=true)
    assumeTFF()
    QTGMC()
    crop(8,2,-12,-8)
    ConvertToYUY2()
    Colormatrix("Rec.601->Rec.709")
    #ConverttoYV16().Temporaldegrain2()  #enable by removing the # at the beginning of the line, but will slow your script down
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    
    Prefetch(5)
    Quote Quote  
  3. Originally Posted by Sharc View Post
    Looks like you have outdated versions somewhere (maybe QTGMC or its dependencies). So try this
    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")
    ConvertToYV16(interlaced=true)
    assumeTFF()
    QTGMC()
    crop(8,2,-12,-8)
    ConvertToYUY2()
    Colormatrix("Rec.601->Rec.709")
    #ConverttoYV16().Temporaldegrain2()  #enable by removing the # at the beginning of the line, but will slow your script down
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    
    Prefetch(5)
    Yeah that worked. Thanks Sharc. Only issue is I get around 8fps when encoding.
    Quote Quote  
  4. Originally Posted by Akuma786 View Post
    Yeah that worked. Thanks Sharc. Only issue is I get around 8fps when encoding.
    The Tempraldegrain2 filter is CPU demanding. Leave it away, or if you want to keep it you could try QTGMC(preset="fast") in line 4 to gain some time.
    Quote Quote  
  5. If i split script into 2 parts and in part 1 keep upto QTGMC, I'm getting 90fps when outputting to HUFF 422 and then in 2nd part of script i use the rest of script I get around 23fps.

    script 1:
    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")
    ConvertToYV16(interlaced=true)
    assumeTFF()
    QTGMC()
    
    
    prefetch(24)
    script 2:
    Code:
    AVISource("E:\zee simplified QTGMC.avi")
    
    
    crop(8,2,-12,-8)
    ConvertToYUY2()
    Colormatrix("Rec.601->Rec.709")
    ConverttoYV16().Temporaldegrain2(degrainTR=3)  #enable by removing the # at the beginning of the line, but will slow your script down
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    cas(1.0)
    
    
    Prefetch(24)
    will it be okay to process it like this ?
    Quote Quote  
  6. Originally Posted by Akuma786 View Post
    If i split script into 2 parts and in part 1 keep upto QTGMC, I'm getting 90fps when outputting to HUFF 422 and then in 2nd part of script i use the rest of script I get around 23fps.

    script 1:
    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")
    ConvertToYV16(interlaced=true)
    assumeTFF()
    QTGMC()
    
    
    prefetch(24)
    Should be ok.
    You can also try to optimize the prefetch(xx) in the original script.

    script 2:
    Code:
    AVISource("E:\zee simplified QTGMC.avi")
    
    
    crop(8,2,-12,-8)
    ConvertToYUY2()
    Colormatrix("Rec.601->Rec.709")
    ConverttoYV16().Temporaldegrain2(degrainTR=3)  #enable by removing the # at the beginning of the line, but will slow your script down
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    cas(1.0)
    
    
    Prefetch(24)
    will it be okay to process it like this ?
    Should be ok. You can also try to optimize the Prefetch(xx) in the original script.
    Quote Quote  
  7. Okay, so as suggested I used the whole script this time rather than in parts but with Prefetch(24) than Prefetch(5) and its made a difference. I'm now getting around 19 - 22fps. Thanks Sharc, I appreciate your guidnace and talking me through it all.

    this is the script I'm now using:

    Code:
    AVISource("E:\Capture Files RAW\Zishan Birthday.avi")
    ConvertToYV16(interlaced=true)
    assumeTFF()
    QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)
    crop(8,2,-12,-8)
    ConvertToYUY2()
    Colormatrix("Rec.601->Rec.709")
    ConverttoYV16().Temporaldegrain2(degrainTR=3)  #enable by removing the # at the beginning of the line, but will slow your script down
    addborders(2,4,2,6)
    nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    cas(1.0)
    
    
    Prefetch(24)
    this is the final mp4: https://easyupload.io/x2v6yr
    Last edited by Akuma786; 3rd Feb 2025 at 13:05. Reason: added mp4 file
    Quote Quote  
  8. @Akuma786 You may have an easier time by simply using Selur Hybrid to do the enhancements.
    Quote Quote  
  9. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Don't use AvsPmod. Use VirtualDub. Or ffmpeg to convert to mp4/mkv.
    And personally I would remove the line with "addborders" and I recalculate the values ​​for nnedi3. You don't need it at all, especially since you're resize clip.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!