我想用user32 api库制作视频播放器,如何使用它? [英] I want to make video player using user32 api library, how to use it?

查看:68
本文介绍了我想用user32 api库制作视频播放器,如何使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想使用其他直接控制或任何第三方工具。我想用图片框制作视频播放器。如何从媒体文件中获取图像帧和音频?

I don''t want to user other direct control or any third party tool. I want to make video player using picture box. How fetch image frame and audio from media file?

推荐答案

如何从媒体文件中获取图像帧和音频?



极度困难。



您很少能找到一个包含全帧图像的视频,您可以选择并在图片框中显示。更常见的是,视频和音频被压缩成各种格式和相同的速率,必须使用称为编解码器的驱动程序解码。



user32库不会出现帮助您解码这些东西。它是用于创建和管理您在屏幕上看到的窗口,窗口消息处理,数据交换和各种其他用户界面位,但是没有用于解码视频和音频并进行渲染。



BTW,忘记使用图片框。你根本不需要它。



也许你应该调查DirectShow?
How fetch image frame and audio from media file?

With extreme difficulty.

Rarely do you find a video with a stream of full frames that you can just pick out and show in a picturebox. FAR more commonly the video and audio are compressed into various formats and same rates which must be decoded using drivers called "codecs".

The user32 library isn''t going to help you with decoding this stuff. It''s for the creation and management of windows you see on screen, window message handling, data exchange and various other user interface bits, but NOTHING for decoding video and audio and rendering it.

BTW, forget using a picturebox. You don''t need it at all.

Perhaps you should be looking into DirectShow instead?


这篇关于我想用user32 api库制作视频播放器,如何使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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