6,6 → 6,8 |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos |
# |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Toni Corvera |
# with patches from Phil Grundig and suggestions/corrections from |
# many others (see homepage) |
# |
# This program is free software; you can redistribute it and/or |
# modify it under the terms of the GNU Lesser General Public |
31,8 → 33,6 |
|
declare -r VERSION="1.13" |
declare -r RELEASE=0 |
declare -ri PRERELEASE=2 |
[ "$RELEASE" -eq 1 ] || declare -r SUBVERSION="-pre.${PRERELEASE}" |
|
set -e |
|
136,7 → 136,7 |
# See $TIMECODE_FROM |
declare -ri TC_INTERVAL=4 TC_NUMCAPS=8 |
# These can't be overriden, modify this line if you feel the need |
declare -r PROGRAM_SIGNATURE="Video Contact Sheet *NIX ${VERSION}${SUBVERSION} <http://p.outlyer.net/vcs/>" |
declare -r PROGRAM_SIGNATURE="Video Contact Sheet *NIX ${VERSION} <http://p.outlyer.net/vcs/>" |
# Filename pattern for safe renaming (appending numbers until finding a name |
#+not in use). |
# Since 1.13 no longer configurable. Don't mess with it too much. |
170,9 → 170,6 |
# See capture() and capture_and_evade() |
declare -a EVASION_ALTERNATIVES=( -5 +5 -10 +10 -30 +30 ) |
|
# Save the terminal settings to later restore them (in exithdlr) |
declare -r STTY=$(stty -g) |
|
# }}} # End of constants |
|
# {{{ # Override-able variables |
1635,7 → 1632,7 |
return 0 |
} |
|
# Remove any temporary files |
# Remove any temporal files |
# Does nothing if none has been created so far |
# cleanup() |
cleanup() { |
1657,7 → 1654,6 |
cleanup |
# XXX: In one of my computers a terminal reset is required |
#tset |
stty "$STTY" |
} |
|
# Feedback handling, these functions are use to print messages respecting |
1675,7 → 1671,7 |
echo "$1$SUFFIX_FBACK" |
fi >&2 |
# It is important to redirect both tput and echo to stderr. Otherwise |
# n=$(something) wouldn't be colourised |
# n=$(something) wouldn't be coloured |
} |
# |
# Print a non-fatal error or warning |
4253,7 → 4249,7 |
# Prints the program identification to stderr |
show_vcs_info() { # Won't be printed in quiet modes |
# Don't colourise this |
infplain "Video Contact Sheet *NIX v${VERSION}${SUBVERSION}, (c) 2007-2013 Toni Corvera" |
infplain "Video Contact Sheet *NIX v${VERSION}, (c) 2007-2013 Toni Corvera" |
} |
|
# Prints the list of options to stdout |
5109,7 → 5105,6 |
Chosen capturer: $usrcap |
Filterchain: [ ${FILTERS_IND[*]} ] |
Safe step: $QUIRKS_LEN_STEP |
Blank evasion: $prevent_evasion |
=== Versions === |
Bash: $BASH_VERSION |
Getopt: $($GETOPT --version)$awkv$sedv |