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();
Video stream utility used to output video content to file system.
Output stream definition properties.
See Source File
Relja Ljubobratovic
$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).
Copyright Relja Ljubobratovic 2016.
Module implements utilities for video output.
Video output streaming is performed using OutputStream utility by following example: