I'm not sure of the terminology I'm looking for here. In short, in the example below, instead of .qtgmc() on the second line I want to use the last 4 lines of the code. The q,d, conditionalfilter, and srestore. How would I write that so I can append it in the same way qtgmc() is on line 2. I hope that makes sense.
HTML Code:part1=Trim(170,5370) part2=Trim(5370,0).qtgmc() part1+part2 q = assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC") # for debugging purposes, remove subtitle for production d = ChangeFPS(48) ConditionalFilter(d, q, d, "IsCombedTIVTC(cthresh=4)") srestore(frate=24)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 9 of 9
Thread
-
-
Code:
ConditionalFilter(ChangeFPS(48), assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC"), ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24)
-
Jagabo, I've been trying to crack this all evening. The video I'm trying to encode is made of footage, each with their own issues. The middle footage needs to be combed. I'm trying to use your one line method above but am getting error I'm having trouble debugging. Do you have any other suggestions I can try? I feel like I'm missing a simple concept with the syntax. Below is where I currently am.
Code:part1=Trim(174,13450) part2=Trim(13451,125230).ConditionalFilter(ChangeFPS(48), assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC"), ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) part3=Trim(125231,128128).QTGMC(preset="Medium").selecteven() part1+part2+part3
Last edited by LaserBones; 13th Aug 2024 at 23:56.
-
It's just simple algebraic substitution:
Code:Trim(174,13450)+Trim(13451,125230).ConditionalFilter(ChangeFPS(48), assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC"), ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24)+Trim(125231,128128).QTGMC(preset="Medium").selecteven()
-
Thanks Jagabo. I should have been more clear. What I was saying is that the conditional filter doesn't work as a single line. I'm getting this error.
Script error: Invalid arguments to function 'ConditionalFilter'.
It works fine when I set it up as a multiline script but trying to include it in a single line, as it is in part 2, is causing an error that I'm having a hard time troubleshooting. -
By proceeding ConditionalFilter with Trim, it'd be taking that clip as the first video, but then you've given it three more, so you'd need to do....
Code:part1 = Trim(174,13450) part2 = ConditionalFilter(Trim(13451,125230).ChangeFPS(48), Trim(13451,125230).AssumeTFF().QTGMC().Subtitle("QTGMC"), Trim(13451,125230).ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) part3 = Trim(125231,128128).QTGMC(preset="Medium").selecteven() part1 + part2 + part3 or part1 = Trim(174,13450) part2 = Trim(13451,125230).ChangeFPS(48).ConditionalFilter(Trim(13451,125230).AssumeTFF().QTGMC().Subtitle("QTGMC"), Trim(13451,125230).ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) part3 = Trim(125231,128128).QTGMC(preset="Medium").selecteven() part1 + part2 + part3
Code:part1 = Trim(174,13450) part2 = Trim(13451,125230) part2 = ConditionalFilter(part2.ChangeFPS(48), part2.AssumeTFF().QTGMC().Subtitle("QTGMC"), part2.ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) part3 = Trim(125231,128128).QTGMC(preset="Medium").selecteven() part1 + part2 + part3 or part1 = Trim(174,13450) part2 = Trim(13451,125230) part2 = part2.ChangeFPS(48).ConditionalFilter(part2.AssumeTFF().QTGMC().Subtitle("QTGMC"), part2.ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) part3 = Trim(125231,128128).QTGMC(preset="Medium").selecteven() part1 + part2 + part3
I tend to assign the "last" value to a variable so I don't confuse myself, but that's optional.
Code:Clip = Last A = Clip.Trim(174,13450) B = Clip.Trim(13451,125230) C = B.ChangeFPS(48) D = B.AssumeTFF().QTGMC().Subtitle("QTGMC") E = ConditionalFilter(C, D, C, "IsCombedTIVTC(cthresh=4)").srestore(frate=24) F = Clip.Trim(125231,128128).QTGMC(preset="Medium").SelectEven() A + E + F or A = Last B = A.ChangeFPS(48) C = A.AssumeTFF().QTGMC().Subtitle("QTGMC") D = ConditionalFilter(B, C, B, "IsCombedTIVTC(cthresh=4)").srestore(frate=24) E = A.QTGMC(preset="Medium").SelectEven() A.Trim(174,13450) + D.Trim(13451,125230) + E.Trim(125231,128128)
Last edited by hello_hello; 16th Aug 2024 at 12:19.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
Oh, sorry. I think this is what you want:
Code:Trim(174,13450) \ + ConditionalFilter(Trim(13451,125230).ChangeFPS(48), Trim(13451,125230).assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC"), Trim(13451,125230).ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) \ + Trim(125231,128128).QTGMC(preset="Medium").selecteven()
Code:Trim(174,13450) + ConditionalFilter(Trim(13451,125230).ChangeFPS(48), Trim(13451,125230).assumetff().QTGMC(TR0=2, TR1=2, TR2=1, Rep0=1, Rep1=0, Rep2=4, DCT=5, ThSCD1=300, ThSCD2=110, SourceMatch=3, Lossless=2, Sharpness=0.1, Sbb=0, MatchPreset="slow", NoiseProcess=2, GrainRestore=0.0, NoiseRestore=0.4, NoisePreset="slow", StabilizeNoise=false, NoiseTR=0, NoiseDeint="bob").Subtitle("QTGMC"), Trim(13451,125230).ChangeFPS(48), "IsCombedTIVTC(cthresh=4)").srestore(frate=24) + Trim(125231,128128).QTGMC(preset="Medium").selecteven()
Last edited by jagabo; 16th Aug 2024 at 15:22.
-
Something else that may help you understand how AviSynth treats video and audio streams: when you don't explicitly reference a stream by name, the name "last" is assumed by AviSynth. So a script like:
Code:AviSource("filename.avi") QTGMC()
Code:last = AviSource("filename.avi") last = QTGMC(last) return(last)
Code:AviSource("filename.avi") q = QTGMC() return(last)
Similar Threads
-
curl multi-line
By whs912km in forum Newbie / General discussionsReplies: 10Last Post: 2nd Mar 2024, 08:55 -
Can I reduce the line noise with either handbrake or TMPG mastering
By victoriabears in forum RestorationReplies: 12Last Post: 3rd Jan 2024, 13:55 -
How to add an empty line after every line?
By Nico Darko in forum SubtitleReplies: 17Last Post: 25th Jan 2023, 22:24 -
Divide each line of text into new subtitle line
By martanius in forum SubtitleReplies: 1Last Post: 11th Apr 2021, 16:21 -
Multi-line, heavily stylized subtitles (ASS) possible on Blu-ray?
By Deli295 in forum Authoring (Blu-ray)Replies: 12Last Post: 25th Jan 2021, 15:41