VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Oct 2023
    Location
    England
    Search Comp PM
    Hi guys.

    I have a bunch of AVI files that I want to deinterlace. These are from my Sony Handycam, I filmed the footage then used WinDV to get the footage onto my PC.

    Normally, I record the entire tape off as one file, then I usually use AVISynth and VirtualDub64 to deinterlace and upscale the footage.

    This time however, for reasons, WinDV has generated me a seperate AVI file for each 'clip' from the tape. This has some advantages in terms of working with the footage in my NLE, so I'd like to proceed on this route.

    However I'm unsure how to deinterlace the footage with my current workflow as that is for doing 'one file' at a time and with the number I have, it would take forever.

    This is my AVISynth Script (with some minor edits to remove personal information) :

    LoadPlugin("C:\Users\USERNAME\AviSynth+\plugins\FF T3DFilter.dll")
    SetFilterMTMode("QTGMC", 2)
    FFmpegSource2("C:\Users\PATH\FILE_INFORMATION_HERE _0000.avi", atrack=1)
    ConvertToYV12()
    AssumeBFF()
    QTGMC(preset="Placebo", EdiThreads=6)

    # Resize to 1440p using nnedi3
    nnedi3.nnedi3(field=1, dh=True, nsize=0, nns=3, qual=1, etype=1)
    Spline36Resize(1440, 1080)

    Prefetch(20)

    Does anyone know how I should amend my script to tell it multiple files?
    Or can anyone suggest a better workflow to deinterlace multiple files with QTGMC?

    Many thanks,

    Skep'
    Quote Quote  
  2. LoadPlugin("C:\Users\USERNAME\AviSynth+\plugins\FF T3DFilter.dll")
    SetFilterMTMode("QTGMC", 2)
    A=FFmpegSource2("C:\Users\PATH\FILE_INFORMATION_HE RE _0001.avi", atrack=1)
    B=FFmpegSource2("C:\Users\PATH\FILE_INFORMATION_HE RE _0002.avi", atrack=1)
    C=FFmpegSource2("C:\Users\PATH\FILE_INFORMATION_HE RE _0003.avi", atrack=1)
    .
    .
    .
    A++B++C++...
    ConvertToYV12()
    AssumeBFF()
    QTGMC(preset="Placebo", EdiThreads=6)

    There may be a simpler way to do it, perhaps depending on how many of these files there are. And you can probably use AVISource, depending on the kind of AVI. And I'd guess they're already YV12. The "INFO" command will tell you.
    Quote Quote  
  3. Member
    Join Date
    Oct 2023
    Location
    England
    Search Comp PM
    Will that not combine them all back into a single file though? I'd like to keep them as seperate clips but 'batch' deinterlace them using QTGMC
    Quote Quote  
  4. Manono's example appends all your AVI files into one final output file. If you want each AVI file converted as a separate file you can use a batch file to build a script for each AVI, then encode via any command line encoder, like ffmpeg. Something like:

    Code:
    for %%F in (*.avi) do ( 
        echo #LoadPlugin("C:\Users\USERNAME\AviSynth+\plugins\FF T3DFilter.dll"^) >_script.avs
        echo SetFilterMTMode("QTGMC", 2^) >>_script.avs
        echo FFmpegSource2("%%F", atrack=1^) >>_script.avs
        echo ConvertToYV12(interlaced=true^) >>_script.avs
        echo AssumeBFF(^) >>_script.avs
        echo QTGMC(preset="Placebo", EdiThreads=6^) >>_script.avs
        echo nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1440, fheight=1080^) >>_script.avs
        echo Prefetch(20^) >>_script.avs
        ffmpeg -y -loglevel info -i "_script.avs" -c:v libx264 -preset veryfast -c:a copy "%%~nF.mkv" 
        del "%%~nxF.ffindex"
        del _script.avs
    )
    pause
    Modify the ffmpeg line to use whatever codecs and settings you want.
    Last edited by jagabo; 10th Oct 2023 at 07:11.
    Quote Quote  
  5. Originally Posted by Skeptjk View Post
    This time however, for reasons, WinDV has generated me a seperate AVI file for each 'clip' from the tape.
    You're right. I only absorbed that sentence and not the following one. Not sure why you'd want to keep them all separate, though. I apologize for answering a question you didn't ask.

    By the way, the default for WinDV is to split after a very short period. Somewhere in it is a setting to extend the length of the captures. Sorry I can't be more specific as it's been awhile since I used it.
    Quote Quote  
  6. Member
    Join Date
    Oct 2023
    Location
    England
    Search Comp PM
    Because I'm bringing them all into Davinci Resolve to edit into what you could loosely define as a 'movie'.

    I appreciate the help tho!

    Its strange though, I can't be the only person who has ever wanted to deinterlace multiple files using QTGMC and yet I can't find any way to do it?

    I tried using StaxRip and that *did* work, except it made the videos look awful - really high contrast, a lot of crushed blacks. Compared to the original files or files converted using AVISynth/Virtualdub, they are night and day (and awful)...

    In the past I've always had WinDV keep them as one long file, having it split them would be better but maybe I just have to go back to doing it the old way

    Just drives me a bit nuts because I know there must be SOME way to do it.. I just don't know what that is!
    Quote Quote  
  7. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    I just don't know what that is!
    I'm no FFMPEG expert, but it looks like Jagabo has told you how in post #4.
    Quote Quote  
  8. Member
    Join Date
    Oct 2023
    Location
    England
    Search Comp PM
    Yes you’re right it does! For some reason I didn’t see that post yesterday on my PC, looking this morning on my phone (from which I currently write) - there it is!

    Will give it a go
    Quote Quote  
  9. I just noticed and fixed a small bug in the earlier batch file.
    Quote Quote  



Similar Threads

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