Deinterlacing causes audio sync?
So wits end.
I have captured some footage and on viewing the raw capture it's fine I try to deinterlace with either Hybrid or Avisynth (script in Virtualdub2) QTGMC and the audio is out be at least 2 seconds. If I deinterlace in VirtualDub2 using Yadiff, the audio is fine So Im told Yadiff is ancient and Avisynth QTGMC is the way - but any ideas on getting this to work? Here's my script for VirtualDub2: SetFilterMTMode ("QTGMC", 2) FFMPEGSource2("C:\Users\etcetc.avi", atrack=1) AssumeTFF() QTGMC(preset="fast",EdiThreads=1) BilinearResize(720,576) Prefetch(2) Either way in VD2 or Hybrid I get the same results |
PS: I have googled and googled this. I have tried a few ideas... and nothing has worked. The only other option I havent tried is reinstalling my machine..... which I dont really want to do
|
Mind sharing a short sample please (of the capture, not the encode)?
|
Quote:
|
reply
2 Attachment(s)
Quote:
|
"of the capture, not the encode"
But hey, good thing you uploaded the encodes too. It indicated sth useful. ur frame rate is a mess 48fps??:eek:. Your video (image wise) is faster than your audio. In plain english, you accelerated video, but not the audio. Is the out-of-sync, you are complaining about is: audio being longer than video? or am I not getting your issue right? Share the original untouched interlaced capture file, so we can tell you what is the correct way to de-interlace it. |
1 Attachment(s)
Using Virtualdub2 to deinterlace is fine - but on using this script in VirtualDub2 I get the issues.
SetFilterMTMode ("QTGMC", 2) FFMPEGSource2("C:\Users\etcetc.avi", atrack=1) AssumeTFF() QTGMC(preset="fast",EdiThreads=1) BilinearResize(720,576) Prefetch(2) But here's the capture |
1 Attachment(s)
I didn't notice you were doing PAL.
Your script works, but for some reason, mediainfo says 48fps for your QTGMC video. I have no clue tbh. Something went wrong with your encoding process. I never use Vdub for encoding, so I can't even guess what went wrong. Used your script, on your sample, with x264gui. All fine, the "I told you" yell is on time synced with the pointing finger, fps reported correctly in mediainfo. Also, do not forget to fix AR when encoding, you are doing 5:4. p.s: why the resize? you are resizing to exactly the same source dimension. |
Far be it for me to be commenting on AVISynth scripts, but I make the following observations:
- the source file is RGB/Uncompressed, not lossless - running my QTGMC script, it comes out at 50fps: Code:
AviSource("H:\DigitalFAQ videos\Jayce72\Birthday clip.avi") |
reply
1 Attachment(s)
Great stuff it worked.
So my old code was SetFilterMTMode ("QTGMC", 2) FFMPEGSource2("C:\file etcetc.avi", atrack=1) AssumeTFF() QTGMC(preset="fast",EdiThreads=1) BilinearResize(720,576) Prefetch(2) Now amended your code to: SetFilterMTMode ("QTGMC", 2) AviSource("C:\file etcetc.avi) ConvertToYV24(interlaced=true, matrix="Rec601") AssumeTFF() QTGMC(Preset="Fast", FPSDivisor=1, EdiThreads=1) #FPSDivisor default is 1 gives double framerate; 2 gives orig FR BilinearResize(1440,1080) Prefetch(2) Result in 1440x1080 at 50 fps 4x3 frame |
I really have trouble seeing the difference. Explicitly mentioning that FPSDivisor=1 has no effect since it is the default value anyway.
Code:
FFVideoSource("D:\files\u2-seed\Birthday clip.avi") Either way, as long as it works for op and he is happy, it is all good. |
Quote:
Where's Lollo? I thought he'd be congratulatinng me on delving into AVISynth. :) |
Quote:
Once AviSynth tech, never back! About the original problem, in posted scritps there is a mix of FFMPEGSource2 / FFVideoSource / AviSource. I would debug this :wink2: |
Quote:
Code:
FFMPEGSource2("D:\files\u2\Birthday clip.avi") So no new scripts were provided here, all 3 are the same :question: (except for the fact the op has no color conversion in his post, but I am assuming his file prior to the trim was fine otherwise qtgmc won't be happy) @Hushpower Congrats :D |
Quote:
|
Oh I see
Soon you will become part of the sect... I used to hate scripting/cli :D Quote:
https://www.videohelp.com/software/AvsP You just type the filter name, (it auto completes it for you like code editors), and for the parameters, use the sliders and toolbox on the bottom-right |
Thanks mbassioumy, I had a dabble with avspmod and Hybrid last year but they don't fit into my workflow (Hybrid won't export to LAGS, for example). I do one run with QTGMC through VDub for Flaxen and Colourmill and then into my editor where I do cropping and more colour. I denoise with Neat Video and stabilise with Mercalli on each timeline object if needed. I just don't have the time or patience to conduct separate AVISynth operations on each clip I use.
|
Quote:
*: perks include banging your head against the keyboard when u break dependencies between filters/scripts. Breakfast is not included. |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.