Skip to content

Instantly share code, notes, and snippets.

View vade's full-sized avatar

Anton Marini vade

View GitHub Profile
@vade
vade / synopsis-video-decode-benchmark.m
Last active September 7, 2022 11:38
synopsis-video-decode-benchmark - AVFoundation Performance on Apple Silicon
//
// main.m
// synopsis-video-decode-benchmark
//
// Created by Anton Marini on 11/20/21.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <Metal/Metal.h>
@vade
vade / API Server.swift
Created September 21, 2021 14:33
Swift API Server
//
// main.swift
// SynopsisAPIServer
//
// Created by vade on 4/12/21.
//
import Foundation
import Swifter
@vade
vade / gist:139c60b7ba57485a2c0c93f17095bc40
Created September 20, 2020 01:36
Media Info output from PyAV multi track audio where tracks 2 and above are disabled by FFMPEG
General
Complete name : /Users/vade/Downloads/edit_3.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.02 (qt )
File size : 9.94 MiB
Duration : 2s 753ms
Overall bit rate mode : Variable
Overall bit rate : 30.3 Mbps
Writing application : Lavf58.29.100
@vade
vade / gist:4485ce6fc41c20090447163af57aa48b
Created August 7, 2019 20:06
Current Synopsis Labels:
color.key.blue
color.key.green
color.key.luma.matte
color.saturation.desaturated
color.saturation.neutral
color.saturation.pastel
color.saturation.saturated
color.theory.analagous
color.theory.complementary
color.theory.monochrome
@vade
vade / Studio Hardware Purge.md
Last active February 25, 2019 03:14
Studio Hardware Purge

Best offer items:

Video editing rig:

  • 2008 Mac Pro - 2 x 2.8 Ghz Quad Core Xeon
  • Apple Cinema HD Display
  • 12 GB Ram
  • Nvidia GeForce 8800 GT
  • Blackmagic Decklink HD Extreme 3D video input and output board - with original box and all cables - PCI card installed.
  • OWC Mercury Extreme Pro 6G SSD (512 GB boot)
  • 2x 2 TB Drive, 1x 5TB Drive.
var selectionRule: (TrashEditSelectionRule & TrashEditSelectionRuleProtocol)? = nil
if let selectionRuleString = editFormula?.editSelectionRuleClass
{
if let selectionRuleClass = NSClassFromString(selectionRuleString) {
// Commenting out this line allows compilation to succeed:
selectionRule = selectionRuleClass.init() as? (TrashEditSelectionRule & TrashEditSelectionRuleProtocol)
}
}
[36983:775:0126/144209.925821:FATAL:PointerEventFactory.cpp(273)] Check failed: mouseEvent.pointerProperties().pointerType == coalescedMouseEvent.pointerProperties().pointerType (1 vs. 0)
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_mac) {
shared_library("Syphon") {
#ldflags = ["mac/"]
lib_dirs = ["//third_party/Syphon/mac/"]
libs = [
"Syphon.framework",
@vade
vade / Image Label InceptionV3 Inference Optimized Quantized Eightbit.txt
Created November 21, 2016 20:34
Output of Trace Label Image for Straight Inception V3 graph Inference Optimized Quantized Eightbit
Andromeda:tensorflow vade$ time bazel-bin/tensorflow/examples/label_image/label_image
I tensorflow/core/util/stat_summarizer.cc:33] StatSummarizer found 1282 nodes
I tensorflow/core/util/stat_summarizer.cc:353] Total time (us): curr=29388151 count=11 runs, avg 2.939e+04 ms, 1282 nodes defined 1271 nodes observed
104120.371 avg KB per run.
============ By run order (ms) =================
[start] [first] [avg] [%] [cdf%] [Op] [Name]
0.000 0.186 0.186 0.001% 0.001% _SOURCE
0.260 0.021 0.021 0.000% 0.001% Const mixed_10/join/concat_dim
0.288 0.007 0.007 0.000% 0.001% Const conv/conv2d_params_quint8_const
@vade
vade / Image Label InceptionV3 Inference Optimized Quantized Rounded.txt
Created November 21, 2016 20:32
Output of Trace Label Image for Straight Inception V3 graph Inference Optimized Quantized Rounded
Andromeda:tensorflow vade$ time bazel-bin/tensorflow/examples/label_image/label_image
I tensorflow/core/util/stat_summarizer.cc:33] StatSummarizer found 514 nodes
I tensorflow/core/util/stat_summarizer.cc:353] Total time (us): curr=9578849 count=11 runs, avg 9579 ms, 514 nodes defined 504 nodes observed
128366.4 avg KB per run.
============ By run order (ms) =================
[start] [first] [avg] [%] [cdf%] [Op] [Name]
0.000 0.076 0.076 0.001% 0.001% _SOURCE
0.116 0.016 0.016 0.000% 0.001% Const mixed/join/concat_dim
0.138 0.006 0.006 0.000% 0.001% Const pool_3/_reshape/shape