NLPguy
7th March 2023, 18:53
Hi,
I've been using an AviSynth+ script without any errors for 2 years.
However, since February 2023, it has been increasing the video length a lot. For example, a 2-hour video is being delivered as a 4-hour video.
Interestingly enough, I have noticed that this problem of doubling the video length does not occur in videos shorter than 1 hour.
I "guess" that it's not the AviSynth+ script that's causing the issue, but rather a Windows update on my Windows 10.
I'm using LSMASHVideoSource to open the file in AviSynth+.
Please,
Does someone know why it is happening?
Have you faced a similar problem?
More details about my PC features, Windows data, and AviSynth+ Script are available below:
Device Name: Tony-PC
Processor: AMD Ryzen 7 2700 Eight-Core Processor 3.20 GHz
Installed RAM: 64.0 GB
Device ID: C34E00E7-08DA-4E24-9800-FB393CD66A3C
Product ID: 00331-20020-00000-AA561
System Type: 64-bit operating system, x64-based processor
Pen and Touch: No pen or touch input is available for this display.
Operating System Name: Microsoft Windows 10 Pro
Version: 10.0.19044 Build 19044
Other Operating System Description: Not available
Operating System Manufacturer: Microsoft Corporation
System Name: TONY-PC
System Manufacturer: System manufacturer
System Model: System Product Name
System Type: x64-based PC
System SKU: SKU
Processor: AMD Ryzen 7 2700 Eight-Core Processor, 3200 Mhz, 8 Core(s), 16 Logical Processor(s)
BIOS Version/Date: American Megatrends Inc. 2407, 01/07/2020
SMBIOS Version: 3.2
Embedded Controller Version: 255.255
BIOS Mode: Legacy
BaseBoard Manufacturer: ASUSTeK COMPUTER INC.
BaseBoard Product: TUF GAMING X570-PLUS_BR
BaseBoard Version: Rev X.0x
Platform Role: Desktop
Secure Boot State: Unsupported
PCR7 Configuration: Binding Not Possible
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume4
Hardware Abstraction Layer: Version = "10.0.19041.2251"
User Name: Tony-PC\Tony
Time Zone: Brasilia Time
Installed Physical Memory (RAM): 64.0 GB
Total Physical Memory: 63.9 GB
Available Physical Memory: 55.3 GB
Total Virtual Memory: 63.9 GB
Available Virtual Memory: 53.1 GB
Page File Space: 0 bytes
Kernel DMA Protection: Off
Virtualization-based security: Not enabled
Device Encryption Support: Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
Virtualization Enabled in Firmware: No
Second Level Address Translation (SLAT) extensions: Yes
Virtualization Enabled: No
Data Execution Prevention Available: Yes
AviSynth+ SCRIPT THAT I'M USING:
SetMemoryMax(1024)
SetFilterMTMode("MT_SERIALIZED", 3)
Loadplugin("m:\temp2\mvtools2.dll")
LoadPlugin("m:\temp2\CNR2_x64.dll")
LoadPlugin("M:\Temp2\LSMASHSource.dll")
LoadPlugin("M:\Temp2\RgTools.dll")
LoadPlugin("M:\Temp2\MPEG2DecPlus64.dll")
Import("M:\Temp2\Zs_RF_Shared.avsi")
Import("M:\Temp2\LSFMod.avsi")
Import("M:\Temp2\SetMTMode.avsi")
####Source=mpeg2source("D:\Paulo Medeiros Junior 19-7-18\dvd\17 dvd e 09 8mm.d2v")
####Source=AVISource("D:\Bolshoi\Lote 02\L02-18 4capt V7800LGPANSVHDMI c TBC Ok.avi")
####Source=DirectShowSource("D:\Valdir Steglich 21.2.22\08 Valdir vhs V17JVCES10 Ok.m2t")
v = LSMASHVideoSource("D:\Bolshoi\Lote 02\L02-45 2capt V19LGPANSVHDMI.mp4", track=0, threads=0, seek_mode=0,
\ seek_threshold=10, dr=False, fpsnum=0, fpsden=1,
\ format="YUV420P8", decoder="", prefer_hw=0, ff_loglevel=0)
a = LSmashAudioSource("D:\Bolshoi\Lote 02\L02-45 2capt V19LGPANSVHDMI.mp4")
Source=AudioDub(v,a)
#Source=DirectShowSource("E:\Carol 18.11.20 - Fazer\03 CA V17JVCES10.mp4", fps = 25, ConvertFPS = True ) #.Crop(0,0-0,-30,true) # para AVI encapsulado AVI Xvid da Avermidia
#Source=DirectShowSource ("E:\Pricilla 3.9.20 - Fazer CM\01 PR V17JVCES10.mp4", fps = 25, ConvertFPS = True )
##Source=DirectShowSource("E:\Decio 1.3.21 - Fazer\02 Decio 6 capt VPAN2JVCES10DV.avi")
SetFilterMTMode("DEFAULT_MT_MODE", 2)
#Conditionalmedian(source,mthres=16,mwidth=7,mheight=5,mp=11,interlaced=true)
#ConditionalDenoise(source,mthres=16,mwidth=7,mheight=5,mp=11,p1=24,p2=12,interlaced=true)
#bob(0,0.5)
chroma=source.Cnr2("oxx",8,16,191,100,255,32,255,false) #VHS
output=MDegrain2i2(chroma,8,2,0)
stackhorizontal(source,output)
return output
#-------------------------------
function MDegrain2i2(clip source, int "blksize", int "overlap", int "dct")
{
Vshift=0 # 2 lines per bobbed-field per tape generation (PAL); original=2; copy=4 etc
Hshift=0 # determine experimentally
overlap=default(overlap,4) # overlap value (0 to 4 for blksize=8)
dct=default(dct,0) # use dct=1 for clip with light flicker
fields=source.SeparateFields() # separate by fields
#This line gets rid of vertical chroma halo. Don't use unless you have the problem
#fields=MergeChroma(fields,crop(fields,Hshift,Vshift,0,0).addborders(0,0,Hshift,Vshift))
super = fields.MSuper(pel=2, sharp=1)
backward_vec2 = super.MAnalyse(isb = true, delta = 2, blksize=blksize, overlap=overlap, dct=dct)
forward_vec2 = super.MAnalyse(isb = false, delta = 2, blksize=blksize, overlap=overlap, dct=dct)
backward_vec4 = super.MAnalyse(isb = true, delta = 4, blksize=blksize, overlap=overlap, dct=dct)
forward_vec4 = super.MAnalyse(isb = false, delta = 4, blksize=blksize, overlap=overlap, dct=dct)
#Increase thSAD for more denoising. Won't do much beyone about 1500
MDegrain2(fields,super, backward_vec2,forward_vec2,backward_vec4,forward_vec4,thSAD=1500)
Prefetch(16)
Weave()
}
Thank you so much!
I've been using an AviSynth+ script without any errors for 2 years.
However, since February 2023, it has been increasing the video length a lot. For example, a 2-hour video is being delivered as a 4-hour video.
Interestingly enough, I have noticed that this problem of doubling the video length does not occur in videos shorter than 1 hour.
I "guess" that it's not the AviSynth+ script that's causing the issue, but rather a Windows update on my Windows 10.
I'm using LSMASHVideoSource to open the file in AviSynth+.
Please,
Does someone know why it is happening?
Have you faced a similar problem?
More details about my PC features, Windows data, and AviSynth+ Script are available below:
Device Name: Tony-PC
Processor: AMD Ryzen 7 2700 Eight-Core Processor 3.20 GHz
Installed RAM: 64.0 GB
Device ID: C34E00E7-08DA-4E24-9800-FB393CD66A3C
Product ID: 00331-20020-00000-AA561
System Type: 64-bit operating system, x64-based processor
Pen and Touch: No pen or touch input is available for this display.
Operating System Name: Microsoft Windows 10 Pro
Version: 10.0.19044 Build 19044
Other Operating System Description: Not available
Operating System Manufacturer: Microsoft Corporation
System Name: TONY-PC
System Manufacturer: System manufacturer
System Model: System Product Name
System Type: x64-based PC
System SKU: SKU
Processor: AMD Ryzen 7 2700 Eight-Core Processor, 3200 Mhz, 8 Core(s), 16 Logical Processor(s)
BIOS Version/Date: American Megatrends Inc. 2407, 01/07/2020
SMBIOS Version: 3.2
Embedded Controller Version: 255.255
BIOS Mode: Legacy
BaseBoard Manufacturer: ASUSTeK COMPUTER INC.
BaseBoard Product: TUF GAMING X570-PLUS_BR
BaseBoard Version: Rev X.0x
Platform Role: Desktop
Secure Boot State: Unsupported
PCR7 Configuration: Binding Not Possible
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume4
Hardware Abstraction Layer: Version = "10.0.19041.2251"
User Name: Tony-PC\Tony
Time Zone: Brasilia Time
Installed Physical Memory (RAM): 64.0 GB
Total Physical Memory: 63.9 GB
Available Physical Memory: 55.3 GB
Total Virtual Memory: 63.9 GB
Available Virtual Memory: 53.1 GB
Page File Space: 0 bytes
Kernel DMA Protection: Off
Virtualization-based security: Not enabled
Device Encryption Support: Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
Virtualization Enabled in Firmware: No
Second Level Address Translation (SLAT) extensions: Yes
Virtualization Enabled: No
Data Execution Prevention Available: Yes
AviSynth+ SCRIPT THAT I'M USING:
SetMemoryMax(1024)
SetFilterMTMode("MT_SERIALIZED", 3)
Loadplugin("m:\temp2\mvtools2.dll")
LoadPlugin("m:\temp2\CNR2_x64.dll")
LoadPlugin("M:\Temp2\LSMASHSource.dll")
LoadPlugin("M:\Temp2\RgTools.dll")
LoadPlugin("M:\Temp2\MPEG2DecPlus64.dll")
Import("M:\Temp2\Zs_RF_Shared.avsi")
Import("M:\Temp2\LSFMod.avsi")
Import("M:\Temp2\SetMTMode.avsi")
####Source=mpeg2source("D:\Paulo Medeiros Junior 19-7-18\dvd\17 dvd e 09 8mm.d2v")
####Source=AVISource("D:\Bolshoi\Lote 02\L02-18 4capt V7800LGPANSVHDMI c TBC Ok.avi")
####Source=DirectShowSource("D:\Valdir Steglich 21.2.22\08 Valdir vhs V17JVCES10 Ok.m2t")
v = LSMASHVideoSource("D:\Bolshoi\Lote 02\L02-45 2capt V19LGPANSVHDMI.mp4", track=0, threads=0, seek_mode=0,
\ seek_threshold=10, dr=False, fpsnum=0, fpsden=1,
\ format="YUV420P8", decoder="", prefer_hw=0, ff_loglevel=0)
a = LSmashAudioSource("D:\Bolshoi\Lote 02\L02-45 2capt V19LGPANSVHDMI.mp4")
Source=AudioDub(v,a)
#Source=DirectShowSource("E:\Carol 18.11.20 - Fazer\03 CA V17JVCES10.mp4", fps = 25, ConvertFPS = True ) #.Crop(0,0-0,-30,true) # para AVI encapsulado AVI Xvid da Avermidia
#Source=DirectShowSource ("E:\Pricilla 3.9.20 - Fazer CM\01 PR V17JVCES10.mp4", fps = 25, ConvertFPS = True )
##Source=DirectShowSource("E:\Decio 1.3.21 - Fazer\02 Decio 6 capt VPAN2JVCES10DV.avi")
SetFilterMTMode("DEFAULT_MT_MODE", 2)
#Conditionalmedian(source,mthres=16,mwidth=7,mheight=5,mp=11,interlaced=true)
#ConditionalDenoise(source,mthres=16,mwidth=7,mheight=5,mp=11,p1=24,p2=12,interlaced=true)
#bob(0,0.5)
chroma=source.Cnr2("oxx",8,16,191,100,255,32,255,false) #VHS
output=MDegrain2i2(chroma,8,2,0)
stackhorizontal(source,output)
return output
#-------------------------------
function MDegrain2i2(clip source, int "blksize", int "overlap", int "dct")
{
Vshift=0 # 2 lines per bobbed-field per tape generation (PAL); original=2; copy=4 etc
Hshift=0 # determine experimentally
overlap=default(overlap,4) # overlap value (0 to 4 for blksize=8)
dct=default(dct,0) # use dct=1 for clip with light flicker
fields=source.SeparateFields() # separate by fields
#This line gets rid of vertical chroma halo. Don't use unless you have the problem
#fields=MergeChroma(fields,crop(fields,Hshift,Vshift,0,0).addborders(0,0,Hshift,Vshift))
super = fields.MSuper(pel=2, sharp=1)
backward_vec2 = super.MAnalyse(isb = true, delta = 2, blksize=blksize, overlap=overlap, dct=dct)
forward_vec2 = super.MAnalyse(isb = false, delta = 2, blksize=blksize, overlap=overlap, dct=dct)
backward_vec4 = super.MAnalyse(isb = true, delta = 4, blksize=blksize, overlap=overlap, dct=dct)
forward_vec4 = super.MAnalyse(isb = false, delta = 4, blksize=blksize, overlap=overlap, dct=dct)
#Increase thSAD for more denoising. Won't do much beyone about 1500
MDegrain2(fields,super, backward_vec2,forward_vec2,backward_vec4,forward_vec4,thSAD=1500)
Prefetch(16)
Weave()
}
Thank you so much!