如何使用FFMpeg生成jpg文件?

问题描述

我知道如何使用 FFMpeg 从视频中创建和保存图像,但我的目标是返回图像文件,而不是保存它!

我有这个返回 system.in 实例的函数

FFMpeg/Media/Frame

我的目标是将它与 Laravel Storage 的 private function generateVideoThumbnail($file){ $seconds = 15; $ffmpeg = FFMpeg::create(); $video = $ffmpeg->open($file); $frame = $video->frame(TimeCode::fromSeconds($seconds)); //$frame->save('thumbnail.jpg'); <------- This saves the image return $frame; } 函数一起使用。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)