Initialization and Termination

This topic describes how to initialize and terminate the DVDBuilder API.

DVDBuilder

You must set DVDBuilder license before using the DVDBuilder API. If you do not set a license, DVDBuilder will work in demo mode.


// InitAndTerminate.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main()
{
    // DVD authoring
    primo::dvdbuilder::Library::setLicense("license_xml_string");

    // Code that uses DVDBuilder goes here

    return 0;
}

AVBlocks and PrimoBurner

DVDBuilder takes MPEG-2 video as input and creates a VIDEO_TS directory. You can use AVBlocks to convert different video formats to MPEG-2. DVDBuilder does not support DVD burning, but you can use PrimoBurner to burn a VIDEO_TS directory to a DVD.

AVBlocks and PrimoBurner are already included in the DVDBuilder SDK. You must initialize AVBlocks and set the license for PrimoBurner before using their APIs.


// InitAndTerminate.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int main()
{
    // Video encoding
    primo::avblocks::Library::initialize();
    primo::avblocks::Library::setLicense("license_xml_string");

    // DVD authoring
    primo::dvdbuilder::Library::setLicense("license_xml_string");

    // DVD burning
    primo::burner::Library::setLicense("license_xml_string");

    // Code that uses AVBlocks, DVDBuilder, and PrimoBurner goes here

    primo::avblocks::Library::shutdown();

    return 0;
}


Last updated on March 1st, 2016 12:00:00 AM