diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-03-10 19:34:16 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-03-10 19:34:16 +1030 |
commit | 8f77f826ad5d26cacb96883375fc67f478034c0d (patch) | |
tree | 2907a46b2a0326fc540f1a99bc8064e8fd6444ab /animegrep.sh | |
parent | bb2a63bd7ae3bc731709c4473d799716a3590e04 (diff) | |
download | animegrep-8f77f826ad5d26cacb96883375fc67f478034c0d.tar.gz animegrep-8f77f826ad5d26cacb96883375fc67f478034c0d.zip |
added GPL licence information
Diffstat (limited to 'animegrep.sh')
-rwxr-xr-x | animegrep.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/animegrep.sh b/animegrep.sh index 52fcee1..c57373a 100755 --- a/animegrep.sh +++ b/animegrep.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright Daniel Jones 2018 + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # check for mkvextract command -v mkvextract >/dev/null 2>&1 || { echo >&2 "Requires mkvextract. Aborting."; exit; } @@ -116,7 +130,12 @@ function parseline function cutvideo { # $1 = file $2 = start time $3 = end time $4 = CFILE - ffmpeg -i "$1" -ss 0"$2" -to 0"$3" -async 1 -c:v libx264 -preset ultrafast out/clips/clip_"$x".mkv < /dev/null + + echo "$1" start time: "$2" end time: "$3" >> out/times.txt; + + #ffmpeg -i "$1" -ss 0"$2" -to 0"$3" -async 1 -c:v libx264 -preset ultrafast out/clips/clip_"$x".mkv < /dev/null + + #ffmpeg -i "$1" -ss 0"$2" -to 0"$3" -async 1 -map 0:0 -map 0:2 -c:v libx264 -preset ultrafast out/clips/clip_"$x".mkv < /dev/null; } function merge |