Module implements utilities for video output.
Video output streaming is performed using OutputStream utility by following example:
Image []frames; // initialized elsewhere OutputStream outputStream = new OutputStream; // define the output video outputStream. OutputDefinition props; props.width = width; props.height = height; props.imageFormat = ImageFormat.IF_RGB; props.bitRate = 90_000; props.codecId = CodecID.H263; outputStream.open(filePath, props); if (!outputStream.isOpen) { exit(-1); } foreach(frame; frames) { outputStream.writeFrame(frame); } outputStream.close();
Video stream utility used to output video content to file system.
Output stream definition properties.
See Source File
Relja Ljubobratovic
Copyright Relja Ljubobratovic 2016.
$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).
Module implements utilities for video output.
Video output streaming is performed using OutputStream utility by following example: