VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Hi ***

    please consider, for example, this drone source

    https://www.swisstransfer.com/d/bb916604-02a6-419a-8aa5-05977af04b9b

    not high quality image, it's simple a 50P HD MP4/avc video file
    my target is to get a 50i video file (MXF 50i HD op1A)

    Code:
    Import("v:\automazioneclip\avisynth\plugins\IResize.avsi")
    Import("V:\automazioneclip\AviSynth\plugins\smoothFPS2.avsi")
    Import("V:\automazioneclip\AviSynth\plugins\smoothFPS3.avsi")
    Import("v:\automazioneclip\AviSynth\plugins\CropResizedic2017.avsi")
    Import("V:\automazioneclip\AviSynth\FrameRateConverter2021\FrameRateConverter.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\FrameRateConverter2021\X64\FrameRateConverter.dll")
    LoadPlugin("v:\automazioneclip\AviSynth\ffms2-2.40-msvc\ffms2-2.40-msvc\x64\ffms2.dll")
    Import("V:\automazioneclip\AviSynth\FFMS2_AVSI_2019\ffms2.avsi")
    LoadPlugin("v:\automazioneclip\AviSynth\LSMASH_AGO_2023\x64\LSMASHSource.dll")
    LoadCPlugin("v:\automazioneclip\avisynth\plugins64\yadif.dll") 
    LoadPlugin("V:\automazioneclip\AviSynth\MaskTool2\X64\masktools2.dll") 
    
    vid=LSMASHVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (3)\DJI_0581.MP4").WriteFileStart("Framecount.txt", "Framecount()")
    aud=LWLibavAudioSource("v:\automazioneclip\system\empty.wav",stream_index=0)
    left=GetChannel(aud, 1)
    right=GetChannel(aud, 2)
    both=mergechannels(left, right)
    audiodub(vid, both)
    ConvertAudioTo16Bit()
    #TurnRight()
    #Turn180()
    #TurnLeft()   
    converttoYV12(interlaced=false)
    emask = mt_convolution(vertical="-1 2 -1").ColorYUV(off_y=-64).ColorYUV(gain_y=128).mt_expand(chroma="-128").Blur(0.8)
    Overlay(last, Blur(0.6, 0.7), mask=emask)
    ConvertToYUY2(interlaced=false)
    assumeFPS(50)
    AssumeTFF().SeparateFields().SelectEvery(4, 0, 3).Weave()
    so the original file have 1 converttoYV12 to entry in the emask processing

    and again a ConvertToYUY2 to output the script to the encoder

    I wonder: considering that the intermediate "emask" processing is important for me to reduce artefacts which would otherwise be produced since the output must be interlaced, does exist a way to increase the conversion quality or avoid unnecessary losses since the drone images source often include unwanted house roofs, trees, dense textures or moiré?
    Last edited by marcorocchini; 6th Oct 2024 at 09:10.
    Quote Quote  
  2. Given that the source already is 4:2:0 and I do not see any moiré artifacts, I don't really see the need for those lines to begin with.
    Also:
    Code:
    emask = mt_convolution(vertical="-1 2 -1").ColorYUV(off_y=-64).ColorYUV(gain_y=128).mt_expand(chroma="-128").Blur(0.8)
    Overlay(last, Blur(0.6, 0.7), mask=emask)
    Works fine in YUV422, YUV444, so even if the source was 4:2:0 or 4:4:4 there would be no need for the ConvertToYV12 call.
    => the whole post makes no sense to me,...
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

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