No clue why this is a new thread and why you didn't post in the old thread.
Problem is that the TextSubMod was called with the long filename of the subtitle file and not the 8.3 filename.
With the last version I send you Hybrid will ask your OS for a 8.3 filename for the file.
If the OS reports a shortened file name the output would look similar to:
Code:
# Loading F:\TestClips&Co\files\Subtitles\ass subtitle\vcs 00.ass using VSFilterMod
# shortened subtitle file name to: F:\TESTCL~1\files\SUBTIT~1\ASSSUB~1\VCS00~1.ASS
clip = core.vsfm.TextSubMod(clip=clip, file="F:/TESTCL~1/files/SUBTIT~1/ASSSUB~1/VCS00~1.ASS")
First line shows the original file name
Second line shows the shortened file name
Third line uses the shortened file name with TextSubMod.
Your script looks like this:
Code:
# Loading D:\Y\(字幕备份 ass+srt+sup) 庆余年S01 Qing.Yu.Nian.S01.2019.V2.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin@xixihaha - V2\ASS final - V3\01.ass using VSFilterMod
clip = core.vsfm.TextSubMod(clip=clip, file="D:/Y/(字幕备份 ass+srt+sup) 庆余年S01 Qing.Yu.Nian.S01.2019.V2.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin@xixihaha - V2/ASS final - V3/01.ass")
which means your OS did not return the shortened file name for the file.
So to verify whether your OS can return a shortened file name, what happens if you call:
Code:
dir /x "D:\Y\(字幕备份 ass+srt+sup) 庆余年S01 Qing.Yu.Nian.S01.2019.V2.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin@xixihaha - V2\ASS final - V3\01.ass"
inside a Windows Command Prompt?
also what happens if you open a Windows and enter:
Code:
fsutil 8dot3name query
?
This should report whether 8.3 file names are enabled or not.
State:
0 = 8.3 file creation is enabled on all volumes on the system
1 = 8.3 file creation is disabled on all volumes on the system
2 = 8.3 file creation is enabled per volume on the system (default)
3 = 8.3 file creation is DISABLED on all volumes except the system volume
In case '8.3 file creation' is not enabled for the drive the subtitles are on it can't minimize the file name.
It's possible to enable To Enable 8.3 per volume, by
- Opening an elevated (run as administrator) command prompt
- calling
Code:
fsutil behavior set disable8dot3 <DriveLetter>: 0
in it.
Note that once 8.3 is enabled, this will NOT generate 8.3 file/folder names for the existing files and folders.
So you would have to create a new folder, and copy ('move' does not work) the content of the old folder to that new folder so that the OS will support 8.3 file names for the content of the folder
Cu Selur
Ps.: I just noted that there's a new version of VSFilterMod (
https://github.com/sorayuki/VSFilterMod/releases) so replacing the VSFilterMod.dll with ne newest version might also help)