如何生成 Flash 影片 (.flv) 的缩略图

发布于 2024-10-17 04:39:47 字数 95 浏览 9 评论 0原文

我正在使用 ColdFusion,需要从服务器上存储的 Flash 影片生成缩略图。我听说过 ffMpeg 但不知道如何使用它。 (一旦你把它放在你的服务器上,下一步是什么?)

I'm using ColdFusion and need to generate a thumbnail from a flash movie stored on the server. I have heard of ffMpeg but have no idea how to use it. (Once you put it on your server what's the next step?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

美人迟暮 2024-10-24 04:39:47

您可以使用 cfexecute 在 CF 服务器上运行命令行。

Karthik 链接了一篇博客文章,建议使用以下 ffmpeg 语法:

ffmpeg -itsoffset -4 -i test.avi
-vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg

所以你可以这样做:

<cfexecute 
    name="c:\pathto\ffmpeg\ffmpeg.exe"
    arguments="-itsoffset -4  -i #sourcevideo# -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 #thumbnaildestination" />

我没有像这样运行 ffmpeg,你可能需要尝试语法才能得到你喜欢的结果,但是一旦完成,您的工作流程就非常简单了。

您还可能会遇到执行 fmpeg.exe 的问题,具体取决于运行 ColdFusion 服务器实例的用户帐户。

You can use cfexecute to run a command line on the CF server.

Karthik linked a blog post that suggests the following syntax for ffmpeg:

ffmpeg -itsoffset -4 -i test.avi
-vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg

So you could do something like this:

<cfexecute 
    name="c:\pathto\ffmpeg\ffmpeg.exe"
    arguments="-itsoffset -4  -i #sourcevideo# -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 #thumbnaildestination" />

I haven't run ffmpeg like this and you'll likely need to experiment with the syntax to get a result you like, but once you do your workflow is pretty straightforward.

You may also run into issues executing fmpeg.exe depending on the user account your ColdFusion server instance is running as.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文