-
Notifications
You must be signed in to change notification settings - Fork 0
Mezzanine MOV
Callie edited this page Mar 27, 2025
·
1 revision
This workflow is used for the mezzanine MOV files created during the digitization process that are saved to DPHub.
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.
- Generate mediainfo XML.
for i in *.mov ; do mediainfo -f --Output=PBCore2 --Language=raw $i > /PATH/TO/OUTPUT//"$i"_mediainfo-pbcore2.xml ; done
- 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_mezz-bma-created-MOV.xsl -o:/path/to/output-folder/${i%.xml}_ca.xml ; done
- Remove xmnls attribute tags from the CA representation XML files.
for i in *_ca.xml ; do sed -i '' 's/ xmlns=\"\">/>/g' $i ; done
- 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.