适用于 Windows 或 .Net 的优质 DVD 刻录组件是什么?

发布于 2024-07-04 16:21:44 字数 363 浏览 5 评论 0原文

我想向我的 .Net 应用程序(在 Windows Server 2003 上运行)添加 DVD 刻录功能,是否有任何好的组件可用? 我使用过Nero附带的NeroCOM sdk,但在最新版本的Nero中它们不再支持该sdk。 我了解到 Microsoft 已经为 Windows XP/2003 创建了 IMAPI2 升级,并且有一个 示例项目 在 CodeProject 但我自己没有使用过它,我不能说它使用起来有多容易/可靠。

我并不真正担心将音频/视频刻录到 DVD,因为这仅用于文件备份目的。

I'd like to add dvd burning functionality to my .Net app (running on Windows Server 2003), are there any good components available? I've used the NeroCOM sdk that used to come with Nero but they no longer support the sdk in the latest versions of Nero. I learned that Microsoft has created an IMAPI2 upgrade for Windows XP/2003 and there is an example project at CodeProject but not having used it myself I can't say how easy/reliable it is to use.

I'm not really worried about burning audio/video to DVD as this is for file backup purposes only.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

深巷少女 2024-07-11 16:21:44

我的 cdrecord 方法确实支持 DVD 刻录,我只是查看了代码,天哪,我忘了我在这门课上投入了多少时间和精力。

cdrecord 可以毫无问题地刻录您扔给它的任何类型的媒体,但由于它是一个独立的应用程序,因此我必须进行大量解析才能获取有用的信息。 如果您有兴趣,我可以挖掘我使用的标志和不同的调用,但不幸的是我无法分享源代码,因为它是为商业项目开发的。

在查看代码时,我还被提醒我将 cdrecord (cdrtools) 切换为 wodim (cdrkit)。 wodim 是 cdrecord 的一个分支,由 debian 团队几年前创建,因为 cdrecord 放弃了 GPL 许可证。

正如我之前所说,这是作为商业应用程序的一部分发布的,我们对 GPL 的解释是,只要您的程序可以在没有外部二进制文件的情况下运行(如果未找到 cdrecord),您就可以从程序中调用外部二进制文件而不会出现问题我们弹出一个对话框,通知用户刻录功能不可用),我们还必须托管 cdrkit 和 cygwin 的源代码,并在我们的分布式程序中包含一份 GPL 副本。 所以基本上我们不会制作“衍生作品”,我们将完全按照原样编译 cdrkit 代码,然后使用生成的二进制文件。

至于 StarBurn SDK,我演示了它,但我没有将它用于已发布的产品,因此我无法真正给出建议或说比它确实有效的更多内容

My cdrecord method did support dvd burning, I just looked over the code, and boy did I forget how much time and effort I put into that class.

cdrecord has no problem burning just about any type of media you throw at it, but since it is a stand alone application, I had to do a lot of parsing to get useful information. I can dig up the flags and different calls I used if you are interested, but unfortunately I cannot share the source as it was developed for a commercial project.

While looking over the code I was also reminded that I switched form cdrecord (cdrtools) to wodim (cdrkit). wodim is a branch of cdrecord made a few years ago by the debian team because cdrecord dropped the GPL license.

Like I said before this was released as part of a commercial application, our interpretation of the GPL was that you can call external binaries from your program without a problem as long as your program can run without the external binaries (if cdrecord wasn't found we popped up a dialog informing the user that burning capabilities were not available) and we also had to host the source for cdrkit and cygwin and include a copy of the GPL with our distributed program. So basically we would not make "derivative works", we would compile the cdrkit code exactly as it was, and then use the produced binaries.

As far as StarBurn SDK, I demoed it, but I didn't use it for a shipped product so I can't really give a recommendation or say much more than it does work

情话墙 2024-07-11 16:21:44

我使用了 codeproject 文章 中的代码,效果非常好。 它是 IMAPI2 的一个很好的包装器,因此只要 IMAPI2 支持您需要执行的操作,.NET 包装器就会执行此操作。

I've used the code from the codeproject article and it works pretty well. It's a nice wrapper around the IMAPI2, so as longs as IMAPI2 supports what you need to do, the .NET wrapper will do it.

烟凡古楼 2024-07-11 16:21:44

您的 cdrecord 方法支持 DVD 刻录吗? 有没有一种简单的方法可以通过应用程序重新分发/安装 cygwin? 乍一看,StarBurn 看起来相当不错,尽管我有点犹豫是否要使用未经验证的库,因为它们必须处理如此复杂的事情(尤其是现在媒体类型的数量),而且 StarBurn 组合页面有点靠前。蓬松的一面。

Did your cdrecord methodology support dvd burning? And is there an easy way to redistribute/install cygwin with an application? StarBurn looks pretty good at first glance, although I'm a little hesitant to go with unproven libraries that have to handle something this complicated (especially with the number of types of media out there now) and the StarBurn portfolio page is a bit on the fluffy side.

违心° 2024-07-11 16:21:44

在我的上一份工作中,我的任务是找到一种跨平台且最好是免费的方式来将我们的应用程序特定文件写入 cd/dvd。 我很快发现在 Windows 上刻录 CD 并不难,但刻录 DVD 却不容易,而且只能在 Windows 上工作。

我最终围绕 cdrecord 编写了一个包装器 cdrecord 是一个开源项目,可以轻松构建西格温。 我将创建一个暂存目录,在其中添加需要写入的文件,在该目录上调用 mkisofs 来制作 cd iso,然后调用 cdrecord 来刻录映像。 如果您的受众仅限于 Windows,那么这可能不是最好的解决方案,但这是我能找到的唯一可以在 Windows、Linux 和 OS X 上使用的解决方案。

另一个值得一试的选项是 StarBurn SDK,我下载了试用版并使用了它,效果很好,但最终不是免费的所以太贵了为了我的目的。

At my last job I was tasked with finding a cross platform and preferably free way to write our application specific files to cd/dvd. I quickly found that writing CD's wasn't hard on windows, but I couldn't write DVD's easily, and that only worked on windows.

I ended up writing a wrapper around cdrecord cdrecord is an open source project that builds easily with cygwin. I would create a staging directory where I added the files that needed to be written, called mkisofs on that directory to make a cd iso, and then called cdrecord to burn the image. This may not be the best solution if you have a strictly windows audience, but it was the only thing I could find that did window, Linux, and OS X.

Another option worht checking out is the StarBurn SDK, I download the trial and used it, it worked well, but in the end it wasn't free so it was too expensive for my purposes.

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