4 The asdcplib library is a set of objects that offer
5 simplified access to files conforming to the sound and
6 picture track file formats proposed by the SMPTE working
9 This work was originally funded by Digital Cinema
10 Initiatives, LLC. Subsequent efforts have been funded by
11 Deluxe Laboratories, Doremi Labs, CineCert, LLC. and others.
13 **The asdcplib project is housed on SourceForge. The project
14 home page is at http://sourceforge.net/projects/asdcplib.
15 There is not much there other than CVS because I don't
16 really have the time to master SourceForge administration.
17 Feel free to email with questions or to request a tar file.
19 The project used to depend upon the mxflib project. Because
20 of the focus on covering the whole of the MXF spscifications,
21 mxflib is considerably larger and more complex that what I
22 require for this application. For this reason I have created
23 a dedicated MXF implementation that is now part of this
24 library. Special thanks to Matt Beard and Oliver Morgan for
25 their great work and support.
27 Thanks also to the members of the SMPTE DC-28.20 packaging
28 ad-hoc group and the members of the MXF Interop Initiative
29 for their encouragement and support. Special thanks to
30 Jim Whittlesey and Howard Lukk at DCI for proposing and
31 supporting this project.
36 This library is intended (but of course not limited) for
37 use by developers of commercial D-Cinema products. It is
38 designed to be easily integrated into a wide variety of
39 development environments. Commercial users are strongly
40 urged to use static linking (at least where you use this
41 library) to prevent malicious in-field replacement of
42 critical system modules. This recommendation should be
43 considered wherever Open Source or Free software is being
44 used for applications having non-trivial security
47 The author strives mightily to provide an API that is
48 completely independent of operating system and other
49 library dependencies, and which allows selective replacement
50 of some modules for local needs. Specifically, the essence
51 parsers and OpenSSL crypto functions can be replaced by
52 linking to alternative implementations of the ASDCP::
53 objects which provide those services.
55 AS_DCP.h contains the entire API. You do not need to read
56 any of the other files, except maybe asdcp-test.cpp which
57 contains detailed usage examples of each of the API's
63 GNU make is required to build asdcplib. The makefile will
64 work on win32 systems that have Cygwin. Other win32 gmake
65 packages may or may not work depending upon the availability
66 of standard POSIX shell commands. You will need gcc to rebuild
69 OpenSSL is also required. See http://www.openssl.org
71 If you are building on win32 or a unix with no OpenSSL library
72 support, you will have to also obtain and build OpenSSL (I'm
73 using 0.9.7d on win32). Unpack it into the same parent directory
74 as asdcplib/, and rename the directory as (or make a sym link
79 drwxr-xr-x 1 jhurst None 0 Feb 3 16:37 asdcplib
80 drwxr-xr-x 56 jhurst None 0 Feb 2 16:35 openssl
82 I have tested this build on win32, Linux and Darwin platforms.
83 Others may work as well.
88 Currently, the documentation is mostly in AS_DCP.h. Read
89 that file for a detailed description of the library's
90 capabilities. Read asdcp-test.cpp for library usage
91 examples. More detailed documentation will be written RSN.
95 2006.03.16 - bug fixes plus
96 o Removed SMPTE_LABELS compile-time option. The reader will now
97 silently accept either SMPTE or MXF Interop labels, the writer
98 can be instructed which to use at runtime. Default is Interop.
99 o Added an AIFF reader. Support is preliminary, it works with the
100 AIFF files I have on hand.
101 o More code refactoring. More to come.
104 2006.03.09 - full read-write
105 o Removed ASDCP_WITHOUT_OPENSSL compile-time option.
106 o Full read/write now working on new MXF library
109 2005.00.00 - A New Hope
110 o The temporary mxf-lite has been removed. MXF files are now
111 managed via the objects in KLV.h, MXFTypes.h MXF.h and
112 Metadata.h. This release does not support writing MXF files.
113 o Fixed a header interpretation error in the Wav parser.
116 2005.00.00 - The Reformation
117 o Removed mxflib as a dependency by forking the necessary
118 functions and placing them in the mxf-lite subdirectory.
119 Please note that the very heavy modifications done here
120 render all comparisson to mxflib code a substantial task.
121 All errors are now mine and users are warned not to bug
122 Oliver or Matt for help with this code. The version of
123 mxflib at the time of the fork was: 0.5.1.3.
126 2005.06.03 - bug fixes v0.10.18
127 o Updated UL batch to include GC UL.
130 2005.05.27 - bug fixes v0.10.17
131 o Un-did essence container and compression descriptor changes.
132 The default build reflects MXF Interop decisions as of 26 May.
133 o Added note about build versions to README (see above).
134 o Added warnings to SMPTE_LABELS builds.
135 o Fixed JP2K essence container label.
138 2005.05.02 - bug fixes v0.10.16
139 o Reorganized internal files, added file reader object, added OS
140 portability header, removed and renamed some files. If you have a
141 patch against previous versions of the source, you should check
143 o Added RGBA attributes to JP2K descriptor.
144 o Changed interface to CodestreamParser.
145 o Added JP2K parser implementation. It is parsing each frame but is
146 not yet being used to populate the descriptor.
147 o Added 48fps option for `asdcp-test -p`.
148 o Added picture rate constants to AS_DCP.h (23.976, 24, 48).
149 o Added sample rate constant to AS_DCP.h (48k).
150 o Changed asdcp-test to encrypt picture headers by default
151 (plaintext offset will be 0), added -E option to allow
155 2005.04.28 - bug fixes v0.9.15
156 o The XML descriptors for the crypto DMS have moved in mxflib to
157 the file DMS_Crypto.xml (they were in DMS_DCPENC.xml). Older
158 installations should update the file from mxflib.
159 o Added Close() and Seek() to ~MyFileWriter(), cleaned up headers
160 o Added UUID generator output mode (-u).
161 o Added -S option to extract PCM essence into stereo wav files
162 o Added more UL testing and conformance checking.
163 o Added macro SMPTE_LABELS which causes the library to be built
164 with SMPTE (as opposed to MXF Interop) labels. This is not
165 set by default, and currently only affects the PCM container
166 label and encrypted element label.
167 o Cleaned up the GNUmakefile test targets, the source files
168 are now named with the TEST_FILE_PREFIX macro.
169 o enabled 23.976-framed PCM (2002 samples per frame)
170 o The size of the asdcp-test frame buffer for picture essence
171 may now be set from the command line (-b). The default is 4MB.
172 o h__Reader::ReadEKLVPacket() now tests the UL (duh) and switches
173 on the value, allowing plaintext and ciphertext frames to
174 be mixed in the file.
175 o Fixed error in UUID generator format.
176 o JP2K files now use the GenericPictureDescriptor to store
177 ContainerDuration and SampleRate. SampleRate is mapped
178 to EditRate in the PictureDescriptor struct. This fixes
179 the second caveat from the 0.8.13 release.
180 o Fxed bug in PCMParserList that was miscalculating the extent
181 of a PCM sample. This bug did not affect API users, it was
182 only present in asdcp-test.
183 o Fixed EditRate on PCM files (was showing sample rate)
184 o Fixed Encrypted Essence Container UL
185 o Fixed BlockAlign value for PCM essence
187 - The following changes were provided by Jeff Loewenguth
189 o Moved the DMS CryptographicFramework entry from the material
190 package to the source package
191 o Fixed erroneous Source Essence Container Label value
192 o Fixed broken sort of JP2K frames in JP2K parser
193 o Added FindFrameGOPStart() method to the MPEG2 MXFReader
194 o Added missing length values for EKLV packets without HMAC
195 o -x with JP2K essence writes to files with 6 digit names
197 o The Key ID may now be specified as an argument to asdcp-test
201 2004.12.30 - bug fixes + wav files v0.8.14
202 o Added WAV file write to asdcp-test (uses mxflib::waveheader_t).
203 o Three-partition files reading properly. adscplib still writes
205 o Changes in the mxflib WAV essence parser API had broken
206 asdcplib's ability to read essence from a WAV file. I have
207 fixed this bug, but at the expense of breaking compatibility
208 with older versions of mxflib. Beware!
209 o Removed redundant (but working) bin-text-bin conversions.
212 2004.12.23 - JPEG 2000 support v0.8.13
213 o Reads/writes JPEG 2000 essence in plaintext and ciphertext
214 with the following caveats:
215 - The Picture Essence Descriptor is empty.
216 - Because there is no essence descriptor, the reader code
217 in asdcp-test has no idea how many frames are in the file
218 and ends with an out-of-bounds frame error. This error
219 is being suppressed in asdcp-test for the current release.
220 o Still broken when reading three-partition files.
223 2004.10.22 - fixes and UL updates v0.7.11
224 WARNING: COMPATIBILITY BREAKPOINT
225 Files created with this and future versions of this library are
226 not compatible with previous versions of this library. As you
227 might suspect, files created with previous versions of this
228 library are not compatible with this and future versions.
230 o h__Reader will now open a three-partitition file (untested)
231 o Moved DMS from Material partition to File partition
232 o Added length fields to appropriate places in EKLV packet
235 2004.10.22 - fixes and UL updates v0.7.10
236 o fixed frame buffer handling of externally allocated buffer,
237 created unit test (asdcp-mem-test)
238 o added operator==() and operator!=() to Rational type
239 o fixed some type-related compiler warnings
240 o asdcp-test -p now works on unwrap
241 o updated some ULs to match documentation (thanks to Arun
243 o canonicalized line endings
246 2004.07.02 - full plaintext + ciphertext read/write v0.6.9
247 o HMAC, plaintext offest and raw ciphertext read supported
248 o back to proper CBR index
249 o MPEG temporal offset working
252 2004.07.01 - plaintext + ciphertext read/write v0.5.8
253 o encryption of MPEG and PCM essence supported with the
256 - no plaintext offest support
257 - no raw ciphertext read support
258 o moved to reflecting the whole KLV triplet in the CBR
259 index (now incompatible with mxflib, still searching
260 for info about what's "right")
261 o awaitng the following fixes/features:
262 - retrieve Temporal Offset from index in MPEG2::Reader
263 - test for correct ULs when reading frame triplets
264 - fix header metadata items for encrypted files
266 - plaintext offest support
267 - raw ciphertext read support
270 2004.06.14 - plaintext read/write w/key generator v0.4.5
271 o Project now uses OpenSSL (tested with 0.9.7d on win32, Linux, Darwin)
272 Use `make ASDCP_WITHOUT_OPENSSL=1` to make plaintext-only version
273 o Accepts interior I frames when parsing MPEG2 VES
274 o Improved error reporting on format errors
275 o Added support for encryption to asdcp-test
276 o Added RNG for asdcp-test (non-production use only, see notes in FortunaRNG.h)
277 o Implemented CBC encrypt, decrypt module
278 o Added partial TemporalOffset retrieval from MPEG2 parser
279 o Fixed win32 binmode bug
282 2004.05.12 - plaintext read/write v0.3.4
283 o Full read/write of plaintext MPEG-2 VES and WAV files
284 (does not yet support mux from or demux to 2 channel pairs)
285 o Builds with autoconf-based mxflib
286 o Added ASDCP_ prefix to macros
287 o Updated documentation, fixed documentation errors
288 o Simplified API for MXF writer setup
289 o Decoupled essence parsers from MXF writers
290 o added raw ciphertext support to FrameBuffer
291 o Cleaned up Get/Set naming confusion
292 o Added missing const qualifiers
295 2004.04.27 - preview release v0.2.1
296 o hasty release for quick review
297 o this release may not build with mxflib using autoconf.
298 o writes plaintext AS-DCP MPEG2 essence files
299 o tested under win32 and linux. FreeBSD and Darwin do not work
302 2004.02.04 - First release (v0.1.1):
303 o asdcp-test is mostly complete. It should correctly provide
304 access to the read and info capabilities of the library.
305 o The MPEG2 reader is functional but not fully tested.
306 o Some file format integrity tests remain to be coded.
307 o The PCM reader is mostly complete, I am having difficulty
308 getting a suitable test file from mxfwrap.
309 o The makefile creates a static library module. The API
310 will cleanly support a DSO (or DLL). Let me know if DSO
311 support is important to you.
312 o Nothing is thread safe. Thread safety was not a requirement
313 in the initial project definition. Thread safety may be added
314 above the mxflib/klvlib level. Let me know if it is important
316 o The files xmldict.xml and types.xml must be in the current
317 directory when the program is run. The files are supplied
318 with mxflib. Runtime location of the files is not currently
319 a project goal. Comments on how best to handle this situation
320 would be appreciated. See AS_DCP.cpp at init_mxf_types()
321 for a more detailed discussion.