Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'vapoursynth.VideoFrame' object is not subscriptable #9

Closed
splinter21 opened this issue Jan 13, 2022 · 4 comments
Closed

'vapoursynth.VideoFrame' object is not subscriptable #9

splinter21 opened this issue Jan 13, 2022 · 4 comments

Comments

@splinter21
Copy link

splinter21 commented Jan 13, 2022

Error on frame 15 request:
'vapoursynth.VideoFrame' object is not subscriptable

py3.6.4
vs.core.version:
VapourSynth Video Processing Library\nCopyright (c) 2012-2018 Fredrik Mellbin\nCore R44\nAPI R3.5\nOptions: -\n
torch.version:
1.10.0+cu111

vpy:
import vapoursynth as vs
import sys
sys.path.append("C:\C\Transcoding\VapourSynth\core64\plugins\Scripts")
import mvsfunc as mvf
sys.path.append(r"C:\Users\liujing\AppData\Local\Programs\Python\Python36\Lib\site-packages\vsrealesrgan")
from vsrealesrgan import RealESRGAN

core = vs.get_core(accept_lowercase=True)
source = core.ffms2.Source(sourcename)
source = mvf.ToRGB(source,depth=32)
source = RealESRGAN(source)
source= mvf.ToYUV(source,depth=16)
source.set_output()

@HolyWu
Copy link
Owner

HolyWu commented Jan 14, 2022

Your VapourSynth version is too outdated. Try updating first.

@HolyWu HolyWu closed this as completed Jan 14, 2022
@splinter21
Copy link
Author

Your VapourSynth version is too outdated. Try updating first.

I update py version to py3.9.5 now.
@HolyWu When I update the version of vs to R54, I meet the same question when processing "source = RealESRGAN(source)"


When I update it to >=R54-test2-API4 (R54-test2-API4,R55,R56,R57), error happen when processing "source = mvf.ToRGB(source,depth=32)":
File "C:\Program Files\Python39\lib\site-packages\mvsfunc.py", line 446, in ToRGB
clip = core.fmtc.matrix(clip, mat=matrix, fulls=fulls, fulld=fulld, col_fam=vs.RGB)
File "src\cython\vapoursynth.pyx", line 2531, in vapoursynth.Function.call
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 0: invalid start byte

(But "source = RealESRGAN(source)" can be processed.)
mvsfunc.py is from https://github.com/HomeOfVapourSynthEvolution/mvsfunc/blob/master/mvsfunc.py, the latest version.

What can I do to process the whole pipeline?

@splinter21
Copy link
Author

I update the version of fmtconv.dll and fix the problem QAQ.
So these pytorch scripts for vs only supports version > R54, am I right?

@HolyWu
Copy link
Owner

HolyWu commented Jan 15, 2022

Yes, the version requirement is specified here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants