在没有第 3 方库的情况下在 .NET 中刻录(视频)DVD

发布于 2024-11-05 05:41:49 字数 204 浏览 0 评论 0原文

也许这是一个愚蠢的问题......我正在研究一个项目,需要我将视频刻录到 DVD,以便传统 DVD 播放器可以播放它。我发现了几个可以做到这一点的“第三方工具”,这很棒,也是我可能会采取的方向。

但是,我一生都无法理解如何坐下来将视频写入 DVD。

我知道这在很大程度上是学术性的(只需使用可用的库!)不过,我真的很想得到一些关于我如何/可以自己做这件事的指导。

Maybe this is a stupid question....I'm looking at a project that would require me to burn a video to DVD in such a way that a traditional DVD player could play it. I've found several '3rd party tools' that do this, which is great and the direction I'll probably take.

But, I can't, for the life of me, fathom how to sit down and write a video to DVD.

I know this is largely academic (Just use the available libraries!) still, I'd really like some direction on how I would/could go about doing this myself.

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

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

发布评论

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

评论(2

许一世地老天荒 2024-11-12 05:41:49

如果您想直接与 Windows 对话,则必须运行 图像母带 API (IMAPI)。有些人为其编写了编写的包装。 IMAPIv2 是针对 Vista 发布的,因此我不能 100% 确定它会发展到 Windows 7。

但这只会允许您将文件写入磁盘。要了解如何将视频 DVD 刻录到磁盘,您必须了解视频编码、MPEG-2 规范、UDF 桥文件格式以及其他一些内容。我强烈建议您研究一个命令行视频转换器,它可以为您创建 VIDEO_TS 文件结构,然后然后使用 Windows API 将其写入磁盘。

编辑

这是另一个包装器。

If you want to talk directly to Windows then you're going to have to run through the Image Mastering API (IMAPI). Some people have written wrappers for it. IMAPIv2 was released for Vista so I'm not 100% sure of its progression to Windows 7.

But that will just allow you to write files to disk. To understand how to burn a video DVD to disk you'll have to understand video encoding, the MPEG-2 spec, the UDF bridge file format and a couple of other things. I would highly recommend looking into a command-line video converter that can create the VIDEO_TS file structure for you and then use the Windows API to write that to disk.

EDIT

Here's another wrapper.

近箐 2024-11-12 05:41:49

我建议您查看 SharpRecorder 这样的项目并首先了解其代码。

由于 .NET 中没有对写入 DVD 视频文件的本机支持,因此您需要查看 DVD 规范并从头开始。这就是为什么查看或使用一个库是一个很好的开始(为什么要重新发明轮子?)。

I would recommend looking at a project like SharpRecorder and understanding its code as a start.

Since there is no native support in .NET for writing a DVD video file you'll need to look at the DVD specification and start from the ground up. That is why looking at a library or using one is a great start (why reinvent the wheel?).

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