C# Cloud Function(未加载 Cloud Functions 中包含的系统包)

问题描述 投票:0回答:0

我是云函数的新手,我正在尝试加载ubuntu中包含的FFMPEG系统包(云函数中包含的系统包|云函数文档|谷歌云)

目前我正在尝试像这样加载 FFMPEG 系统包: Process.Start("ffmpeg",$"-i {temp_input_file} -vn -acodec wav {temp_output_file}");但我收到此错误(尝试使用工作目录“/layers/google.dotnet.publish/publish/bin”启动进程“ffmpeg”时发生错误。没有这样的文件或目录)。

我用 python 做了这个,它工作得很好,但我有一个使用 C# 的要求。

谢谢。

我试过 Process.Start("ffmpeg",$"-i {temp_input_file} -vn -acodec wav {temp_output_file}");

我需要它使用谷歌云功能在 C# 中将 MP4 转换为 WAV。

c# google-cloud-platform ffmpeg google-cloud-functions
© www.soinside.com 2019 - 2024. All rights reserved.