从代码创建 wmv 文件?

发布于 2024-08-04 15:20:16 字数 686 浏览 6 评论 0原文

我有一个项目,要求最终用户选择一个模板,输入一些信息,然后我的程序应该创建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九命猫 2024-08-11 15:20:16

您可以使用 DirectShow,检查 Samples\Capture\CapWMV

you can use DirectShow, check Samples\Capture\CapWMV here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文