gzycode39 / docker-vapoursynth-yuuno

A docker image that integrates vapoursynth, yuuno, eac3to and mkvtoolnix.
21 stars 3 forks source link

Error--UnboundLocalError #5

Open henry-tujia opened 3 years ago

henry-tujia commented 3 years ago
henry-tujia commented 3 years ago

怀疑 执行last, awsmf_name = copyscript(script, folder + '.scripts/extract.vpy')出现错误

henry-tujia commented 3 years ago

初始化 last变量后,可以正确运行,但是报出

Script evaluation failed:
Python exception: invalid syntax (extract.vpy, line 33)

Traceback (most recent call last):
  File "src/cython/vapoursynth.pyx", line 2241, in vapoursynth.vpy_evaluateScript
  File "/encode/out-encode/.scripts/extract.vpy", line 33
    ext = awsf.SelectRangeEvery(clip=, every=3000, length=45, offset=10000)
                                     ^
SyntaxError: invalid syntax

(1/6) Processing encode with --crf 17

Traceback (most recent call last):
  File "vstest.py", line 332, in <module>
    encode(test + ' ' + ' '.join(codec_opts_passed) + ' ' + vbv_opts + ' ' + info)
TypeError: can only concatenate str (not "_wrap_close") to str
henry-tujia commented 3 years ago

报错原因为 encode.ipynb 中缺少 src.set_output(),添加后报出以下:

Script evaluation failed:
Python exception: Index: Can't open '/encode/After.the.Storm.2016.BluRay.Remux.1080p.AVC.TrueHD.5.1-HiFi.mkv'

Traceback (most recent call last):
  File "src/cython/vapoursynth.pyx", line 2244, in vapoursynth.vpy_evaluateScript
  File "src/cython/vapoursynth.pyx", line 2245, in vapoursynth.vpy_evaluateScript
  File "/encode/out-encode/.scripts/extract.vpy", line 12, in <module>
    src = core.ffms2.Source(source=r'/encode/After.the.Storm.2016.BluRay.Remux.1080p.AVC.TrueHD.5.1-HiFi.mkv')
  File "src/cython/vapoursynth.pyx", line 2069, in vapoursynth.Function.__call__
vapoursynth.Error: Index: Can't open '/encode/After.the.Storm.2016.BluRay.Remux.1080p.AVC.TrueHD.5.1-HiFi.mkv'
so-y commented 2 years ago

这是第一次运行该脚本吗,之前是否 demux 失败过 建议完全删除相关文件和目录后再次重试