相关疑难解决方法(0)

FFmpeg drawtext多行

我有代码:

import subprocess , os

ffmpeg = "C:\\ffmpeg_10_6_11.exe"
inVid = "C:\\test_in.avi"
outVid = "C:\\test_out.avi"

if os.path.exists( outVid ):
os.remove( outVid )
proc = subprocess.Popen(ffmpeg + " -i " + inVid + ''' -vf drawtext=fontfile=/Windows/Fonts/arial.ttf:text="onLine1 onLine2 onLine3":fontcolor=white:fontsize=20 -y ''' + outVid , shell=True, stderr=subprocess.PIPE)
proc.wait()
print proc.stderr.read()
os.startfile( outVid )
Run Code Online (Sandbox Code Playgroud)

将文本写入视频文件.但是我想写出许多行文本,而不仅仅是在一行上.

请帮忙.谢谢

ffmpeg line multiline drawtext

4
推荐指数
4
解决办法
1万
查看次数

标签 统计

drawtext ×1

ffmpeg ×1

line ×1

multiline ×1