心灵震撼
帖子: 6
注册时间: 2013-04-22 11:54

求问关于vapoursynth的一个问题

各位,我写好了一个脚本,但是用python读取的时候报错,他弹出一个警示框,内容是:无法定位程序输入点InitializeCriticalSectionEx 于动态链接库 KERNEL32dll上。cmd上的报错是:x264[error]:No input file.Run x264 --help....
Traceback (most recent call last):
File 'avideo.vpy',line 5,in (module)
core.std.LoadPlugin(r'e:'working\AvsWiter\dll\ffms2.dll')
File 'vapoursynthpp.pyx',line 1048,in vapoursynth.Function.__call__(src\cython\vapoursynthpp.c:15779)
vapoursynth.Error:'Failed to load e:\\working\\AvsWiter\\ffms2.dll'
还有个问题,ffms2压缩包里的ffmsindex.exe 说不是有效的32位程序,无法执行。不知道这个exe具体做什么用的

麻烦给问看一下 如何解决?谢谢
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: 求问关于vapoursynth的一个问题

脚本内容和x264参数发出来看看?
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由
心灵震撼
帖子: 6
注册时间: 2013-04-22 11:54

Re: 求问关于vapoursynth的一个问题

dgwxx 写了:脚本内容和x264参数发出来看看?
# -*- coding: UTF-8 -*-
import vapoursynth as vs
import sys
core = vs.Core(accept_lowercase=True)
core.std.LoadPlugin(r'e:\working\AVSWriter\dll\ffms2.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\AllColors.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\AutoYUY2.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\AviShader.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\BlendBob.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\ColorMatrix.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\Convolution3DYV12.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\DGDecode.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\DctFilter.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\Decomb.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\FFMpegSource.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\ImageSequence.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\MSharpen.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\UnDot.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\asharp.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\convolution3d.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\vsfilter.dll')
core.avs.LoadCplugin(r'e:\working\AVSWriter\dll\yadif.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\zlib1.dll')
core.avs.LoadPlugin(r'e:\working\AVSWriter\dll\flash3kyuu_deband.dll')
video = core.ffms2.Source(r'e:\text\90后新生力东南说唱新单-CP.mpg')
video = core.resize.lanczos(video,320,240,format=vs.YUV420P8)
video=core.f3kdb.F3kdb(video, y=32, cb=32, cr=32, sample_mode=2, dither_algo=2, keep_tv_range=True, output_depth=8)
video.output(sys.stdout,y4m=True)

我特意去学了一段时间python(不是程序员),所以可能很多还不太了解,x264我是按照咱们论坛里的例子,因为我要测试成功才会慢慢加编码器参数,所以就是python 这个脚本 | x264 --demuxer y4m --output e:text.mkv
头像
Holy
核心会员
核心会员
帖子: 235
注册时间: 2010-09-24 9:28

Re: 求问关于vapoursynth的一个问题

原因可能是找不到 ffms2.dll 這個文件所以載入失敗,但不曉得您在 1L 貼的報錯是手打的還是複製貼上的……

core.std.LoadPlugin(r'e:'working\AvsWiter\dll\ffms2.dll')
vapoursynth.Error:'Failed to load e:\\working\\AvsWiter\\ffms2.dll'

LoadPlugin 內的 e:\ 變成了 e:',而 dll 這文件夾在下兩行的錯誤訊息卻不見了……不知您 3L 的腳本是否還是同樣的報錯?

以及,要用原生支持 VS 的 f3kdb 的話,應該用 core.std.LoadPlugin() 來載入,而不是 core.avs.LoadPlugin()。
图片
心灵震撼
帖子: 6
注册时间: 2013-04-22 11:54

Re: 求问关于vapoursynth的一个问题

Holy 写了:原因可能是找不到 ffms2.dll 這個文件所以載入失敗,但不曉得您在 1L 貼的報錯是手打的還是複製貼上的……

core.std.LoadPlugin(r'e:'working\AvsWiter\dll\ffms2.dll')
vapoursynth.Error:'Failed to load e:\\working\\AvsWiter\\ffms2.dll'

LoadPlugin 內的 e:\ 變成了 e:',而 dll 這文件夾在下兩行的錯誤訊息卻不見了……不知您 3L 的腳本是否還是同樣的報錯?

以及,要用原生支持 VS 的 f3kdb 的話,應該用 core.std.LoadPlugin() 來載入,而不是 core.avs.LoadPlugin()。
是我手写的 因为我不知道怎么论坛怎么从本地贴图 是我打错了,但本身是没错的。我也不知道怎么找不到dll
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: 求问关于vapoursynth的一个问题

cmd上的报错是:x264[error]:No input file.

需要给出输入文件。pipe过去的话需要给

代码: 全选

-
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない

回到 “VapourSynth”