如何在PictureBox中显示视频文件缩略图? [英] How to display Video File Thumbnails in PictureBox?

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

问题描述

我想在图片框中显示视频缩略图。我一直在寻找答案,但我发现的大部分内容(.GetThumbnailImage,System.Drawing.Image等)似乎只适用于图像,而不适用于视频。我想要做的就是显示与Windows文件浏览器相同的缩略图。我安装了ffmpeg,但是我发现的关于如何通过vb.net使用的文章对于像我这样的新手来说有点混乱。请帮助。

Hi, I would like to display a video thumbnail in a picturebox. I've been searching for answers, but most of what I've found (.GetThumbnailImage, System.Drawing.Image, etc.) seem to only work for images, not video. All I want to do is display the same thumbnail as windows file explorer. I have ffmpeg installed, but the articles that I've found on how to it use through vb.net are a bit confusing for a novice like me. Please help.

推荐答案

中心线索是你将自己描述为新手。文章告诉你如何做到这一点。新手应该学习他们选择的语言,而不是试着写一个最前沿的应用程序。



话虽如此, this [ ^ ]文章描述了你需要什么,我想。我会缓存缩略图,而不是在需求点生成缩略图。
The central clue is that you describe yourself as a novice. The articles are telling you how to do it. A novice should learn their language of choice, not try to write a cutting edge app.

Having said that, this[^] article describes what you need, I think. I would cache the thumbnails, not generate them at the point of demand.


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

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