VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 41
  1. Hello,
    I have this video: https://veryfiles.com/y08u98f5dyo0
    But this video is very worst.
    I see someone can make it to clearer video by use effect.
    Do you think that idea? And if yes, how do I make for this video clearly?
    But no, can I do?
    Thanks for read this post, and sorry because I just study EL so it not fluently.
    Quote Quote  
  2. Wdym, it looks pretty fine.
    Last edited by rrats; 6th Feb 2022 at 09:55.
    Quote Quote  
  3. The intro is bitrate starved.
    DPIR could be used:

    or some deblocking with an edge mask.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  4. What it really needs is to go back to the (Blu-ray?) source, do a proper inverse telecine, and encode with sufficient bitrate.

    But if this is all you can get... It doesn't need to be sharper. It needs to be antialiased because of the way it was deinterlaced (discard field and resize). I did this in AviSynth:

    Code:
    LSMASHVideoSource("Nanako.mp4", prefer_hw=2) 
    TDecimate()
    SeparateFields()
    SelectEven() # even fields are sharper than odd
    Santiag(1,4) # antialias
    nnedi3(dh=true) # double height
    MergeChroma(aWarpSharp2(depth=5), aWarpSharp2(depth=10)) # smooth/sharpen chroma more than luma
    CAS(sharpness=0.7, y=3, u=3, v=3) # sharpen
    First ~40 seconds attached.
    Image Attached Files
    Quote Quote  
  5. Originally Posted by jagabo View Post
    What it really needs is to go back to the (Blu-ray?) source, do a proper inverse telecine, and encode with sufficient bitrate.

    But if this is all you can get... It doesn't need to be sharper. It needs to be antialiased because of the way it was deinterlaced (discard field and resize). I did this in AviSynth:

    Code:
    LSMASHVideoSource("Nanako.mp4", prefer_hw=2) 
    TDecimate()
    SeparateFields()
    SelectEven() # even fields are sharper than odd
    Santiag(1,4) # antialias
    nnedi3(dh=true) # double height
    MergeChroma(aWarpSharp2(depth=5), aWarpSharp2(depth=10)) # smooth/sharpen chroma more than luma
    CAS(sharpness=0.7, y=3, u=3, v=3) # sharpen
    First ~40 seconds attached.
    Have errorImage
    [Attachment 63208 - Click to enlarge]
    Quote Quote  
  6. You have too many double quotes in your path/filename. Like "C:\Path To\Your Video File.mp4".
    Last edited by jagabo; 6th Feb 2022 at 09:54.
    Quote Quote  
  7. Originally Posted by jagabo View Post
    You have too many double quotes in your path/filename.
    Even I deleted those quotes, the problem still like this.
    Quote Quote  
  8. Post you entire script as text, like I did (copy/paste).

    I can't see the extension in your post but note that LSMASHVideoSource() only works for MP4, MOV, and M4V files. Use LWlibavVideoSource() for MKV and other containers.

    Do you have the LSMASH source filter installed? https://avisynth.nl/index.php/LSMASHSource
    Last edited by jagabo; 6th Feb 2022 at 10:28.
    Quote Quote  
  9. Originally Posted by jagabo View Post
    Post you entire script as text, like I did (copy/paste).

    I can't see the extension in your post but note that LSMASHVideoSource() only works for MP4, MOV, and M4V files. Use LWlibavVideoSource() for MKV and other containers.

    Do you have the LSMASH source filter installed? https://avisynth.nl/index.php/LSMASHSource
    Code:
    #LoadPlugin("E:\Delicious Party♡Precure\L-SMASH-Works-20210811\x64\LSMASHSource.dll")
    LSMASHVideoSource("E:\"Delicious Party♡Precure"\"[NanakoRaws] Delicious Party♡Precure - 01 (WEB-DL 1920x1080 x264 AAC).mp4"", prefer_hw=2) 
    TDecimate()
    SeparateFields()
    SelectEven() # even fields are sharper than odd
    Santiag(1,4) # antialias
    nnedi3(dh=true) # double height
    MergeChroma(aWarpSharp2(depth=5), aWarpSharp2(depth=10)) # smooth/sharpen chroma more than luma
    CAS(sharpness=0.7, y=3, u=3, v=3) # sharpen
    Quote Quote  
  10. You still have too many quotes in the path\filename. There should only be one quote at the start and one quote at the end:

    Code:
    LSMASHVideoSource("E:\Delicious Party♡Precure\[NanakoRaws] Delicious Party♡Precure - 01 (WEB-DL 1920x1080 x264 AAC).mp4", prefer_hw=2)
    But LSMASH may also have problems with the non-ascii characters too. Rename the folder and file to something simple like:

    folder:
    Code:
    E:\Delicious
    and filename:
    Code:
    Delicious1.mp4
    Then use:
    Code:
    LSMASHVideoSource("E:Delicous\Delicious1.mp4")
    Quote Quote  
  11. Still error, but this is santiag script

    Image
    [Attachment 63210 - Click to enlarge]
    Quote Quote  
  12. Santiag isn't a plugin (DLL). It's a script (AVS or AVSI). Use Import() instead of LoadPlugin().
    Quote Quote  
  13. Originally Posted by jagabo View Post
    Santiag isn't a plugin (DLL). It's a script (AVS or AVSI). Use Import() instead of LoadPlugin().
    Still error
    Image
    [Attachment 63211 - Click to enlarge]
    Quote Quote  
  14. Originally Posted by poisondeathray View Post
    Ok, successfully
    But this scene is some worst...

    Image
    [Attachment 63212 - Click to enlarge]
    Quote Quote  
  15. Originally Posted by kienkzz View Post
    Ok, successfully
    But this scene is some worst...

    Most of those artifacts are from low bitrate compression

    Did you prefer something like this ?

    Original
    Image
    [Attachment 63214 - Click to enlarge]


    RealESRGANv2-animevideo-xsx2 model, downscaled using Spline16
    Image
    [Attachment 63213 - Click to enlarge]


    You can use Real-ESRGAN in vapoursynth , or there is a command line application on the official project page

    https://github.com/xinntao/Real-ESRGAN

    https://github.com/HolyWu/vs-realesrgan


    It's very slow to process, and there is a learning curve for vapoursynth . It's a bit more difficult than avisynth for most people
    Quote Quote  
  16. Yes, the antialiasing causes that text overlay to blur. Since the text is magenta with a white outline (some of it is the other way around) you can build a mask of areas where magenta and and white are near each other. The original (or more mildly antialiased) video over those areas to keep them from blurring so much.

    Code:
    LSMASHVideoSource("Nanako.mp4", prefer_hw=2) 
    TDecimate()
    
    alternate = Santiag().Sharpen(0.5) # mild antialiasing
    
    magentamask = MaskHS(startHue=50, EndHue=80, MinSat=20, MaxSat=90).mt_expand().mt_expand().PointResize(width, height)
    whitemask = mt_binarize(210).mt_expand().mt_expand().mt_expand().mt_expand().mt_inpand().mt_inpand()
    fullmask = Overlay(magentamask, whitemask, mode="multiply").GreyScale().Blur(1.4).Blur(1.4)
    
    SeparateFields()
    SelectEven()#Merge(SelectEven(), SelectOdd())
    Santiag(1,4)
    nnedi3(dh=true)
    MergeChroma(aWarpSharp2(depth=5), aWarpSharp2(depth=10))
    CAS(sharpness=0.7, y=3, u=3, v=3)
    
    Overlay(last, alternate, mask=fullmask)
    That first makes an alternate, less antialiased version of the video. Then builds a mask of magenta areas, a mask of white areas, then performs a logical and of those two areas to create a mask. If you view full mask you'll it most just covers that magenta text with white outlines. The video is then cleaned as before. Finally, the alternate video is overlaid onto the antiliased video to restore the magenta text.
    Quote Quote  
  17. a. Intro&Outro need to be filtered differently than the rest.
    b. I doubt that any filter can restore the outro to something I would call 'okay', imhop some parts of the outro are just missing too much actual details.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  18. Originally Posted by Selur View Post
    a. Intro&Outro need to be filtered differently than the rest.
    b. I doubt that any filter can restore the outro to something I would call 'okay', imhop some parts of the outro are just missing too much actual details.
    Yeah, for example, this picture:

    Image
    [Attachment 63218 - Click to enlarge]


    also, the character border feels unpolished and has a bit of jagged edges

    Image
    [Attachment 63219 - Click to enlarge]


    I don't know what script can fix this?
    Quote Quote  
  19. Average bitrate of 1725 kbps is not enough. Make it 2500 kbps at least, for 1080p/1080i AVC encodes... If you use HEVC, you can lower to 1800-2000 kbps, because HEVC is a more efficient compression than AVC. You can get the exact quality with AVC at a lower bitrate.

    You can also use "Zones" option (MeGUI) to give extra-bitrates to user-defined video segments. In your case, the frames at the beginning and at the end.
    Quote Quote  
  20. Originally Posted by ridibunda View Post
    Average bitrate of 1725 kbps is not enough. Make it 2500 kbps at least, for 1080p/1080i AVC encodes... If you use HEVC, you can lower to 1800-2000 kbps, because HEVC is a more efficient compression than AVC. You can get the exact quality with AVC at a lower bitrate.

    You can also use "Zones" option (MeGUI) to give extra-bitrates to user-defined video segments. In your case, the frames at the beginning and at the end.
    Is there any software other Megui? Because My MeGUI have error in creating avs
    Quote Quote  
  21. Originally Posted by kienkzz View Post
    Is there any software other Megui? Because My MeGUI have error in creating avs
    I haven't had any AVS-creating problem in MeGUI. Do you get error while indexing? (with FFMSIndex or LSMASH-Works)

    If I were you, I would re-encode the source video with MeGUI's recommended H264 settings, in Constant Quality mode. "Animation" tuning option can also be used.

    If the final size is so important for you or you want exactly 2500 kbps average bitrate, you can use "automated 2 pass" mode with 2500 kbps bitrate.
    Quote Quote  
  22. Originally Posted by ridibunda View Post
    Originally Posted by kienkzz View Post
    Is there any software other Megui? Because My MeGUI have error in creating avs
    I haven't had any AVS-creating problem in MeGUI. Do you get error while indexing? (with FFMSIndex or LSMASH-Works)

    If I were you, I would re-encode the source video with MeGUI's recommended H264 settings, in Constant Quality mode. "Animation" tuning option can also be used.

    If the final size is so important for you or you want exactly 2500 kbps average bitrate, you can use "automated 2 pass" mode with 2500 kbps bitrate.
    Oh, success.
    Before I had downloaded Megui on official website and have error.
    But when I re-download on VideoHelp (not direct to official) then I can create...
    How to work with it?
    Quote Quote  
  23. Apply the all recommended settings in x264 configuration dialog (encoder settings>x264>config). You can see the recommended settings when you put your cursor on each option.

    For auto update, use "development server" (not "stable server", because it has old versions of the tools).

    If you want to make high-quality encodings, you have to learn to use extra Avisynth filters. First, you create an AVS as usual, then you add other Avisynth script lines to it. You use "Import" call for the AVS files, "LoadPlugin" call for the DLLs needed. Here's a random example for using "Temporal Degrain" filter:

    Import("C:\Program Files (x86)\AviSynth+\plugins\TemporalDegrain2.avs")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\neo-fft3d.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\masktools2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\mvtools2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\RgTools.dll")
    TemporalDegrain2(degrainTR=2,postFFT=3,postSigma=3 ,postDither=-1)
    You add such lines to your base AVS file and save it via Notepad... Each Avisynth filter requires some DLL files. Using extra filters will increase total encoding time. You must have a very powerful and modern processor.

    Modern NVIDIA graphics processors have video encoding units called "NVENC". It gives much better results than software encoders:

    https://developer.nvidia.com/blog/turing-h264-video-encoding-speed-and-quality/

    You can do lots of research on the web. Good luck.
    Quote Quote  
  24. The problem is that I don't know which script to use because those are too many, so I'm here to ask you guys
    Quote Quote  
  25. Originally Posted by poisondeathray View Post
    Originally Posted by kienkzz View Post
    Ok, successfully
    But this scene is some worst...

    Most of those artifacts are from low bitrate compression

    Did you prefer something like this ?

    Original
    Image
    [Attachment 63214 - Click to enlarge]


    RealESRGANv2-animevideo-xsx2 model, downscaled using Spline16
    Image
    [Attachment 63213 - Click to enlarge]


    You can use Real-ESRGAN in vapoursynth , or there is a command line application on the official project page

    https://github.com/xinntao/Real-ESRGAN

    https://github.com/HolyWu/vs-realesrgan


    It's very slow to process, and there is a learning curve for vapoursynth . It's a bit more difficult than avisynth for most people
    How to use it?
    Image
    [Attachment 63286 - Click to enlarge]

    Which step I wrong?
    Quote Quote  
  26. Originally Posted by kienkzz View Post
    Which step I wrong?

    You need a source filter to load video, similar to avisynth ( e.g LSmash)

    Code:
    re = core.lsmas.LibavSMASHSource(r'PATH\[NanakoRaws] Delicious PartyPrecure - 01 (WEB-DL 1920x1080 x264 AAC).mp4')
    re = core.tivtc.TDecimate(re)
    re = core.resize.Bicubic(re, format=vs.RGBS, matrix_in_s="709")
    re = RealESRGAN(re, model_type=3 )
    re = core.resize.Spline16(re, width=1920, height=1080, format=vs.YUV420P10, matrix_s="709") #10bit 4:2:0 ; if you wanted 8bit 4:2:0 use "YUV420P8")
    re.set_output()

    You can use tiling if your GPU does not have enough memory e.g.
    re = RealESRGAN(re, tile_pad=16, tile_x=960, tile_y=540, model_type=3 )

    As the others have mentioned above, you need to filter the different parts, differently.

    This model is probably too "sharp" for other sections, so you might use a smoother downscaler like Bilinear

    One way to modulate the strength of the effect, is to use overlay or merge to combine with original or another filtered version
    Quote Quote  
  27. Originally Posted by poisondeathray View Post
    Originally Posted by kienkzz View Post
    Which step I wrong?

    You need a source filter to load video, similar to avisynth ( e.g LSmash)

    Code:
    re = core.lsmas.LibavSMASHSource(r'PATH\[NanakoRaws] Delicious PartyPrecure - 01 (WEB-DL 1920x1080 x264 AAC).mp4')
    re = core.tivtc.TDecimate(re)
    re = core.resize.Bicubic(re, format=vs.RGBS, matrix_in_s="709")
    re = RealESRGAN(re, model_type=3 )
    re = core.resize.Spline16(re, width=1920, height=1080, format=vs.YUV420P10, matrix_s="709") #10bit 4:2:0 ; if you wanted 8bit 4:2:0 use "YUV420P8")
    re.set_output()

    You can use tiling if your GPU does not have enough memory e.g.
    re = RealESRGAN(re, tile_pad=16, tile_x=960, tile_y=540, model_type=3 )

    As the others have mentioned above, you need to filter the different parts, differently.

    This model is probably too "sharp" for other sections, so you might use a smoother downscaler like Bilinear

    One way to modulate the strength of the effect, is to use overlay or merge to combine with original or another filtered version
    Have error
    Image
    [Attachment 63297 - Click to enlarge]
    Quote Quote  
  28. Code:
    core.std.LoadPlugin(r'PATH\LSMASHSource.dll')
    http://www.vapoursynth.com/doc/functions/general/loadplugin.html
    Quote Quote  
  29. Originally Posted by poisondeathray View Post
    Code:
    core.std.LoadPlugin(r'PATH\LSMASHSource.dll')
    http://www.vapoursynth.com/doc/functions/general/loadplugin.html
    Image
    [Attachment 63298 - Click to enlarge]


    Have error
    Quote Quote  



Similar Threads

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