如何生成flv视频的视频缩略图? [英] How to Generate Video thumbnail of flv video?

查看:552
本文介绍了如何生成flv视频的视频缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用AS3 SWF播放器来生成.Flv格式歌曲的视频缩略图..

I want to Generate Video thumbnail of .Flv format song i''m using AS3 swf player ..

if it is possible then can anyone tell me how to do this?

推荐答案



您可以通过使用ffmpeg.exe文件来做到这一点.


您可以从以下路径获取: http://ffmpeg.org/ [ ^ ]

查找提取图像的代码.

提取单个图像的简单示例:

ffmpeg -i video.flv -r 1 -an image.jpg

-i video.flv表示输入文件
-r 1表示重复一次. (您可以拍摄多个快照.)
-an禁用录音.
image.jpg输出文件名

更高级的示例:

ffmpeg -i video.flv -an -s 320×240 -ss 00:00:02 -r 1 -y%d.jpg

-s 320×240指定输出的帧大小(默认为原始视频的大小.)
-ss 00:00:02以秒为单位寻找给定的时间位置.
Hi,

You can do this by using ffmpeg.exe file.


you can get this from this path : http://ffmpeg.org/[^]

find code to extract image.

Simple example to extract a single image:

ffmpeg -i video.flv -r 1 -an image.jpg

-i video.flv indicates the input file
-r 1 means repeat once. (You can take multiple snapshots.)
-an Disable audio recording.
image.jpg Output filename

More advanced example:

ffmpeg -i video.flv -an -s 320×240 -ss 00:00:02 -r 1 -y %d.jpg

-s 320×240 specifies the frame size of the output (Default is the size of the original video.)
-ss 00:00:02 Seek to given time position in seconds.


这篇关于如何生成flv视频的视频缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆