开发者

Burn A (Video) DVD In .NET Without 3rd Party Libraries

开发者 https://www.devze.com 2023-03-03 00:42 出处:网络
Maybe this is a stupid question....I\'m looking at a project that would require 开发者_如何学Gome to burn a video to DVD in such a way that a traditional DVD player could play it.I\'ve found several \

Maybe this is a stupid question....I'm looking at a project that would require 开发者_如何学Gome 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.


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.


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?).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号