Skip to content

Instantly share code, notes, and snippets.

if [ "$swscale" = "yes" ]; then
LDFLAGSCLI="$SWSCALE_LIBS $LDFLAGSCLI"
CFLAGS="$CFLAGS $SWSCALE_CFLAGS"
define HAVE_SWSCALE
if [ "$lavf" = "yes" ]; then
LDFLAGSCLI="$LAVF_LIBS $LDFLAGSCLI"
CFLAGS="$CFLAGS $LAVF_CFLAGS"
define HAVE_LAVF
fi
if [ "$ffms" = "yes" ]; then
if ${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>/dev/null; then
LAVF_LIBS="$LAVF_LIBS $(${cross_prefix}pkg-config --libs libavformat libavcodec libavutil libswscale)"
LAVF_CFLAGS="$LAVF_CFLAGS $(${cross_prefix}pkg-config --cflags libavformat libavcodec libavutil libswscale)"
fi
if [ -z "$LAVF_LIBS" -a -z "$LAVF_CFLAGS" ]; then
LAVF_LIBS="-lavformat"
for lib in -lpostproc -lavcodec -lavcore -lswscale -lavutil -lm -lz -lbz2 $libpthread -lavifil32; do
cc_check "" $lib && LAVF_LIBS="$LAVF_LIBS $lib"
done
fi
$ ./configure
Platform: X86_64
System: MACOSX
asm: yes
avs: no
lavf: yes
ffms: yes
gpac: yes
gpl: yes
thread: posix
@wipple
wipple / gist:936301
Created April 22, 2011 08:46
~/.gvimrc
"---------------------------------------------------------------------------
" GUIに関する設定
"
if has('gui_macvim')
" IMを無効化
set imdisable
" 透明度
set transparency=20
" コマンドラインの行数
set cmdheight=2
@wipple
wipple / gist:936296
Created April 22, 2011 08:44
~/.vimrc
"---------------------------------------------------------------------------
" 編集に関する設定:
"
" タブの画面上での幅
set tabstop=4
" タブをスペースに展開
set expandtab
" オートインデント
set cindent
" オートインデントの深さ
$ ls -a
. .libs Makefile.am aac-enc.c config.guess depcomp vo-aacenc.pc.in
.. AUTHORS Makefile.in aacenc config.h.in install-sh wavreader.c
.deps COPYING NEWS aclocal.m4 config.sub ltmain.sh wavreader.h
.git ChangeLog NOTICE autom4te.cache configure m4
.gitignore INSTALL README common configure.ac missing
$ autoreconf -i
configure.ac:41: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
m4/libtool.m4:4170: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5253: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
$ ls -a
. .gitignore ChangeLog NOTICE common depcomp missing
.. .libs INSTALL README config.guess install-sh vo-aacenc.pc.in
.deps AUTHORS Makefile.am aac-enc.c config.sub ltmain.sh wavreader.c
.git COPYING NEWS aacenc configure.ac m4 wavreader.h
$ git clone git://github.com/mstorsjo/vo-aacenc.git
Cloning into vo-aacenc...
remote: Counting objects: 532, done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 532 (delta 322), reused 442 (delta 262)
Receiving objects: 100% (532/532), 634.71 KiB | 200 KiB/s, done.
Resolving deltas: 100% (322/322), done.
$ cd vo-aancenc
@wipple
wipple / rev_roll.sh
Created February 27, 2011 11:33
Revision Roll
#!/bin/bash
# Manage local x264.git repository by revision number, not commit hash.
if [ $# -lt 2 ] ; then
cat <<EOF
Options:
-r <rev> git reset --hard <rev>
-s <rev> git show <rev>
-d <rev1> <rev2> git diff <rev1> <rev2>