在 c# 进程 class 中使用 ffmpeg 的 "Error initializing filter 'drawtext' with args..." 错误是什么?

What is the "Error initializing filter 'drawtext' with args..." error in using of ffmpeg at c# process class?

我使用下面的代码创建视频分辨率并在上面写文字。

    var proc = new System.Diagnostics.Process();
    strin OrginalResolution="nhd";
    proc.EnableRaisingEvents = false;
    proc.StartInfo.FileName = ffmpegPath;
    proc.StartInfo.Arguments = "-i \"" + fileIn +
                               "\" -f mp4 -s " + OrginalResolution + " -vf drawtext=fontfile=/OtherProjects/ConvertProj/ff‌​mpeg/OpenSans-Reg‌​ular.ttf:text=Parsa" \"" + fileOut.Split('.')[0] +
                               ".mp4";
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.CreateNoWindow = false;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.StartInfo.RedirectStandardError = true;

    proc.Start();
    proc.WaitForExit();
    string sdsd = proc.StandardError.ReadToEnd();
    proc.Close();

我遇到了这个问题(下面是 StandardError 的一些字符串输出):

Fontconfig error: Cannot load default config file\r\n[Parsed_drawtext_0       
@0000000002fd8c20] Cannot find a valid font for the family 
Sans\r\n[AVFilterGraph @ 0000000000511660] Error initializing 
filter'drawtext' with args 
'fontfile=/OtherProjects/ConvertProj/ffmpeg/OpenSans-
Regular.ttf:text=parsa'\r\nError opening 
filters!\r\n

cmd 中,进程的相同参数值工作正常。 我读到这个问题与如何在使用时使用 引号 有关 text 属性 of drawtext in ffmpeg.but 我找不到任何 解决此问题的解决方案。
谁能帮帮我?

还有人能帮助我吗?这是一个错误吗? 我在我的代码中使用了任何从 : 逃脱的解决方案,但无法解决这个问题。 找不到font.I删除drawtext的其他过滤器,发现任何一个过滤器都没有错误,但仍然存在错误。

expansion=none 属性 of drawtext 不影响这种情况,因为转义:

它与将工作目录地址值设置为 proc.StartInfo.WorkingDirectory at process.and 一起使用,完整答案在这个 link 中:
https://social.msdn.microsoft.com/Forums/en-US/13dc1101-f1d0-4655-b4af-3f211927d5be/what-is-the-error-initializing-filter-drawtext-with-args-error-in-using-of-ffmpeg-at-c-process?forum=netfxbcl