If this rather should be in the audio or capture section, please feel free to move it to the appropriate forum.
I have captured video from an old, slightly damaged VHS tape (Lagarith lossless, raw PCM audio) which has correct in sync audio.
Now, when I put it through Avisynth (to deinterlace with QTGMC and do small corrections like re-sizing etc.) and Virtualdub (to convert with H264, audio to AAC or MP3), the audio goes out of sync at a certain point (not from the beginning). I don't have and never had that problem with tapes that played well and basically had no issues to begin with, which went through the same procedure.
I assume, this happens because of the drop outs? Frames are "lost"? I tried to convert the audio track separately and then muxed it with the (converted) video, but that didn't change anything.
Is there a way to avoid or fix this issue? I never messed with the audio/video interleaving in VD - is that something I should look into?
This the media info for both files.
Original:
Converted:Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 36,8 GiB
Duration : 1 h 24 min
Overall bit rate : 62,4 Mb/s
Writing library : VirtualDub2 build 44282/release
Video
ID : 0
Format : Lagarith
Codec ID : LAGS
Duration : 1 h 24 min
Bit rate : 60,9 Mb/s
Width : 720 Pixel
Height : 576 Pixel
Display aspect ratio : 5:4
Frame rate : 25,000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Bits/(Pixel*Frame) : 5.878
Stream size : 35,9 GiB (98%)
Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 1 h 24 min
Bit rate mode : konstant
Bit rate : 1 411,2 kb/s
Channel(s) : 2 Kanäle
Sampling rate : 44,1 kHz
Bit depth : 16 bits
Stream size : 852 MiB (2%)
Alignment : Ausgerichtet an Interleaves
Interleave, duration : 40 ms (1,00 Video-Frame)
Interleave, preload duration : 500 ms
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 2.50 GiB
Duration : 1 h 24 min
Overall bit rate : 4 246 kb/s
Writing library : VirtualDub2 build 44282/release
Video
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 8 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 8 frames
Codec ID : H264
Duration : 1 h 24 min
Bit rate : 4 100 kb/s
Width : 720 pixels
Height : 560 pixels
Display aspect ratio : 1.286
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.407
Stream size : 2.42 GiB (97%)
Writing library : x264 core 157 r2935M 545de2f
Encoding settings : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4100 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Matrix coefficients : BT.470 System B/G
Audio
ID : 1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : FF-2
Duration : 1 h 24 min
Bit rate : 129 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 78.0 MiB (3%)
Alignment : Split across interleaves
Interleave, duration : 23 ms (0.58 video frame)
Interleave, preload duration : 515 ms
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 18 of 18
Thread
-
-
-
Avi files can be problematic. Remux your avi file with Mkvtoolnix into an mkv container and load it into your avisynth script.
DirectShowSource("l:\video.mkv") -
Last edited by Jupit0r; 8th Oct 2020 at 11:30.
-
I uninstalled it and re-installed it but it doesn't do anything different... is there a way to check if the VFW decoder has been installed correctly?
Could there be conflicts with ffdshow for example (it doesn't show up in any of the settings there)?
btw: Should "Enable null frames" be checked in the VD compression settings? Right now it isn't and I don't think it was before.Last edited by Jupit0r; 8th Oct 2020 at 12:16.
-
-
If you have an copy of the old VirtuaDub you can go to Video -> Compression and see if Lagarith shows up. VirtualDub2 won't work for this because it includes its own private copy of Lagarith. Also keep in mind that if you are using a 32 bit editor/encoder you need 32 bit AviSynth and a 32 bit VFW decoder. If you are running a 64 bit editor/encoder you need 64 bit AviSynth and a 64 bit VFW decoder.
I don't think ffdshow includes a Lagarith decoder (VFW or DirectShow) so it should cause a conflict.
The null frames option only effects compression. The VFW decoder always handles null frames properly regardless of that setting. I recommend you leave the option off to avoid this problem in the future. -
-
This installing issue is really doing my head in. I removed the old install and manually installed the 32 bit. Seems like it's been installed fine, since it shows up under my apps.
But I still get the error in AS. Do I have to register the decompressor in AS somehow first? Could this be an issue with AvsPmod (v2.5.1)? *edit Tried v2.6.3.9 as well, with no change.
32bit AS is installed
Code:2020-09-13 10:42:19.232 Log opened. (Time zone: UTC+02:00) 2020-09-13 10:42:19.232 Setup version: Inno Setup version 5.6.1 (u) 2020-09-13 10:42:19.232 Original Setup EXE: D:\Essentials\Avisynth\AviSynthPlus_3.6.1_20200619_vcredist.exe 2020-09-13 10:42:19.232 Setup command line: /SL5="$2A0770,27937480,168448,D:\Essentials\Avisynth\AviSynthPlus_3.6.1_20200619_vcredist.exe" 2020-09-13 10:42:19.232 Windows version: 10.0.19041 (NT platform: Yes) 2020-09-13 10:42:19.232 64-bit Windows: Yes 2020-09-13 10:42:19.232 Processor architecture: x64 2020-09-13 10:42:19.232 User privileges: Administrative 2020-09-13 10:42:19.238 64-bit install mode: No 2020-09-13 10:42:20.531 Created temporary directory: C:\Users\PMLLR\AppData\Local\Temp\is-9UC7L.tmp 2020-09-13 10:43:34.962 Installing components: main,main\avs32,main\avs64,associations,associations\shellnew,examples,avsmig,avsmig\uninst,custplug 2020-09-13 10:43:34.962 Legacy x86 AviSynth installed: Yes 2020-09-13 10:43:34.963 Legacy x64 AviSynth installed: No 2020-09-13 10:43:34.963 AviSynth+ installed: No
Last edited by Jupit0r; 9th Oct 2020 at 03:38.
-
I thought I did that...
AviSynth 2.6.0 / 2.6.1 Alpha (May 17, 2016) - this version is 32 bit, right? I installed that. I have also AvsPmod_v2.6.3.9_.Windows_x86-32 installed.
I also followed the instructions to install the 32 bit Lagarith on Windows 64 bit (Lagarith.dll is now in the SYSWOW64 directory):
Code:Installing the 32bit version on Windows 64 Extract all the files to a folder Open up a command prompt (start->run: cmd) Change directories to sysWOW64 ("cd C:\windows\syswow64") Type the following (replace example_path with the actual path to the extracted files), then hit enter: rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 0 c:\example_path\lagarith.inf
[Attachment 55370 - Click to enlarge]
I guess, I'll have to re-encode everything I have with UTvideo then... -
It looks like you did everything right. Your script is:
Code:AviSource("l:\video.avi") ?
-
-
I fixed the error, but I'm getting lots of "function duplicates" warnings... is that something to worry about?
[OS/Hardware info]
Operating system: Windows 10 (x64) (Build 19041)
CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz / Sandy Bridge (Core i5)
MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX
4 physical cores / 4 logical cores
[Avisynth info]
VersionString: AviSynth 2.60, build:Mar 31 2015 [16:38:54]
VersionNumber: 2.60
File / Product version: 2.6.0.6 / 2.6.0.6
Interface Version: 6
Multi-threading support: No
Avisynth.dll location: C:\Windows\SysWOW64\avisynth.dll
Avisynth.dll time stamp: 2015-03-31, 06:40:58 (UTC)
PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth\plugins
[C++ 2.5 Plugins (32 Bit)]
C:\Program Files (x86)\AviSynth\plugins\LGhost.dll [0.3.0.1]
[C++ 2.6 Plugins (32 Bit)]
C:\Program Files (x86)\AviSynth\plugins\aWarpsharpMT.dll [2.1.3.0]
C:\Program Files (x86)\AviSynth\plugins\CNR2.dll [2016-06-26]
C:\Program Files (x86)\AviSynth\plugins\ConvertStacked.dll [2020-06-19]
C:\Program Files (x86)\AviSynth\plugins\DePan.dll [2.13.1.6]
C:\Program Files (x86)\AviSynth\plugins\DePanEstimate.dll [2.10.0.4]
C:\Program Files (x86)\AviSynth\plugins\DirectShowSource.dll [2.6.0.3]
C:\Program Files (x86)\AviSynth\plugins\ffms2.dll [2020-08-22]
C:\Program Files (x86)\AviSynth\plugins\fft3dfilter.dll [2.6.0.0]
C:\Program Files (x86)\AviSynth\plugins\Ghostbuster32.dll [2019-02-16]
C:\Program Files (x86)\AviSynth\plugins\ImageSeq.dll [2020-06-19]
C:\Program Files (x86)\AviSynth\plugins\LSMASHSource.dll [2020-07-27]
C:\Program Files (x86)\AviSynth\plugins\masktools2.dll [2.2.26.0]
C:\Program Files (x86)\AviSynth\plugins\msharpen.dll [2013-11-30]
C:\Program Files (x86)\AviSynth\plugins\mvtools2.dll [2.7.43.0]
C:\Program Files (x86)\AviSynth\plugins\nnedi3.dll [0.9.4.57]
C:\Program Files (x86)\AviSynth\plugins\RgTools.dll [1.0.0.0]
C:\Program Files (x86)\AviSynth\plugins\Shibatch.dll [2020-06-19]
C:\Program Files (x86)\AviSynth\plugins\TCPDeliver.dll [2.6.0.7]
C:\Program Files (x86)\AviSynth\plugins\TimeStretch.dll [2020-06-19]
C:\Program Files (x86)\AviSynth\plugins\VDubFilter.dll [2020-06-19]
[Scripts (AVSI)]
C:\Program Files (x86)\AviSynth\plugins\colors_rgb.avsi [2015-03-30]
C:\Program Files (x86)\AviSynth\plugins\EdgeCleanerv1.04.avsi [2020-09-13]
C:\Program Files (x86)\AviSynth\plugins\FFMS2.avsi [2015-05-22]
C:\Program Files (x86)\AviSynth\plugins\QTGMC.avsi [2020-09-09]
C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi [2020-09-09]
C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi [2020-09-09]
[Uncategorized DLLs (32 Bit)]
C:\Program Files (x86)\AviSynth\plugins\libfftw3-3.dll [2016-07-30]
[Uncategorized files]
C:\Program Files (x86)\AviSynth\plugins\colors_rgb.txt [2020-05-20]
C:\Program Files (x86)\AviSynth\plugins\LGhost.auf.avs [2002-12-23]
[Plugin errors/warnings]
__________________________________________________ ______________________________
Function duplicates:
"ContraSharpeningHD" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"ContraSharpeningHD" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"DirectShowSource" : "[InternalFunction]"
"DirectShowSource" : "[PluginFunction]"
"Dither_Luma_Rebuild" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"Dither_Luma_Rebuild" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"Dither_YUY2toInterleaved" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"Dither_YUY2toInterleaved" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"Dither_YUY2toPlanar16" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"Dither_YUY2toPlanar16" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"Dither_YUY2toPlanar" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"Dither_YUY2toPlanar" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"ImageReader" : "[InternalFunction]"
"ImageReader" : "[PluginFunction]"
"ImageSourceAnim" : "[InternalFunction]"
"ImageSourceAnim" : "[PluginFunction]"
"ImageSource" : "[InternalFunction]"
"ImageSource" : "[PluginFunction]"
"ImageWriter" : "[InternalFunction]"
"ImageWriter" : "[PluginFunction]"
"LoadVirtualdubPlugin" : "[InternalFunction]"
"LoadVirtualdubPlugin" : "[PluginFunction]"
"MinBlur" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"MinBlur" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"sbr" : "C:\Program Files (x86)\AviSynth\plugins\SMDegrain v3.1.2d.avsi"
"sbr" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
"SSRC" : "[InternalFunction]"
"SSRC" : "[PluginFunction]"
"SuperEQ" : "[InternalFunction]"
"SuperEQ" : "[PluginFunction]"
"TCPServer" : "[InternalFunction]"
"TCPServer" : "[PluginFunction]"
"TCPSource" : "[InternalFunction]"
"TCPSource" : "[PluginFunction]"
"TimeStretch" : "[InternalFunction]"
"TimeStretch" : "[PluginFunction]"
"undefined" : "[InternalFunction]"
"Undefined" : "C:\Program Files (x86)\AviSynth\plugins\Zs_RF_Shared.avsi"
Similar Threads
-
Captured Video with Audio Drift
By dellsam34 in forum CapturingReplies: 21Last Post: 18th Jan 2018, 22:44 -
Virtualdub captured video has full horizontal lines when played on VLC
By zymok in forum CapturingReplies: 3Last Post: 13th Aug 2017, 09:04 -
Is it possible to manipulate audio channels in AVI files using avisyth?
By digicube in forum Video ConversionReplies: 11Last Post: 31st Mar 2017, 17:14 -
VirtualDub audio out of sync, other video players all in sync
By a1s2d3f4 in forum Newbie / General discussionsReplies: 7Last Post: 11th Apr 2016, 22:36