DVDBuilder for .NET
3.4
DVD Authoring Software Development Kit
|
Specifies video content for the title.
<videoObject file="file" pause="num" callback="true|false" aspectRatio="4:3|16:9" resolution="720x480|704x480|352x480|352x240|720x576|704x576|352x576|352x288" frameRate="29.97|25"/>
Attribute | Description |
file | Specifies a file that contains an MPEG-2 movie. |
Attribute | Option | Description |
pause | 0 to 255 | Specifies the number of seconds to pause after the Video Object playback. The value 255 specifies infinite pause. |
callback | true | Indicates that the video object data should be read from a stream object supplied by the user. The value of the 'file' attribute will be passed to the callback object for reference. |
false | Indicates that the video object data should be read from a standard file specified with the 'file' attribute. | |
aspectRatio | 4:3 | Indicates that the video stream of this video object use Normal (4:3) aspect ratio. |
16:9 | Indicates that the video stream of this video object use Wide Screen (16:9) aspect ratio. | |
resolution | NTSC: 720x480 | 704x480 | 352x480 | 352x240 | NTSC 720 x 480 pixels MPEG-2 704 x 480 pixels MPEG-2 352 x 480 pixels MPEG-2 352 x 240 pixels MPEG-1 or MPEG-2 PAL 720 x 576 pixels MPEG-2 704 x 576 pixels MPEG-2 352 x 576 pixels MPEG-2 352 x 288 pixels MPEG-1 or MPEG-2 |
frameRate | NTSC: 29.97 PAL : 25 | NTSC MPEG video must be encoded at 29.97 frames per second. PAL MPEG video must be encoded at 25 frames per second. |
Element | Description |
<audioStream> | Specifies an audio elementary stream. |
<videoStream> | Specifies a video elementary stream. |
<subpictureStream> | Specifies a subpicture elementary stream. |
The following example shows a DVD that has one title made of two video objects. When the first video object has been played the DVD player will pause the playback for 10 seconds and then will continue with the second video object.
The following example shows a DVD that has one title made of two video objects. Aspect rate, resolution and frame rate are explicitly specified for each video object.
The following example shows a DVD that has one title made of a video object using audio/video elementary streams. Note that the version attribute in the <dvd> tag is set to 2.3, because the <audioStream> and <videoStream> tags require DVDBuilder project schema 2.2 or later.
DVDBuilder automatically detects the aspect ratio, the resolution and the frame rate of each video stream. If the aspect ratio, resolution or frame rate are specified the values in the project XML the values detected from the video stream will be ignored. The reason for this behavior is to allow input from encoders/multiplexers which set wrong values for aspect ratio, resolution and frame rate in the MPEG-2 streams.