qwe7989199 / aegisub_scripts

Some scripts might be useful for fansub
MIT License
94 stars 10 forks source link

压制MOV出现错误 #8

Open pig3g opened 3 years ago

pig3g commented 3 years ago

出现

Lua reported a runtime error: File "C:/Program Files\Aegisub\automation\autoload\enc-hsub-VS.lua", line 397 <anonymous function at lines 75-538> attempt to index global 'avsfile' (a nil value)

不知道什么原因 配置应该没有出错 AviSynth_260 64位也安装了,是不是对AviSynth安装位置也有什么要求 Aegisub版本 3.2.2 64位

截图20201223005608

qwe7989199 commented 3 years ago

没走到avisynth那步 自己检查一下同目录有没有生成临时的avs文件 报一下自己windows版本

pig3g commented 3 years ago

没走到avisynth那步 自己检查一下同目录有没有生成临时的avs文件 报一下自己windows版本

没有AVS 倒是生成了一个VPY文件,系统版本是Windows10 20H2 19042.685

LeoWang2007 commented 2 years ago

出现

Lua reported a runtime error: File "C:/Program Files\Aegisub\automation\autoload\enc-hsub-VS.lua", line 397 <anonymous function at lines 75-538> attempt to index global 'avsfile' (a nil value)

不知道什么原因 配置应该没有出错 AviSynth_260 64位也安装了,是不是对AviSynth安装位置也有什么要求 Aegisub版本 3.2.2 64位

截图20201223005608

我也遇到了

qwe7989199 commented 2 years ago

出现 Lua reported a runtime error: File "C:/Program Files\Aegisub\automation\autoload\enc-hsub-VS.lua", line 397 <anonymous function at lines 75-538> attempt to index global 'avsfile' (a nil value) 不知道什么原因 配置应该没有出错 AviSynth_260 64位也安装了,是不是对AviSynth安装位置也有什么要求 Aegisub版本 3.2.2 64位 截图20201223005608

我也遇到了

无法复现这个问题,取消勾选”Delete avs“ 再到工作目录看看有没有avs生成

LeoWang2007 commented 2 years ago

出现 Lua reported a runtime error: File "C:/Program Files\Aegisub\automation\autoload\enc-hsub-VS.lua", line 397 <anonymous function at lines 75-538> attempt to index global 'avsfile' (a nil value) 不知道什么原因 配置应该没有出错 AviSynth_260 64位也安装了,是不是对AviSynth安装位置也有什么要求 Aegisub版本 3.2.2 64位 截图20201223005608

我也遇到了

无法复现这个问题,取消勾选”Delete avs“ 再到工作目录看看有没有avs生成

工作目录没有生成avs 生成了一个hardsub.vpy hardsub.vpy

import vapoursynth as vs
core=vs.get_core()
import math
a=core.std.BlankClip(format=vs.RGB24,width=8,height=8,fpsnum=30000000,fpsden=10**6,length=1,color=[255,255,255])
b=core.std.BlankClip(format=vs.RGB24,width=8,height=8,fpsnum=30000000,fpsden=10**6,length=1,color=[231,231,231])
clip=core.std.StackVertical([core.std.StackHorizontal([a,b]),core.std.StackHorizontal([b,a])])
for i in range(math.ceil(math.log(1920/16,2))):
 clip=core.std.StackHorizontal([clip,clip])
for j in range(math.ceil(math.log(1080/16,2))):
 clip=core.std.StackVertical([clip,clip]) 
clip=core.std.CropAbs(clip,1920,1080,0, 0)
clip=core.std.Loop(clip,40000)
#clip=core.lsmas.LWLibavSource(r"?video\?dummy:30.000000:40000:1920:1080:255:255:255:c")
clip=core.vsfm.TextSubMod(clip,r"D:\Desktop\音乐创作\干杯-视频字幕制作\五月天 - 干杯-单句.ass")
clip=core.resize.Lanczos(clip,format=vs.YUV420P8, matrix_s="709")
clip=core.std.Trim(clip,0, 299)
clip.set_output()
KanlentB commented 2 years ago

我在使用的时候出现了同样的问题 没有avs文件出现 win10 21H2

最近换了新电脑,在旧电脑上相同配置能够输出透明背景的mov视频,但是同样的系统和配置过程在新电脑上出了问题,很疑惑

环境变量/系统变量/Path image

vapoursynth是https://github.com/vapoursynth/vapoursynth/releases VapourSynth64-R57.exe

avisynth+是https://github.com/AviSynth/AviSynthPlus/releases

配置如下时 image 出现 image

配置如下时 image 出现 image

配置如下时 image 出现 image

encode name项不选'mov(+alpha)' which to use项不选ffmpeg时 能够输出合成视频