diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-06 01:01:29 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-13 22:29:01 +0000 |
| commit | 0e29e68e94daade47167ac5bc6b51362ef02b5c3 (patch) | |
| tree | accedb6af7c7763086af8abf108655791fce439d /examples | |
| parent | 92d04684c81baa6c56ff3299f1cffd1ac787c71f (diff) | |
Store interop/SMPTE in MXF.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/make_dcp.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index 582dd946..0c7ebf77 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -54,10 +54,10 @@ main () per second. */ - boost::shared_ptr<dcp::MonoPictureAsset> picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1))); + boost::shared_ptr<dcp::MonoPictureAsset> picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1), dcp::SMPTE)); /* Start off a write to it */ - boost::shared_ptr<dcp::PictureAssetWriter> picture_writer = picture_asset->start_write ("DCP/picture.mxf", dcp::SMPTE, false); + boost::shared_ptr<dcp::PictureAssetWriter> picture_writer = picture_asset->start_write ("DCP/picture.mxf", false); /* Write 24 frames of the same JPEG2000 file */ dcp::File picture ("examples/help.j2c"); @@ -71,8 +71,8 @@ main () /* Now create a sound MXF. As before, create an object and a writer. When creating the object we specify the sampling rate (48kHz) and the number of channels (2). */ - boost::shared_ptr<dcp::SoundAsset> sound_asset (new dcp::SoundAsset (dcp::Fraction (24, 1), 48000, 2)); - boost::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf", dcp::SMPTE); + boost::shared_ptr<dcp::SoundAsset> sound_asset (new dcp::SoundAsset (dcp::Fraction (24, 1), 48000, 2, dcp::SMPTE)); + boost::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf"); /* Write some sine waves */ float* audio[2]; |
