Skip to content

Instantly share code, notes, and snippets.

@SAPikachu
SAPikachu / gist:1805921
Created February 12, 2012 02:47
MP_Pipeline performance test
Script:
LoadPlugin("MP_Pipeline.dll")
MP_Pipeline("""
ColorBars(640,480,"YV12")
### ###
""")
Result:
import re, sys
from xml.dom import minidom, Node
import math
import argparse
class Matrix:
def m(self, i, j, value=None):
if i >= self.rows or j >= self.cols:
raise ValueError("Argument out of range")
/* Debian specific configuration to work as a recursive resolver */
global {
perm_cache = 2048;
cache_dir = "/var/cache/pdnsd";
run_as = "pdnsd";
server_ip = any; // Use eth0 here if you want to allow other
// machines on your network to query pdnsd.
status_ctl = on;
paranoid = off;
@SAPikachu
SAPikachu / gist:1526215
Created December 28, 2011 04:15
MCTDMod 3 - add support for 16bit debanding output
###################################################################################################################################
### ###
### Motion-Compensated Temporal Denoise: MCTD() ###
### ###
### v1.4.20 by "LaTo INV.", mod 2 by 06_taro ###
### ###
### 29 November 2011 ###
###
@SAPikachu
SAPikachu / gist:1504560
Created December 21, 2011 04:20
extract images from m2ts
----------------- extract.cmd -----------------
setlocal
set TMPDIR=%CD%\temp\%~n1
set OUTDIR=%CD%\output\%~n1
md %TMPDIR%
tsmuxer "%~f1" | parse_track.py "V_MPEG4/ISO/AVC, %~f1, fps=23.976, insertSEI, contSPS, track={}"> "%TMPDIR%\file.meta"
tsmuxer "%TMPDIR%\file.meta" "%TMPDIR%"
set VIDEO=
@SAPikachu
SAPikachu / gist:1408441
Created November 30, 2011 08:37
support yv16 and yv24 in avs4x264mod
--- E:\avs4x264mod_v0.3\src\avs4x264mod.c 2011-11-29 10:44:43.000000000 +0800
+++ E:\avs4x264mod_v0.3\src\avs4x264mod - Copy.c 2011-11-30 16:46:54.000000000 +0800
@@ -116,13 +116,13 @@
return 0;
fail:
FreeLibrary( h->library );
return -1;
}
-char* generate_new_commadline(int argc, char *argv[], int i_frame_total, int i_fps_num, int i_fps_den, int i_width, int i_height, char* infile )
import sys
import re
import os
def read_tc_v1(f, params):
frame_count = None
if "frame-count" in params:
frame_count = int(params["frame-count"])
parts = []
./configure --enable-static --enable-gpl --enable-postproc --disable-debug --disable-muxers --disable-encoders --disable-filters --disable-hwaccels --disable-network --disable-devices --enable-runtime-cpudetect --enable-w32threads
@SAPikachu
SAPikachu / gist:1323933
Created October 29, 2011 00:44
hacked inttypes.h
/* 7.8 Format conversion of integer types <inttypes.h> */
#ifndef _INTTYPES_H_
#define _INTTYPES_H_
#include <stdint.h>
#define __need_wchar_t
#include <stddef.h>
#ifdef __cplusplus
def hack_httplib2_response():
original_init = httplib2.Response.__init__
def hacked_init(self, info):
self["_original_response"] = info
original_init(self, info)
httplib2.Response.__init__ = hacked_init