缩略图视频C# [英] Thumbnail video C#
本文介绍了缩略图视频C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以用C#(如第一帧)创建视频的缩略图?
Is it possible to create a thumbnail image of a video in C# (like the first frame)?
小更新:由于我正在使用Flex来显示视频,因此我需要C#中的FLV视频的缩略图.是的,链接到某些库将很有用.
Little update: I'll need a thumbnail image of an FLV video in C# since I'm using Flex to show video's. And yes, links to some libraries would be useful.
推荐答案
我可以想到两个选项:
- 使用外部工具(例如 ffmpeg )来生成缩略图.这可能是解决此问题最常用的解决方案.
- 解析FLV文件,仅将其发送到第一个 I帧的结尾.(您可以在代码中找到解析逻辑,该逻辑使您可以按时间标记查找FLV的中间位置.
- Use an external tool, like ffmpeg, to generate thumbnails. This is probably the most commonly implemented solution to this problem.
- Parse the FLV file and only send the file only to the end of the first I Frame. (You can find the parsing logic in code that allows you to seek into the middle of an FLV by time mark.
这篇关于缩略图视频C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文