从一组.bmp文件创建WMV文件 [英] Create WMV file from a group of .bmp files

查看:102
本文介绍了从一组.bmp文件创建WMV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


谁能找到从.bmp文件创建WMV文件的解决方案?
我的意思是加载bmp文件并从其句柄复制位并写入WMV文件? 我想使用以下类完成此操作:

IWMWriter
IWMProfile
INSSBuffer
IWMProfileManager
IWMStreamConfig

在此先感谢...

Hi,
Can anyone find a solution to create WMV file from .bmp files???
I mean load the bmp file and copy the bits from its handle and write to WMV file???
And i want to get this done using the following classes:

IWMWriter
IWMProfile
INSSBuffer
IWMProfileManager
IWMStreamConfig

Thanks in advance...

推荐答案

一种方法是在DirectShow中使用FilterGraph机制...

您将必须实现CSourceStream- http ://msdn.microsoft.com/zh-CN/library/windows/desktop/dd757807(v = vs.85).aspx [关于如何为初学者开发DirectShow源过滤器的简短教程 [
One way is to use the FilterGraph mechanisms in DirectShow ...

You''ll have to implement a CSourceStream - http://msdn.microsoft.com/en-us/library/windows/desktop/dd757807(v=vs.85).aspx[^], and here A Brief Tutorial On How To Develop DirectShow Source Filter For Beginners[^]

The ASF writer should be used to create the WMV; this thing is a bit of a pig to configure if you don''t want the default

Your CSourceStream will simply wait to be called on FillBuffer, load the next bitmap, copy it into the buffer, set the media presentation times and return


这篇关于从一组.bmp文件创建WMV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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