Skip to content

Commit

Permalink
Modify bootstrap and misc file.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyuki nagata committed Nov 17, 2013
1 parent 858733b commit 71ee9e5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 183 deletions.
7 changes: 0 additions & 7 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/bin/sh

# ffmpeg is exist or not
if test ! -d `pwd`/ffmpeg; then
git submodule init;
git submodule update;
patch -p1 < `pwd`/contrib/ffmpeg-unicode.patch
fi

# exec autoreconf
autoreconf -vi -I `pwd`/m4
176 changes: 0 additions & 176 deletions config.h

This file was deleted.

49 changes: 49 additions & 0 deletions misc/comskip_wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/sh

#
# Interpret TS file by comskip, and cut CM file by ffmpeg.
#
# $1 = comskip.ini
# $2 = ts file
#

if test $# -ne 2; then
echo "usage: comskip_wrapper.sh [comskip.ini] [TS file]" 1>&2
exit 1
fi

if ! test -f $1; then
echo ".ini file $1 does not exists."
exit 1
fi

if ! test -f $2; then
echo "TS file $2 does not exists."
exit 1
fi

COMSKIP=/usr/local/bin/comskip
OPTIONS=--csvout
INIFILE=$1
TS_FILE=$2

exec LD_LIBRARY_PATH=/usr/local/lib ${COMSKIP} ${OPTIONS} --ini=${INIFILE} ${TS_FILE}

if test $? eq 1; then
echo "comskip failed CM detect...exit" 1>&2
exit 1
fi

FILE_NAME=`basename ${TS_FILE}`

if ! test -f `pwd`/${FILE_NAME}.vdr; then
echo ".vdr file does not exists...exit" 1>&2
exit 1
fi

VDR_FILE=`pwd`/${FILE_NAME}.vdr



# while read [変数名]; do [処理...] ; done < [入力ファイル]
# ffmpeg -y -i ./3027-12-20130924-0135.m2t -c copy -ss 00:01:02.56 -t 00:00:36.72 -sn ./3027-12-20130924-0135_0001.ts

0 comments on commit 71ee9e5

Please sign in to comment.