digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Capture, Record, Transfer (https://www.digitalfaq.com/forum/video-capture/)
-   -   Running Deinterlace Code - audio issues (https://www.digitalfaq.com/forum/video-capture/12577-running-deinterlace-code.html)

22west 02-23-2022 01:32 PM

Running Deinterlace Code - audio issues
 
Hi All,

When I deinterlace my video with the code below I get a nicely deinterlaced video - but the audio is out of sync. For a 1 hour video the delay near the end of the video is significant. Note that the source .avi (the interlaced capture file) is completely in sync.

SetFilterMTMode("QTGMC", 2)
FFMPEGSource2("Video 2.avi", atrack=1)
ConvertToYV12()
AssumeTFF()
QTGMC(preset="Slower", EdiThreads=3)
BilinearResize(720,540)
Prefetch(10)

I read in another DigitalFAQ thread (cant find it now) that if I change FFMEGSource2 to AVISource, the audio will not be out of sync. See new script below :

SetFilterMTMode("QTGMC", 2)
AVISource("Video 2.avi", atrack=1)
ConvertToYV12()
AssumeTFF()
QTGMC(preset="Slower", EdiThreads=3)
BilinearResize(720,540)
Prefetch(10)

When I go ahead and do this the video is again nicely deinterlaced again but now the audio is gone completely - no sound at all.

Does anyone know what might be the issue here?
The script is written using AvsPmod v2.6.6.7 and I am running it in VirtualDub 1.10.4.

Note - I am quite new to using this code so go easy on me. :)

Thanks,
22west

msgohan 02-23-2022 02:24 PM

Load a script with just the single line AVISource("Video 2.avi") and nothing else. Is there audio?

22west 02-23-2022 03:31 PM

Ok, good suggestion. I just tried that and again no audio.

-- merged --

Sorry my mistake - I didn't do exaclty what you said. What I did was deleted all the other lines and ran what was left:
Code:

AVISource("Video 2.avi", atrack=1)
This gave no audio. So then I ran what you said :

Code:

AVISource("Video 2.avi")
With this I get audio.

traal 02-23-2022 03:52 PM

If the source video is VBR VFR then it will go out of sync.

-- merged --

Sorry, I meant VFR (variable frame rate).

I don't know if it's possible to deinterlace VFR video, but you can always decomb, and somehow preserve the frame timings.


All times are GMT -5. The time now is 02:02 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.