Skip to content

Commit

Permalink
create json updates
Browse files Browse the repository at this point in the history
adjust config for dcvideo
basename for filename
add video reel formats
  • Loading branch information
bturkus committed May 6, 2024
1 parent fa9ca84 commit 3fc56cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions ami_scripts/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@
"MiniDV",
"MPEG IMX"
],
"video reel": [
"half-inch open-reel video [LEGACY]",
"half-inch open-reel video CV",
"half-inch open-reel video EIAJ/AV",
"half-inch open-reel video other",
"one-inch open-reel video [LEGACY]",
"one-inch open-reel video Type A",
"one-inch open-reel video Type C",
"quarter-inch open-reel video",
"two-inch open-reel video Quadruplex"
],
"audio reel analog": [
"half-inch open-reel audio",
"one-inch open-reel audio",
Expand Down Expand Up @@ -135,6 +146,17 @@
"name": "Colorlab"
}
},
"DCVideo": {
"organization": {
"address": {
"city": "Burbank",
"postalCode": 91504,
"state": "CA",
"street1": "3071 N. Lima Street"
},
"name": "DCVideo"
}
},
"NYPL": {
"organization": {
"address": {
Expand Down
4 changes: 2 additions & 2 deletions ami_scripts/create_media_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_args():
parser.add_argument('-u', '--username', required=True, help='Username for FileMaker database')
parser.add_argument('-p', '--password', required=True, help='Password for FileMaker database')
parser.add_argument('-m', '--media', required=True, help='Path to directory of media files')
parser.add_argument('-d', '--digitizer', choices=['Media Preserve', 'NYPL', 'Memnon'], required=False, help='Name of the digitizer')
parser.add_argument('-d', '--digitizer', choices=['Media Preserve', 'NYPL', 'Memnon', 'DCVideo'], required=False, help='Name of the digitizer')
parser.add_argument('-o', '--output', required=True, help='Path to destination for JSON files')
parser.add_argument('-c', '--config', required=True, help='Path to config file')
return parser.parse_args()
Expand Down Expand Up @@ -220,7 +220,7 @@ def create_new_json(args, media_data, config):
'durationMilli': {'measure': int(float(media_data['media_info']['general'].get('Duration', 0)) * 1000), 'unit': 'ms'},
'extension': media_data['extension'],
'fileFormat': media_data['media_info']['general'].get('Format', ''),
'filename': media_data['filename'],
'filename': basename,
'filesize': {'measure': media_data['file_size'], 'unit': 'B'}
}
}
Expand Down

0 comments on commit 3fc56cf

Please sign in to comment.