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
2013-10-05 10:19:59 mikeboers@maxwell: ~/Documents/Python/PyAV | |
$ time python video_frames_via_pipe.py | |
real 0m0.564s | |
user 0m0.729s | |
sys 0m0.241s | |
2013-10-05 10:20:01 mikeboers@maxwell: ~/Documents/Python/PyAV | |
$ time python video_frames_via_pyav.py |
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
# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names | |
Avery | |
Riley | |
Peyton | |
Logan | |
Taylor | |
Ryan | |
Jordan | |
Cameron |
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
$ ffprobe -f avfoundation -list_devices true '' | |
<snip> | |
[AVFoundation input device @ 0x7f809940d4c0] AVFoundation video devices: | |
[AVFoundation input device @ 0x7f809940d4c0] [0] FaceTime HD Camera | |
[AVFoundation input device @ 0x7f809940d4c0] [1] Capture screen 0 | |
[AVFoundation input device @ 0x7f809940d4c0] AVFoundation audio devices: | |
[AVFoundation input device @ 0x7f809940d4c0] [0] Built-in Microphone | |
: Input/output error | |
$ ffprobe -f avfoundation 0: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
from __future__ import division | |
import random | |
import math | |
import hashlib | |
import hmac | |
def str_to_int(input): | |
out = 0 | |
for c in input: |
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 glob | |
import threading | |
from queue import Queue | |
import av | |
packet_queue = Queue(1) | |
def read_target(): |
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 __future__ import division | |
from argparse import ArgumentParser | |
import math | |
import os | |
import sys | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import cv2 |
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
# Lets define a `classproperty` such that it works as a property on both | |
# an object and it's type: | |
class classproperty(object): | |
__slots__ = ('getter', ) | |
def __init__(self, getter): | |
self.getter = getter |
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 argparse | |
import datetime | |
import json | |
import os | |
import re | |
import requests | |
parser = argparse.ArgumentParser() |
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 os | |
import sys | |
import logging | |
# Turn logging down premptively. | |
logging.getLogger("shotgun_api3").setLevel(logging.WARNING) | |
import shotgun_api3 |
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
LAHLERIRAHLEDDIKWKT | |
CNANOCIESRRAUNAFAOG | |
WKRGGVREGAASNSESLRB | |
TETEUAEGNLWOGNTKDET | |
IUHLUHTCITDSERIAAAA | |
RECKSUPERHEROEWSRRC | |
EATCTVNCEANRNETGTKK | |
NBAOAENNHRFAPMAKHEY | |
IKGPREDATORTARRLVRR | |
LSYSKCRVFHNSYYIAATU |
NewerOlder