dcv.io.video.output

Module implements utilities for video output.

Video output streaming is performed using OutputStream utility by following example:

1 
2 Image []frames; // initialized elsewhere 
3 
4 OutputStream outputStream = new OutputStream;  // define the output video outputStream.
5 
6 OutputDefinition props;
7 
8 props.width = width;
9 props.height = height;
10 props.imageFormat = ImageFormat.IF_RGB;
11 props.bitRate = 90_000;
12 props.codecId = CodecID.H263;
13 
14 outputStream.open(filePath, props);
15 
16 if (!outputStream.isOpen) {
17     exit(-1);
18 }
19 
20 foreach(frame; frames) {
21     outputStream.writeFrame(frame);
22 }
23 
24 outputStream.close();

Members

Classes

OutputStream
class OutputStream

Video stream utility used to output video content to file system.

Structs

OutputDefinition
struct OutputDefinition

Output stream definition properties.

Meta

Authors

Relja Ljubobratovic

License

$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).