VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 45
Thread
  1. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Hello,

    Can you please point me the kind of filters and a script to achieve this kind of processing?
    The only thing that I know is that it was done with avisynth filtering.

    I like the color tweak that was made, the denoising which removed all the grain and possible artifacts, the darker lines and the sharpening.

    Can anyone help me to "build" a script to achieve something similar?

    Thanks,

    PS: I want to achieve this kind of processing on the anime Saint Seiya, which i have the original BD's. Here is a sample. It lacks maybe brighter colors? outside scenes?
    Image Attached Thumbnails Click image for larger version

Name:	vlcsnap-2021-03-30-19h02m08s887.png
Views:	21
Size:	789.3 KB
ID:	58132  

    Click image for larger version

Name:	vlcsnap-2021-03-30-19h02m18s339.png
Views:	17
Size:	1.52 MB
ID:	58133  

    Click image for larger version

Name:	vlcsnap-2021-03-30-19h02m24s113.png
Views:	16
Size:	923.4 KB
ID:	58134  

    Image Attached Files
    Last edited by david.dgc; 30th Mar 2021 at 13:05.
    Quote Quote  
  2. Personally I think Saint Seiya looks fine, but the BD content looks like someone used aWarpSharp/aWarphSharp2 and/or Anime4k on it. (Personally I thing the DB stuff looks horrible due to over-filtering,...)
    Old, but still might be interesting: https://www.aquilinestudios.org/avsfilters/sharpeners.html

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by Selur View Post
    Personally I think Saint Seiya looks fine, but the BD content looks like someone used aWarpSharp/aWarphSharp2 and/or Anime4k on it. (Personally I thing the DB stuff looks horrible due to over-filtering,...)
    Old, but still might be interesting: https://www.aquilinestudios.org/avsfilters/sharpeners.html

    Cu Selur
    Thank you for reply,

    What i like on DragonBall screenshots, is the color tweak that allowed to remove that yellow/green tone that is common on old anime.
    I like the sharpness and the denoise (maybe too much detail was lost on the rear plan? Is it possible to do some more damage control?)
    Darker lines are great too.
    I know that my "taste" on the filtering will certainly not please all of you, i respect that.

    Can you help me to create a avs script to try ?
    Quote Quote  
  4. Here's what a simple:
    Code:
    ColorYUV(levels="TV->PC")
    does:

    which might be what you want,... (lift half: original, right half: filtered)

    Here's the whole script I used to look at the color effect:
    Code:
    ClearAutoloadDirs()
    SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
    LoadPlugin("I:\Hybrid\32bit\AVISYN~1\DGDecodeNV.dll")
    
    # loading source: C:\Users\Selur\Desktop\Saint Seiya BD2_t08 (1).mkv
    #  color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
    Source = DGSource(dgi="E:\Temp\mkv_ff384ea56c802994b1fd2c66afb06476_853323747.dgi",fieldop=2)
    # current resolution: 1920x1080
    
    # filtering
    
    # color modifications
    SourceFiltered = Source
    SourceFiltered = SourceFiltered.ColorYUV(levels="TV->PC")
    
    # adjust color to RGB32 (for preview)
    SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="PC.709")
    # adjust color to RGB32 (for preview)
    Source = Source.ConvertToRGB32(matrix="PC.709")
    
    # stacking horizontal for filter split-preview
    Source = Source.Crop(0,0,960,1080)
    SourceFiltered = SourceFiltered.Crop(960,0,960,1080)
    StackHorizontal(Source, SourceFiltered)
    
    PreFetch(8)
    
    # setting output fps to 23.976fps
    AssumeFPS(24000,1001)
    
    #  output: color sampling RGB32@8, matrix: bt709, scantyp: progressive, luminance scale: limited
    return last
    .. yellow/green tone ..
    is often related to tv<>pc luma handling,..



    Cu Selur
    Last edited by Selur; 31st Mar 2021 at 07:04.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Thank you,
    I am searching to tweak the colors for the whites to be more white, and the blues "more blue". Like the DB screenshots.

    I just tryed it on VDub with the 6 axis filter:
    How can I tweak like this on avisynth?

    Thanks,

    https://forum.videohelp.com/attachment.php?attachmentid=58149&stc=1&d=1617204763
    Image Attached Thumbnails Click image for larger version

Name:	Sans titre.png
Views:	33
Size:	4.05 MB
ID:	58149  

    Quote Quote  
  6. Channel Mixer
    might be interesting:
    (i just increased the blue channel)

    here's the whole script
    Code:
    ClearAutoloadDirs()
    SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
    LoadPlugin("I:\Hybrid\32bit\AVISYN~1\DGDecodeNV.dll")
    LoadPlugin("I:\Hybrid\32bit\AVISYN~1\channelmixer.dll")
    # loading source: C:\Users\Selur\Desktop\Saint Seiya BD2_t08 (1).mkv
    #  color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
    Source = DGSource(dgi="E:\Temp\mkv_ff384ea56c802994b1fd2c66afb06476_853323747.dgi",fieldop=2)
    # current resolution: 1920x1080
    # filtering
    # color modifications
    SourceFiltered = Source
    SourceFiltered = SourceFiltered.ConvertToRGB24(interlaced=false, matrix="PC.709")
    SourceFiltered = SourceFiltered.ChannelMixer(RR=100.00,RG=0.00,RB=0.00,GR=0.00,GG=100.00,GB=0.00,BR=0.00,BG=0.00,BB=125.00)
    # adjust color to RGB32 (for preview)
    SourceFiltered = SourceFiltered.ConvertToRGB32()
    # adjust color to RGB32 (for preview)
    Source = Source.ConvertToRGB32(matrix="PC.709")
    # stacking horizontal for filter split-preview
    Source = Source.Crop(0,0,960,1080)
    SourceFiltered = SourceFiltered.Crop(960,0,960,1080)
    StackHorizontal(Source, SourceFiltered)
    PreFetch(8)
    # setting output fps to 23.976fps
    AssumeFPS(24000,1001)
    #  output: color sampling RGB24@8, matrix: bt709, scantyp: progressive, luminance scale: limited
    return last
    I used.

    There are tons of other Avisynth filters which allow do modify Levels&Chroma.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. Code:
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    before, after:
    Image
    [Attachment 58153 - Click to enlarge]


    Gamma may need adjusting too. But I didn't see any shots with obvious medium greys to check.
    Quote Quote  
  8. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Thank you all. It's looking great.

    Now, for the denoising and sharpening of DBZ screens: how the author achieved such result , the screens are real sharp and the plain colors have no artifacts ? awarpsharp?
    Quote Quote  
  9. Adjust it to your liking.

    Code:
    LWLibavVideoSource("Saint Seiya BD2_t08 (1).mkv", cache=false, prefer_hw=2) 
    Crop(240,0,-240,-0)
    
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    
    TemporalDegrain(sigma=4) # very slow, maybe use TTempSmooth() instead
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.3)
    Oh, it needs a stab() too.
    Quote Quote  
  10. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    Adjust it to your liking.

    Code:
    LWLibavVideoSource("Saint Seiya BD2_t08 (1).mkv", cache=false, prefer_hw=2) 
    Crop(240,0,-240,-0)
    
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    
    TemporalDegrain(sigma=4) # very slow, maybe use TTempSmooth() instead
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.3)
    Oh, it needs a stab() too.
    Where is stab() supposed to be placed?
    Quote Quote  
  11. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Here is the file with your script:
    What do you think? I like the result.
    The dark lines need to be more thin and darker no?

    Code:
    video = DirectShowSource2("C:\Users\David GC\Desktop\Saint Seiya BD2_t08 (1).mkv", fps=23.976, preroll=15, lavs="L3", lavd="L3hc31hr7")
    audio = NicDTSSource("I:\Temp\0009_0.dts")
    AudioDub(video, audio)
    DelayAudio(0.008)
    Crop(240, 0, -240, -0)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    TemporalDegrain(sigma=4)
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.3)
    Image Attached Files
    Quote Quote  
  12. I would put Stab(range=4, dxmax=8, dymax=8, mirror=15) before TemporalDegrain(). If you want thinner lines, yes, increase the depth in aWarpSharp2() (in the script the first is for the luma, the second for the chroma). Personally, I think it's already over sharpened and the lines shouldn't be thinner. You might also try adding Spline36Resize(720,height).TurnRight().nnedi3(dh=t rue).TurnLeft() between TemporalDegrain() and MergeChroma(). That may improve some of the thin vertical lines. Or try using a line darkener like Hysteria().

    Code:
    LWLibavVideoSource("Saint Seiya BD2_t08 (1).mkv", cache=false, prefer_hw=2) 
    Crop(240,0,-240,-0)
    
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    
    Stab(range=4, dxmax=8, dymax=8, mirror=15)
    Spline36Resize(720,height)
    TemporalDegrain(sigma=4)
    TurnRight().nnedi3(dh=true).TurnLeft()
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.4, 0.2)
    Then, if you really want to stabilize the picture add QTGMC(InputType=2) after TemporalDegrain(). It will be very very slow but those little twittering edges will stop twittering.

    By the way, Stab() isn't working well for me in 64 bit AviSynth. It works much better in 32 bit AviSynth. 32 bit processed sample with QTGMC() attached.

    I'm having trouble uploading. I'll try again later.
    Image Attached Files
    Last edited by jagabo; 1st Apr 2021 at 05:55.
    Quote Quote  
  13. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Hello,

    Thank you for your help !

    I tried the following script:

    Code:
    video = DirectShowSource2("C:\Users\David GC\Desktop\Saint Seiya BD2_t08 (1).mkv", fps=23.976, preroll=15, lavs="L3", lavd="L3hc31hr7")
    audio = NicDTSSource("I:\Temp\0014_0.dts")
    AudioDub(video, audio)
    DelayAudio(0.008)
    
    
    
    Crop(240, 0, -240, -0)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    
    
    Stab(range=4, dxmax=8, dymax=8)
    Spline36Resize(720,height)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    TurnRight().nnedi3(dh=true).TurnLeft()
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.4, 0.2)
    1- The stab filter give me an error saying that he cannot recognize the "mirror" function, i erased it then.
    2- On the preview the image was stretched 4:3 to 16:9 ?
    3- The encoding stucks for about 30min and return me an error. Here is the log file:

    Code:
    PLATFORM
    ------------------------------
    OS Code: Microsoft Windows NT 6.2.9200.0
    OS Name: Windows 10 Enterprise (x64)
    Framework: 2.0.50727.9151 (v4.0)
    AviSynth: AviSynth+ 3.4 (r2925, master, i386)
    CPU Info: AMD Ryzen 9 3950X 16-Core Processor             (~3493), 32 core(s)
    RAM Total: 32683Mb
    Language: FRS (1252, ",")
    SystemDrive: C:
    
    XviD4PSP
    ------------------------------
    Version: 5.10.346.0
    Created: 12.02.2015 12:46:56
    AppPath: C:\Program Files (x86)\XviD4PSP 5
    TempPath: I:\Temp
    
    FILES
    ------------------------------
    Saint Seiya BD2_t08 (1).mkv >
    TEST 2.mkv
    
    TASK
    ------------------------------
    Format: MKV
    Duration: 00:00:59:852 (1435)
    VideoDecoder: DirectShowSource2
    Resolution: 1920x1080
    Aspect: 1.7778
    VCodecPreset: x264 Q18 Insane Film
    VEncodingMode: Quality
    VideoCodec: h264 > x264
    VideoBitrate: 19163 > Q18.0
    Framerate: 23.976
    SourceType: PROGRESSIVE
    FieldOrder: UNKNOWN
    AudioDecoder: NicDTSSource
    AEncodingPreset: AAC-LC VBR 1.00
    AudioCodec: DTS > AAC
    AudioBitrate: 768 > VBR
    Samplerate: 48000
    Channels: 2
    Normalize: 100%
    Accurate: 10%
    Gain: 8.711
    Delay: 8 > 8
    
    SCRIPT
    ------------------------------
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\functions\AudioFunctions.avs")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\functions\VideoFunctions.avs")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\avss.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\NicAudio.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\ColorMatrix.dll")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\TemporalDegrain.avs")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FFT3DFilter.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\hqdn3d.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FFT3dGPU.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\mt_masktools-25.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\mt_masktools-26.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\mvtools.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\mvtools2.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\RemoveGrain.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\Repair.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\aWarpSharp2.dll")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\Stab.avs")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\DePanEstimate.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\DePan.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\ChromaShift.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\nnedi3.dll")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FastLineDarkenMod.avs")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\InterFrame.avsi")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\InterFrame2.avsi")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FFMS2.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\svpflow1.dll")
    LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\svpflow2.dll")
    Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\QTGMC.avs")
    
    
    
    video = DirectShowSource2("C:\Users\David GC\Desktop\Saint Seiya BD2_t08 (1).mkv", fps=23.976, preroll=15, lavs="L3", lavd="L3hc31hr7")
    audio = NicDTSSource("I:\Temp\0014_0.dts")
    AudioDub(video, audio)
    DelayAudio(0.008)
    
    
    
    Crop(240, 0, -240, -0)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    
    
    Stab(range=4, dxmax=8, dymax=8)
    Spline36Resize(720,height)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    TurnRight().nnedi3(dh=true).TurnLeft()
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.4, 0.2)
    
    AmplifydB(8.711)
    
    
    AUDIO ENCODING
    ------------------------------
    Encoding audio to: I:\Temp\0014.m4a
    AAC Q1 2ch 16bit 48000khz
    
    neroAacEnc.exe: -ignorelength -q 1.00 -lc -if - -of "I:\Temp\0014.m4a"
    
    
    VIDEO ENCODING
    ------------------------------
    Encoding video to: I:\Temp\0014.264
    x264 Q18.0 1920x1080 23.976fps (1435 frames)
    
    x264.exe: --crf 18.0 --ref 16 --deblock -2:-1 --merange 32 --direct auto --bframes 4 --b-adapt 2 --trellis 2 --psy-rd 1.0:0.2 --partitions all --subme 10 --me tesa --rc-lookahead 60 --sar 1:1 --output "I:\Temp\0014.264" "I:\Temp\0014.avs"
    
    avs [info]: 1440x1080p 1:1 @ 2500000/104271 fps (cfr)
    x264 [info]: using SAR=1/1
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    x264 [info]: profile High, level 5.0
    avs [error]: Could not allocate video frame. Out of memory. memory_max = 1073741824, memory_used = 848075938 Request=6220863 occurred while reading frame 112
    x264 [error]: malloc of size 15608032 failed
    x264 [error]: x264_encoder_encode failed
    x264 [info]: frame I:1     Avg QP:16.55  size:174666
    x264 [info]: mb I  I16..4: 11.9% 48.7% 39.4%
    x264 [info]: 8x8 transform intra:48.7%
    x264 [info]: coded y,uvDC,uvAC intra: 72.4% 78.7% 56.7%
    x264 [info]: i16 v,h,dc,p: 12% 16% 45% 27%
    x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  6% 17% 10% 11% 11% 10% 11% 12%
    x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15%  6%  5% 12% 15% 15%  9% 13% 10%
    x264 [info]: i8c dc,h,v,p: 48% 21% 27%  5%
    x264 [info]: kb/s:33502.32
    
    aborted at input frame 112, output frame 1
    x264 [total]: encoded 1 frames, 0.00 fps, 33502.32 kb/s
    
    Error!
    Quote Quote  
  14. Originally Posted by david.dgc View Post
    1- The stab filter give me an error saying that he cannot recognize the "mirror" function, i erased it then.
    You need an updated version: http://avisynth.nl/index.php/Stab

    Originally Posted by david.dgc View Post
    2- On the preview the image was stretched 4:3 to 16:9 ?
    Your script (I don't have DirectShowSource2() so I used LSMASH) didn't change the aspect ratio here.

    Originally Posted by david.dgc View Post
    3- The encoding stucks for about 30min and return me an error.
    Using multiple motion compensated filters often leads to crashes in AviSynth. I use AviSynth+ 32 bit and 64 bit, version 3.7.0. Try switching to LWLibavVideoSource() (included in the LSMASH package). http://avisynth.nl/index.php/LSMASHSource

    I uploaded the encoded video in my previous post.
    Quote Quote  
  15. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    Originally Posted by david.dgc View Post
    1- The stab filter give me an error saying that he cannot recognize the "mirror" function, i erased it then.
    You need an updated version: http://avisynth.nl/index.php/Stab

    Originally Posted by david.dgc View Post
    2- On the preview the image was stretched 4:3 to 16:9 ?
    Your script (I don't have DirectShowSource2() so I used LSMASH) didn't change the aspect ratio here.

    Originally Posted by david.dgc View Post
    3- The encoding stucks for about 30min and return me an error.
    Using multiple motion compensated filters often leads to crashes in AviSynth. I use AviSynth+ 32 bit and 64 bit, version 3.7.0. Try switching to LWLibavVideoSource() (included in the LSMASH package). http://avisynth.nl/index.php/LSMASHSource

    I uploaded the encoded video in my previous post.
    OK will try later.
    I will change the avisynth version.
    Which software do you recommend to encode?
    I am using an old version of Xvid4PSP.
    Quote Quote  
  16. I use x264 cli or ffmpeg to encode AviSynth scripts.
    Quote Quote  
  17. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    I fixed the problem.
    Image Attached Thumbnails Click image for larger version

Name:	Sans titre.png
Views:	11
Size:	304.5 KB
ID:	58184  

    Last edited by david.dgc; 1st Apr 2021 at 15:12.
    Quote Quote  
  18. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    I make it to create a script on Avspmod, that seems to work since it shows on preview. (?)

    When i try to load the script on Vdub, that shows me that error. What i am doing wrong?

    If the scripts preview on avspmod, it is suppose to be able to be encoded?

    Thanks for patience and help,
    Image Attached Thumbnails Click image for larger version

Name:	Sans titre.png
Views:	5
Size:	2.25 MB
ID:	58191  

    Click image for larger version

Name:	Sans titre2.png
Views:	7
Size:	156.7 KB
ID:	58192  

    Quote Quote  
  19. I can tell from the screenshot you are running 32 bit AviSynth and 32 bit Avspmod. The error message is telling you what's wrong: you are running 64 bit VirtualDub -- which means you need to run 64 bit AviSynth and import 64 bit dlls. Switch to 32 bit VirtualDub. Or you can switch to all 64 bit versions.

    32 bit editors/encoders will use 32 bit AviSynth and 32 bit filters. 64 bit editors/encoders will use 64 bit AviSynth and 64 bit filters. The two environments can't use each others' components.
    Quote Quote  
  20. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    I can tell from the screenshot you are running 32 bit AviSynth and 32 bit Avspmod. The error message is telling you what's wrong: you are running 64 bit VirtualDub -- which means you need to run 64 bit AviSynth and import 64 bit dlls. Switch to 32 bit VirtualDub. Or you can switch to all 64 bit versions.

    32 bit editors/encoders will use 32 bit AviSynth and 32 bit filters. 64 bit editors/encoders will use 64 bit AviSynth and 64 bit filters. The two environments can't use each others' components.
    Just worked !
    I will try now to encode the sample !
    Thanks a lot for your help
    Quote Quote  
  21. Do your tests on small samples, not thirty minutes of video.

    Do you need QTGMC? Anime has some pretty strange cadence (i.e., dup fields/frames) and QTGMC might get confused, unless you are just using it for noise reduction. I don't think you want to deinterlace using it until you've done some sort of IVTC. Temporal filters do NOT like duplicate frames or fields.
    Quote Quote  
  22. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by johnmeyer View Post
    Do your tests on small samples, not thirty minutes of video.

    Do you need QTGMC? Anime has some pretty strange cadence (i.e., dup fields/frames) and QTGMC might get confused, unless you are just using it for noise reduction. I don't think you want to deinterlace using it until you've done some sort of IVTC. Temporal filters do NOT like duplicate frames or fields.
    Hello, i am doing it on a 60sec. sample.
    But as far as i can see, it's stuck for 15min at 0.00%
    it is maybe loading the filters.

    Started now, at a 0.02fps speed
    Last edited by david.dgc; 1st Apr 2021 at 16:41.
    Quote Quote  
  23. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    I can tell from the screenshot you are running 32 bit AviSynth and 32 bit Avspmod. The error message is telling you what's wrong: you are running 64 bit VirtualDub -- which means you need to run 64 bit AviSynth and import 64 bit dlls. Switch to 32 bit VirtualDub. Or you can switch to all 64 bit versions.

    32 bit editors/encoders will use 32 bit AviSynth and 32 bit filters. 64 bit editors/encoders will use 64 bit AviSynth and 64 bit filters. The two environments can't use each others' components.
    Sample, with the following script:

    Code:
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\LSMASHSource.dll")
    Import("C:\Program Files (x86)\AviSynth+\plugins\Stab.avsi")
    Import("C:\Program Files (x86)\AviSynth+\plugins\TemporalDegrain.avs")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\DePan.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\DePanEstimate.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\mvtools2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\RgTools.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\fft3dfilter.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\aWarpsharpMT.dll")
    LWLibavVideoSource("C:\Users\David GC\Desktop\Saint Seiya BD2_t08 (1).mkv")
    Crop(240, 0, -240, -0)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    Stab(range=4, dxmax=8, dymax=8, mirror=15)
    Spline36Resize(720,height)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    TurnRight().nnedi3(dh=true).TurnLeft()
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.4, 0.2)
    I like very much the result.
    Do you think?
    Image Attached Files
    Quote Quote  
  24. Looks the same as the version I made.
    Quote Quote  
  25. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    Looks the same as the version I made.
    Yes, it is.
    I was just trying to fix the problem with the 4:3 ratio that I had.

    If I want a 960x720 output which and where do you think that the resizer shoud be put on the script?
    Quote Quote  
  26. Originally Posted by david.dgc View Post
    If I want a 960x720 output which and where do you think that the resizer shoud be put on the script?
    Try this:

    Code:
    Crop(240, 0, -240, -0)
    Spline36Resize(960,720)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    Stab(range=4, dxmax=6, dymax=6, mirror=15)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.3, 0.2)
    I toned down the sharpening and reduced the Stab limits to better suit the smaller frame size.
    Quote Quote  
  27. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    Originally Posted by david.dgc View Post
    If I want a 960x720 output which and where do you think that the resizer shoud be put on the script?
    Try this:

    Code:
    Crop(240, 0, -240, -0)
    Spline36Resize(960,720)
    ConvertToRGB(matrix="rec709")
    RGBAdjust(rb=-29, gb=-26, bb=-27)#, r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    RGBAdjust(r=250.0/200.0, g=250.0/182.0, b=250.0/154.0)
    ConvertToYV12(matrix="rec709")
    Stab(range=4, dxmax=6, dymax=6, mirror=15)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.3, 0.2)
    I toned down the sharpening and reduced the Stab limits to better suit the smaller frame size.
    I used your script and the result is great !

    I will try now some full episodes.
    Thanks !!
    Image Attached Files
    Quote Quote  
  28. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Hello again,

    I have already done 9 saint seiya episodes. The result is just great, thanks Jagabo.
    The thing is that it is not clear to me, to be honest, at all, how to tweak this filters as I didn't understand yet how "this works".


    I have the DVD collection of Captain Tsubasa anime.
    The purpose is to the the same filtering and if it's possible, to do an upscale to 1080p.


    In attachment you will find a sample of the original file muxed to MKV and a test that I've done.


    For my encode i did:

    1 - I struggle to understand how to tweak the RGBadjust() command. So i made the tweak color with Vdub and the 6 axis color correction filter.
    2 - I used the Anime4KCPP GUI to upscale to 1080p
    3 - Than i used the following script that is basically the same that used to Saint Seiya:

    Code:
    ConvertToYV12(matrix="rec709")
    Stab(range=4, dxmax=8, dymax=8, mirror=15)
    Spline36Resize(720,height)
    TemporalDegrain(sigma=4)
    QTGMC(InputType=2)
    TurnRight().nnedi3(dh=true).TurnLeft()
    MergeChroma(aWarpSharp2(depth=10), aWarpSharp2(depth=20))
    Sharpen(0.4, 0.2)
    The result is of course not a beauty. The black lines are vanished and lost some of the "black" tonality.

    Can you help me? If you have a script that replace the use of Vdub and Anime4KCPP, i'll take it.

    Thanks a lot.
    Image Attached Files
    Quote Quote  
  29. That video is a mess. Try something like this:

    Code:
    LWLibavVideoSource("Capt Tsubasa sample.mkv", cache=false, prefer_hw=2) 
    Crop(14,4,-10,-4)
    ConvertToRGB(interlaced=true, matrix="rec601").RGBAdjust(r=251.0/246.0, b=251.0/238.0).ConvertToYV12(interlaced=true, matrix="rec709")
    QTGMC(sharpness=0.6)
    Stab(range=4, dxmax=4, dymax=4, mirror=15)
    SRestore()
    TemporalDegrain(sigma=8)
    dehalo_alpha(rx=2.5, ry=2.5)
    Hysteria(strength=2.0)
    MergeChroma(aWarpSharp2(depth=3), aWarpSharp2(depth=15))
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1024, fheight=768)
    aWarpSharp2(depth=3)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    aWarpSharp2(depth=3)
    Sharpen(0.2)
    Quote Quote  
  30. Member
    Join Date
    Apr 2012
    Location
    Portugal
    Search PM
    Originally Posted by jagabo View Post
    That video is a mess. Try something like this:

    Code:
    LWLibavVideoSource("Capt Tsubasa sample.mkv", cache=false, prefer_hw=2) 
    Crop(14,4,-10,-4)
    ConvertToRGB(interlaced=true, matrix="rec601").RGBAdjust(r=251.0/246.0, b=251.0/238.0).ConvertToYV12(interlaced=true, matrix="rec709")
    QTGMC(sharpness=0.6)
    Stab(range=4, dxmax=4, dymax=4, mirror=15)
    SRestore()
    TemporalDegrain(sigma=8)
    dehalo_alpha(rx=2.5, ry=2.5)
    Hysteria(strength=2.0)
    MergeChroma(aWarpSharp2(depth=3), aWarpSharp2(depth=15))
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1024, fheight=768)
    aWarpSharp2(depth=3)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1440, fheight=1080)
    aWarpSharp2(depth=3)
    Sharpen(0.2)
    Here is the encode that I made with your script. The result is nice ! Thanks !
    It is possible to denoise a little bit more to have more uniform surface of color or do you think I loose detail (screenshot)?
    Image Attached Thumbnails Click image for larger version

Name:	vlcsnap-2021-04-05-19h44m24s624.png
Views:	9
Size:	1.44 MB
ID:	58251  

    Image Attached Files
    Quote Quote  



Similar Threads