[Codebox=源代码]……
clip = core.lsmas.LWLibavSource(**********)
clip = core.resize.Spline36(clip, width = goal_width, height = goal_height, format=vs.YUV420P8, matrix_in = 601, matrix_s = "709")
clip.set_output()
[/Codebox]
已知在去掉matrix_s参数的时候脚本可以成功执行,但是一旦加上后就会报错:
Error getting the frame number 32544:
Resize error 2049: unrecognized matrix coefficients
注:当尝试拖动预览框的进度条时,会发现拖不动,并且弹出新报错:
Error getting the frame number 27850:
Resize error 2049: unrecognized matrix coefficients
Error getting the frame number 34033:
Resize error 2049: unrecognized matrix coefficients
Error getting the frame number 30874:
Resize error 2049: unrecognized matrix coefficients
(也就是说无论尝试跳转到哪一帧都会弹出类似的错误提示)
源视频应该没有任何问题,这里我不明白为什么报错?应该如何解决这个问题?
注:尝试matrix=1的结果也是相同的。