Log in

View Full Version : VirtualDub2 – Unicode support


tormento
25th March 2022, 10:46
I have tried to feed VirtualDub2 with Unicode based AVS but they don't work, complaining about path not found.

Would be possible to have a proper build? At least x64.

StainlessS
25th March 2022, 11:27
I dont understand what this has to do with VDub2,
does your script load in AvsPMod and eg Potplayer or MPC-HC ?

stax76
25th March 2022, 11:52
Can be patched, but needs some ms dev tool installation, which I'm not sure how to get easily.


$content = @"
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="generic" version="1.0.0.0"/>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
</windowsSettings>
</application>
</assembly>
"@

$fileName = Split-Path ($args[0]) -Leaf
$path = ".\$fileName.manifest"
$content | Out-File $path -Encoding UTF8
$mt = 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\mt.exe'
& $mt -manifest $path "-outputresource:$fileName;1"

Liisachan
26th March 2022, 09:15
The path to AVS file contains non-ANSI characters?
Or... if it's inside of AVS, some functions support UTF-8 explicitly, as in

#utf8.avs
a=FFAudioSource("D:\Unicode Path\☺♥♫\äāà.mkv", utf8=true)
#etc