谷歌云数据流(apache beam)可以使用ffmpeg来处理视频或图像数据

时间:2021-03-22 19:20:16

Can a dataflow process use ffmpeg to process video or images and if so what would a sample workflow look like

数据流过程是否可以使用ffmpeg来处理视频或图像,如果是,那么样本工作流程会是什么样子

1 个解决方案

#1


2  

Yes. You can make sure the necessary binaries (together with their dependencies) are available on workers using the --filesToStage pipeline option and have a DoFn in your pipeline that shells out to that binary in order to do the processing.

是。您可以使用--filesToStage管道选项确保工作人员可以使用必要的二进制文件(及其依赖项),并在管道中有一个DoFn,它会发送到该二进制文件以进行处理。

#1


2  

Yes. You can make sure the necessary binaries (together with their dependencies) are available on workers using the --filesToStage pipeline option and have a DoFn in your pipeline that shells out to that binary in order to do the processing.

是。您可以使用--filesToStage管道选项确保工作人员可以使用必要的二进制文件(及其依赖项),并在管道中有一个DoFn,它会发送到该二进制文件以进行处理。