This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
ucs_ss = pd.read_excel('UCS v8.2.1 Full List.xlsx') | |
with open('ucs_81.json','w') as fp: | |
json.dump([{'cat_id': row[3], 'defn': row[5], 'syns': str(row[6]).split(", "), 'vers': '8.2.1'} for row in ucs_ss.itertuples()][2:], fp, indent=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resolution | Frame Width | Frame Height | Scan | Chroma Subsampling | Frame Rate | Megabits per second | Minutes per Gigabyte | |
---|---|---|---|---|---|---|---|---|
Avid DNxHD 440x | 1920 | 1080 | p | yuv422p10 | 60/1 | 440 | 0.325 | |
Avid DNxHD 440 | 1920 | 1080 | p | yuv422p | 60/1 | 440 | 0.325 | |
Avid DNxHD 290 | 1920 | 1080 | p | yuv422p | 60/1 | 291 | 0.492 | |
Avid DNxHD 90 | 1920 | 1080 | p | yuv422p | 60/1 | 90 | 1.585 | |
Avid DNxHD 440x | 1920 | 1080 | p | yuv422p10 | 60000/1001 | 440 | 0.325 | |
Avid DNxHD 440 | 1920 | 1080 | p | yuv422p | 60000/1001 | 440 | 0.325 | |
Avid DNxHD 290 | 1920 | 1080 | p | yuv422p | 60000/1001 | 291 | 0.493 | |
Avid DNxHD 90 | 1920 | 1080 | p | yuv422p | 60000/1001 | 90 | 1.585 | |
Avid DNxHD 365x | 1920 | 1080 | p | yuv422p10 | 50/1 | 367 | 0.39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg -i {} -vf drawtext="fontsize=15:\ | |
timecode='01\:00\:00\:00':rate=25:text='TCR\:':fontsize=72:fontcolor='white':\ | |
boxcolor=0x000000AA:box=1:x=10:y=10" -vcodec prores -profile:v 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Detect Cuts.lua | |
Jamie Hardt 16 Dec 2020 | |
]] | |
ScriptExtKey = "COM_SQUAD51ENTERPRISES_DETECTCUTS" | |
FFmpegPathKey = "FFMPEG_PATH" | |
LastThresholdKey = "LAST_THRESHOLD" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
"""lib2flac | |
Usage: | |
lib2flac.py [DEST] [SOURCE]... | |
Options: | |
-h --help Show this message. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Data { | |
func getInteger<Value: FixedWidthInteger>(at: Int, count: Int, as: Value.Type, | |
bigEndian : Bool = false) -> Value { | |
var rawValue = Value.zero | |
for i in 0..<count { | |
let byte = withUnsafeBytes { $0.load(fromByteOffset: at + i, as: UInt8.self) } | |
rawValue <<= 8 | |
rawValue ^= Value(byte) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Bitfield<Value: FixedWidthInteger> { | |
let value : Value | |
func split(widths : [Int]) -> [Value] { | |
var ranges = [Range<Int>]() | |
var at = 0 | |
for width in widths { | |
let thisRange = Range(uncheckedBounds: (lower: at, upper: at + width)) | |
ranges.append(thisRange) | |
at += width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from parsimonious.grammar import Grammar | |
protools_text_export_grammar = Grammar( | |
r""" | |
document = header files_section? clips_section? plugin_listing? track_listing? markers_listing? | |
header = "SESSION NAME:" fs field_value rs | |
"SAMPLE RATE:" fs field_value rs | |
"BIT DEPTH:" fs field_value rs | |
"SESSION START TIMECODE:" fs field_value rs | |
"TIMECODE FORMAT:" fs field_value rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cairo | |
import math | |
from collections import namedtuple | |
def warp_path(ctx, function): | |
first = True | |
for type, points in ctx.copy_path(): | |
if type == cairo.PATH_MOVE_TO: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Cmx3600.swift | |
// EDL Scene List | |
// | |
// Created by Jamie Hardt on 6/29/18. | |
// Copyright © 2018 Jamie Hardt. All rights reserved. | |
// | |
import Foundation | |
/* |
NewerOlder