【发布时间】:2018-08-10 23:46:07
【问题描述】:
我有一个命令,它使用 FFmpeg 生成带有背景和文本的视频,并希望使用 Azure Batch 服务对其进行渲染。我的命令在本地有效:
./ffmpeg -f lavfi -i color=c=green:s=854x480:d=7 -vf "[in]drawtext=fontsize=46:fontcolor=White:text=dfdhjf dhjf dhjfh djfh djfh:x= (w-text_w)/2:y=((h-text_h)/2)-48,drawtext=fontsize=46:fontcolor=White:text=djfh djfh djfh djfh djf jdhfdjf hjdfh djfh jd fhdj:x=(w- text_w)/2:y=(h-text_h)/2,drawtext=fontsize=46:fontcolor=White:text=fh:x=(w-text_w)/2:y=((h-text_h)/2) +48[out]" -y StoryA.mp4
虽然使用 C# 以编程方式生成并在批处理服务返回失败中添加为任务:
cmd /c %AZ_BATCH_APP_PACKAGE_ffmpeg#3.4%\ffmpeg-3.4-win64-static\bin\ffmpeg -f lavfi -i color=c=green:s=854x480:d=7 -vf "[in]drawtext=fontsize =46:fontcolor=White:text=dfdhjf dhjf dhjfh djfh djfh:x=(w-text_w)/2:y=((h-text_h)/2)-48,drawtext=fontsize=46:fontcolor=White:text = djfh djfh djfh djfh djf jdhfdjf hjdfh djfh jd fhdj:x=(w-text_w)/2:y=(h-text_h)/2,drawtext=fontsize=46:fontcolor=White:text=fh:x=(w -text_w)/2:y=((h-text_h)/2)+48[out]" -y StoryA.mp4
ffmpeg 配置有效,池也有效,因为我已经使用具有输入和输出文件的更简单的 ffmpeg 命令对其进行了测试。这个命令没有输入文件,也许这是问题的一部分?
谢谢
【问题讨论】:
标签: azure ffmpeg azure-batch