Skip to content

Instantly share code, notes, and snippets.

View kieranjol's full-sized avatar

Kieran O'Leary kieranjol

View GitHub Profile
#!/usr/bin/env python
'''
Accept options from command line and make access copy.
Use bitc.py -h for help
'''
import argparse
import os
import bitc
#/usr/bin/env python
import os
import sys
import ififuncs
import bitc
def main():
source = sys.argv[1]
for root, dirnames, filenames in os.walk(source):
basename = os.path.basename(root)
#!/usr/bin/env python
'''
Creates some test video files via ffmpeg.
Usage: testfiles.py -o path/to/dir
Run testfiles.py -h for help.
Written by Kieran O'Leary.
'''
import subprocess
import os
import argparse
import sys
import os
source = sys.argv[1]
with open(source, 'r') as fo:
lines = fo.readlines()
for index, line in enumerate(lines):
if 'Source Checksums' in line:
if 'N/A' not in line:
#usr/bin/env python
'''
Loop/iterate through all files within subfolders:
find the SIP log file
how to process each line in a textfile
find the line in the log file that contains the reference number
extract just the value
print a list of values
maybe find some way to insert into the OE register
#usr/bin/env python
import sys
import ififuncs
csv_file = sys.argv[1]
csv_dict = ififuncs.extract_metadata(csv_file)
habitat_dict = {}
for entry in csv_dict[0]:
if entry['share'] == 'preservation_storage':
accession_number = entry['path'].split('/')[1]
$ mediainfo --File_TestContinuousFileNames=0 '/home/kieranjol/tests/dpx'
General
Complete name : /home/kieranjol/tests/dpx/dont_call_me_eddie__000001.dpx
Format : DPX
Format version : Version 1.0
File size : 227 KiB
Writing library : Lavc57.107.100
Image
Format : DPX
$ mediainfo '/home/kieranjol/tests/dpx/dont_call_me_eddie__000001.dpx'
General
Complete name : /home/kieranjol/tests/dpx/dont_call_me_eddie__000001.dpx
CompleteName_Last : /home/kieranjol/tests/dpx/dont_call_me_eddie__000050.dpx
Format : DPX
Format version : Version 1.0
File size : 11.1 MiB
Writing library : Lavc57.107.100
Video
#!/usr/bin/env python
'''
pymm is a python port of mediamicroservices
(https://github.com/mediamicroservices/mm)
run `pymmconfig` once at setup to initialize config settings
or run it again to change or add values
'''
import os
import sys

2019-01-119

Rawcooking at a large scale

A 5 reel 4K feature will require about 7TB for the DPX alone. The CRI should be a lot smaller, but could require 3TB. So that's pretty much the pegasus as is. This could then be copyit'd to the ISIS, though in the grand scheme of things, it makes most sense to export directly from CRI to the ISIS. So this means that you can have multiple CRI scans on the go on the pegasus, and then in downtime, DPX exports can be created. Or Da Vinci can be run on another computer to perform the transform. So this leaves the Win7 HP machine to read from the ISIS and rawcook to either the ISIS or an internal 10TB drive. The reversibility testing could happen on the internal 10tb drive. Otherwise, should we look into using 2k for 35mm prints, 4k for neg?