Win7
共享版本: 20170223-dcd3418 win32 FFmpeg
AVISynth版本: 2.6
在Visual Studio2015 C#窗体应用程序中调用ffmpeg,并使用process.StartInfo.Arguments传递参数和读取avs脚本。工作正常。
avs脚本:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\VSFilter.dll")
a=ImageSource("01.png").trim(1,24)
b=ImageSource("02.png").trim(1,36)
c=ImageSource("03.png").trim(1,40)
d=ImageSource("04.png").trim(1,72)
e=ImageSource("05.png").trim(1,36)
f=ImageSource("06.png").trim(1,40)
video = a + b + c + d + e + f
return video我想添加字幕使用avs脚本,但它不工作。在"return video“参数之前添加subtitle参数会导致:
subtitle("day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)结果错误: avisynth @ 003cdf20脚本错误:函数"subtitle“的参数无效
使用video.subtitle会产生以下结果:
video.subtitle("day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)没有错误,脚本完成,但输出视频上没有字幕。
使用副标题(剪辑)会导致:
subtitle(video, "day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)脚本异常退出,但没有错误消息。
任何指导都将不胜感激。如果有什么我可以澄清的,请告诉我。
发布于 2017-04-30 06:35:34
谢谢,这很管用。
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\VSFilter.dll")
a=ImageSource("01.png").trim(1,24)
b=ImageSource("02.png").trim(1,36)
c=ImageSource("03.png").trim(1,40)
d=ImageSource("04.png").trim(1,72)
e=ImageSource("05.png").trim(1,36)
f=ImageSource("06.png").trim(1,40)
subtitle(a + b + c + d + e + f, "day 111", align=9, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)https://stackoverflow.com/questions/43670549
复制相似问题