VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Hi

    however I'm a cat-

    please be patient -

    Code:
    AssumeTFF().separatefields().selectevery(4,0,3).weave()
    but seems it produce "crude" results of twitter when that video is converted to interlaced, almost as if instead of outputting in progressive and then interlacing with ffmpeg using -vf interlace seems a little more "smooth", less "crude".

    So I wonder, is there an alternative or a plugin that interlace in avisynth reducing twittering?
    Quote Quote  
  2. To reduce twitter you can lowpassfilter the source vertically before interlacing.
    Quote Quote  
  3. so in avisynth how is the commanline?
    Quote Quote  
  4. How many times do we have to repeat this? Apply a slight vertical blur to the video while it's progressive -- Blur(0.0, 0.5) or thereabouts. Limit it to only the most high contrast horizontal edges if you want to avoid blurring the entire frame.
    Quote Quote  
  5. Why not just delete every second frame with SelectEven() and add --fake-interlaced and --pic-struct to the x264 command line?
    Quote Quote  
  6. this is my source:

    https://www.swisstransfer.com/d/169af830-016e-4de1-bef4-ebf6b64075e9

    is UHD 50P 3840x2160

    my target is mxf HD 25i, so I try this .avs
    Code:
    Import("v:\automazioneclip\avisynth\plugins\IResize.avsi")
    Import("V:\automazioneclip\AviSynth\plugins\smoothFPS2.avsi")
    Import("v:\automazioneclip\AviSynth\plugins\FrostyBorders.avsi")
    Import("v:\automazioneclip\AviSynth\plugins\CropResizedic2017.avsi")
    Import("V:\automazioneclip\AviSynth\FrameRateConverter2021\FrameRateConverter.avsi")
    Import("V:\automazioneclip\AviSynth\LinearTransformation-3.0\LinearTransformation.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\AVSCube\x64\vscube.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\FrameRateConverter2021\X64\FrameRateConverter.dll")
    Import("v:\automazioneclip\AviSynth\FFMS2_26022024\FFMS2.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FFMS2_R1363_AGO2023\X64\ffms2.dll")  
    LoadPlugin("v:\automazioneclip\AviSynth\LSMASH2026\x64\LSMASHSource.dll") 
    LoadCPlugin("v:\automazioneclip\avisynth\plugins64\yadif.dll") 
    LoadPlugin("v:\automazioneclip\AviSynth\YADIFMOD2_2023\x64\yadifmod2.dll")  
    LoadPlugin("V:\automazioneclip\AviSynth\MaskTool2\X64\masktools2.dll")   
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\ResampleMT.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\nnedi3.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\aWarpsharpMT.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\eedi3.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\EEDI2.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\GScript_26_64.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\SangNom2.dll") 
    Import("V:\automazioneclip\AviSynth\Santiag\santiag.avsi")
    Import("V:\automazioneclip\AviSynth\QTGMC2025\QTGMC.avsi")
    Import("V:\automazioneclip\AviSynth\QTGMC2025\Zs_RF_Shared.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\QTGMC2025\mvtools2.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\QTGMC2025\RgTools.dll") 
    LoadPlugin("v:\automazioneclip\AviSynth\BestSource\2026\BestSource.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\RIFE.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\avsresize.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\PlanarTools.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\HDRTools\x64\Release_W7_AVX2\HDRTools.dll")
    Import("v:\automazioneclip\AviSynth\GradFun3plus\ExTools.avsi")
    Import("V:\automazioneclip\AviSynth\GradFun3plus\ResizersPack.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize 2025-06-16.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize Resizer Functions 2025-06-16.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize Wrapper Functions 2025-06-16.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\neo-f3kdb.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\dither.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\avstp.dll")
    Import("v:\automazioneclip\AviSynth\neo_f3kdb\x64\dither.avsi")
    Import("v:\automazioneclip\AviSynth\neo_f3kdb\x64\mt_xxpand_multi.avsi")
    Import("v:\automazioneclip\AviSynth\FrostyBorders 2025-04-14\FrostyBorders Avisynth\FrostyBorders 2025-04-14.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FFT3Dfilter\x64\fft3dfilter.dll")
    Import("V:\automazioneclip\AviSynth\GradFun3plus\GradFun3plusEX.avsi")
    #Import("V:\automazioneclip\AviSynth\GradFun3plus\GradFun3plusMix.avsi")
    Import("V:\automazioneclip\AviSynth\FramerateConverterMix\FrameRateConverterMIX.avsi")
    Import("V:\automazioneclip\AviSynth\FramerateConverterMix\GradePack.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FramerateConverterMix\ExBlend_x64.dll")
    
    LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (23)\DJI_20260226150413_0004_D.MP4")
    
    CropResize(1920)
    
    #GradFun3Plus() # but too slow sorry :( #
    
    QTGMC(InputType=1, EzDenoise=2.0, Preset="Super Fast", SubPel=4 )
    
    AssumeFPS(50)
    
    Prefetch(4)
    and encoding using:
    Code:
    ffmpeg.exe -v quiet -stats -threads auto -y -i "C:\Users\Administrator\Desktop\Nuova cartella (23)\tempAVS1.avs" -vf scale=interl=1,interlace,setfield=tff,setsar=1/1,format=yuv422p -an -pix_fmt yuv422p -f rawvideo - | v:\automazioneclip\core\ffmbcX642017.exe -loglevel quiet -threads 12 -s 1920x1080 -r 25 -y -f rawvideo -pix_fmt yuv422p -i - -tff -target xdcamhd422 -an "out1_OK_1080i25.MXF"
    ffmbcx642017.exe is here: https://www.swisstransfer.com/d/58b51710-3079-4fc0-aa5a-20d31f29a681

    and I get this (seems to me correct) MXF output file: https://www.swisstransfer.com/d/acc861ca-fed4-4334-b91c-3b7250d9379f

    I suppose is "correct" with no too aliasing/twittering because if I import the original mp4 in Edius, set as 25i interlaced project setting, and I try export the interlaced MXF, this is the final result: https://www.swisstransfer.com/d/ec651242-2c2a-4b93-83b1-f2274cfff575

    that appears very similar to the avs/ffmbc transcoded (out1_OK_1080i25.MXF)

    But now I try to execute the same using an .avs output already 25i:

    Code:
    Import("v:\automazioneclip\avisynth\plugins\IResize.avsi")
    Import("V:\automazioneclip\AviSynth\plugins\smoothFPS2.avsi")
    Import("v:\automazioneclip\AviSynth\plugins\FrostyBorders.avsi")
    Import("v:\automazioneclip\AviSynth\plugins\CropResizedic2017.avsi")
    Import("V:\automazioneclip\AviSynth\FrameRateConverter2021\FrameRateConverter.avsi")
    Import("V:\automazioneclip\AviSynth\LinearTransformation-3.0\LinearTransformation.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\AVSCube\x64\vscube.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\FrameRateConverter2021\X64\FrameRateConverter.dll")
    Import("v:\automazioneclip\AviSynth\FFMS2_26022024\FFMS2.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FFMS2_R1363_AGO2023\X64\ffms2.dll")  
    LoadPlugin("v:\automazioneclip\AviSynth\LSMASH2026\x64\LSMASHSource.dll") 
    LoadCPlugin("v:\automazioneclip\avisynth\plugins64\yadif.dll") 
    LoadPlugin("v:\automazioneclip\AviSynth\YADIFMOD2_2023\x64\yadifmod2.dll")  
    LoadPlugin("V:\automazioneclip\AviSynth\MaskTool2\X64\masktools2.dll")   
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\ResampleMT.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\nnedi3.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\aWarpsharpMT.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\eedi3.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\EEDI2.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\GScript_26_64.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\Santiag\SangNom2.dll") 
    Import("V:\automazioneclip\AviSynth\Santiag\santiag.avsi")
    Import("V:\automazioneclip\AviSynth\QTGMC2025\QTGMC.avsi")
    Import("V:\automazioneclip\AviSynth\QTGMC2025\Zs_RF_Shared.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\QTGMC2025\mvtools2.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\QTGMC2025\RgTools.dll") 
    LoadPlugin("v:\automazioneclip\AviSynth\BestSource\2026\BestSource.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\RIFE.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\avsresize.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\RIFE\PlanarTools.dll")
    LoadPlugin("V:\automazioneclip\AviSynth\HDRTools\x64\Release_W7_AVX2\HDRTools.dll")
    Import("v:\automazioneclip\AviSynth\GradFun3plus\ExTools.avsi")
    Import("V:\automazioneclip\AviSynth\GradFun3plus\ResizersPack.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize 2025-06-16.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize Resizer Functions 2025-06-16.avsi")
    Import("v:\automazioneclip\AviSynth\CropResize\CropResize Wrapper Functions 2025-06-16.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\neo-f3kdb.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\dither.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\neo_f3kdb\x64\avstp.dll")
    Import("v:\automazioneclip\AviSynth\neo_f3kdb\x64\dither.avsi")
    Import("v:\automazioneclip\AviSynth\neo_f3kdb\x64\mt_xxpand_multi.avsi")
    Import("v:\automazioneclip\AviSynth\FrostyBorders 2025-04-14\FrostyBorders Avisynth\FrostyBorders 2025-04-14.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FFT3Dfilter\x64\fft3dfilter.dll")
    Import("V:\automazioneclip\AviSynth\GradFun3plus\GradFun3plusEX.avsi")
    #Import("V:\automazioneclip\AviSynth\GradFun3plus\GradFun3plusMix.avsi")
    Import("V:\automazioneclip\AviSynth\FramerateConverterMix\FrameRateConverterMIX.avsi")
    Import("V:\automazioneclip\AviSynth\FramerateConverterMix\GradePack.avsi")
    LoadPlugin("V:\automazioneclip\AviSynth\FramerateConverterMix\ExBlend_x64.dll")
    
    LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (23)\DJI_20260226150413_0004_D.MP4")
    
    CropResize(1920)
    
    #GradFun3Plus() # but too slow sorry :( #
    
    QTGMC(InputType=1, EzDenoise=2.0, Preset="Super Fast", SubPel=4 )
    
    AssumeTFF().SeparateFields().SelectEvery(4, 0, 3).Weave()
    
    #AssumeFPS(50)
    
    Prefetch(4)
    and encoding, excluding the -vf interlace from the commandline:
    Code:
    ffmpeg.exe -v quiet -stats -threads auto -y -i "C:\Users\Administrator\Desktop\Nuova cartella (23)\tempAVS1.avs" -vf scale=interl=1,setfield=tff,setsar=1/1,format=yuv422p -an -pix_fmt yuv422p -f rawvideo - | v:\automazioneclip\core\ffmbcX642017.exe -loglevel quiet -threads 12 -s 1920x1080 -r 25 -y -f rawvideo -pix_fmt yuv422p -i - -tff -target xdcamhd422 -an "out2_wrong_1080i25.MXF"
    and this is the "bad" result (with a lot amount of twittering):

    https://www.swisstransfer.com/d/d6217dfd-bf58-4069-a546-cdde5097be8d

    -------------------------------------------------------------------------------------

    So my question is: is there a way to interlace directly in the avs script but avoiding the twittering?
    Quote Quote  
  7. You're Edius output is much blurrier than the AviSynth output. That's why the AviSynth output twitters so much more.
    Quote Quote  
  8. Originally Posted by hello_hello View Post
    Why not just delete every second frame with SelectEven() and add --fake-interlaced and --pic-struct to the x264 command line?
    for example I need to encode in virtualdub but need to "pass" the interlaced stream to Virtualdub: even if it have a "interlace" filter similar to avisynth that do the same twittering
    Quote Quote  
  9. Originally Posted by Sharc View Post
    To reduce twitter you can lowpassfilter the source vertically before interlacing.
    ok in the avisynth script how I can do?
    Quote Quote  
  10. You were already told how.
    Quote Quote  
  11. Originally Posted by marcorocchini View Post
    Originally Posted by Sharc View Post
    To reduce twitter you can lowpassfilter the source vertically before interlacing.
    ok in the avisynth script how I can do?
    Originally Posted by jagabo View Post
    You were already told how.
    @cat with the memory of a flea: In addition to revisiting your earlier posts on that same subject maybe marcorocco over at doom9 can tell?
    https://forum.doom9.org/showthread.php?p=2029064#post2029064
    Quote Quote  



Similar Threads

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