Skip to content

Digipres Master ‐ MXF (Crawford WSB)

Callie edited this page Mar 27, 2025 · 1 revision

This workflow is to be used for the WSB Video that was digitized by Crawford and written to tar LTO-5 tapes. These MXFs are considered preservation masters.

NOTES:

  • You will need to use the path to the locally installed instance of SaxonHE as well as the local path to the ca-stylesheets.
  • The ca-stylesheet is hard-coded to include the currently-being-used DPHub share. If you fill up a share and move to the next one, you should update the stylesheet with the new share number.
  1. Generate mediainfo XML.
for i in *.mxf ; do mediainfo -f --Output=PBCore2 --Language=raw $i > /PATH/TO/OUTPUT/"$i"_mediainfo-pbcore2.xml ; done
  1. Run a command to do an XSLT transformation on the original mediainfo XML to create the basis for the CA digital object XML that will be imported. This will create the PBCore Instantiation XML that is optimized for CA import.
for i in *.xml ; do java -cp /Applications/SaxonHE9-8-0-12J/saxon9he.jar net.sf.saxon.Transform -s:"$i" -xsl:/path/to/stylesheet/dphub-mediainfopbcorexml-to-caimportpbcorexml_digiPresMaster-crawford-created-MXF.xsl -o:/path/to/output-folder/${i%.xml}_ca.xml ; done
  1. Remove xmnls attribute tags from the CA representation XML files.
for i in *_ca.xml ; do sed -i '' 's/ xmlns=\"\">/>/g' $i ; done
  1. Import using the "Pbcore Dig Object Import DP Hub MOVs" importer in CA.
  • The importer is currently set for all dig objects to be imported as internal only (0). For public access change ca_objects.access to 1.

Clone this wiki locally