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'
+ Reply to Thread
Results 1 to 9 of 9
-
-
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. -
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
-
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
Last edited by jagabo; 10th Oct 2023 at 07:11.
-
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. -
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! -
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
Similar Threads
-
QTGMC Help...... trying to de interlace VHS having a real mare with errors
By Johnnysh in forum Video ConversionReplies: 31Last Post: 9th Jul 2024, 08:58 -
Help with QTGMC AVIsynth
By indyracingfan in forum Capturing and VCRReplies: 18Last Post: 22nd Nov 2023, 17:21 -
Help with improving this video post QTGMC de-interlace
By VideoYak in forum RestorationReplies: 36Last Post: 14th Sep 2023, 16:19 -
Combining multiple audio files into one with avisynth
By killerteengohan in forum RestorationReplies: 14Last Post: 20th Mar 2021, 01:01 -
QTGMC Avisynth
By juli4561 in forum Video ConversionReplies: 12Last Post: 14th Oct 2020, 17:44