从代码创建 wmv 文件?
我有一个项目,要求最终用户选择一个模板,输入一些信息,然后我的程序应该创建一个 wmv 电影文件,其中输入的信息已编码在电影中。
因此,从我的角度来看,我希望有一个框架可以让我向电影添加图形和文本。像这样:
movie.addframes(framecount, templateimage)
movie.frame(x).drawtext(x,y,text,font,size,color)
movie.frame(x).drawRectangle(rect,color,bordersize)
movie.frame(x).drawImage(rect,borderstyle,bordersize, image,sizemode)
movie.save(filename,filetype)
这存在吗?
我搜索过,只找到有关 ffmpeg 的信息,但似乎没有达到我想要的效果。
我不需要它是实时编码。
我不在乎框架/库是否昂贵。
如果有关于如何使用 DirectX 或 DirectShow 执行此操作的信息,并指出实际工作的 vb.net 示例,那么我也会很高兴。 ;)(相信我,我尝试过搜索,但没有找到任何内容。)
我还没有找到任何有关如何使用 Windows Media Encoder 的好信息,但如果这样做,Windows Media Encoder 似乎是可行的方法是我自己..
I have a project where the requirements is that a end user will select a template, enter some information and then my program should create a wmv movie file that has the information entered encoded in the movie.
So from my perspective I would like to have a framework that allows me to add graphics and text to a movie. Something like this:
movie.addframes(framecount, templateimage)
movie.frame(x).drawtext(x,y,text,font,size,color)
movie.frame(x).drawRectangle(rect,color,bordersize)
movie.frame(x).drawImage(rect,borderstyle,bordersize, image,sizemode)
movie.save(filename,filetype)
Does this exists?
I have searched and only found information about ffmpeg that doesn't seem to do what I want.
I don't need it to be real-time encoding.
I don't care if the framework/library is expensive.
If there are information of how to do this with for example DirectX or DirectShow and pointing to real working vb.net examples, then ill be happy too. ;) (Believe me, I have tried to search and haven't found anything.)
I have not found any good information about how to use Windows Media Encoder for this, but It seems like Windows Media Encoder is the way to go if doing it myself..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 DirectShow,检查 Samples\Capture\CapWMV
you can use DirectShow, check Samples\Capture\CapWMV here