ffmpeg图像创建

发布于 2024-07-29 16:45:23 字数 299 浏览 6 评论 0原文

我在我的服务器中使用 ffmpeg,一切都工作正常,除了图像(缩略图)创建我使用此脚本

/usr/bin/ffmpeg -i /var/www/test/test.flv -deinterlace -an -ss 13.45 
                -t 00:00:05 -r 0.01 -y -s 120x72 -vcodec mjpeg 
                -f mjpeg /var/www/test/test.jpg

是否存在 PHP 或 ffmpeg 的问题

谢谢

im using ffmpeg in my server and every thing is working fine except one that the image(thumbnail) creation im using this script

/usr/bin/ffmpeg -i /var/www/test/test.flv -deinterlace -an -ss 13.45 
                -t 00:00:05 -r 0.01 -y -s 120x72 -vcodec mjpeg 
                -f mjpeg /var/www/test/test.jpg

is there any problem with the PHP or ffmpeg

Thanks

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

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

发布评论

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

评论(1

在巴黎塔顶看东京樱花 2024-08-05 16:45:23

我已经在自己的 FLV 文件上进行了一些操作,发现您的 r 值(帧速率)可能太小,至少对于我测试的 FLV 来说是这样。

将其更改为 0.1 甚至 1 之类的值

/usr/bin/ffmpeg -i /var/www/test/test.flv -deinterlace -an -ss 13.45 
                -t 00:00:05 -r 1 -y -s 120x72 -vcodec mjpeg 
                -f mjpeg /var/www/test/test.jpg

I've done some playing with this on my own FLV files and found that the r value (frame rate) you have there is probably too small, at least it was for the FLV I tested on.

Change it to something like .1 or maybe even 1

/usr/bin/ffmpeg -i /var/www/test/test.flv -deinterlace -an -ss 13.45 
                -t 00:00:05 -r 1 -y -s 120x72 -vcodec mjpeg 
                -f mjpeg /var/www/test/test.jpg
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文