5,7 → 5,7 |
# vcs |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos |
# |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Toni Corvera |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera |
# |
# This program is free software; you can redistribute it and/or |
# modify it under the terms of the GNU Lesser General Public |
19,7 → 19,7 |
# |
# You should have received a copy of the GNU Lesser General Public |
# License along with this library; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
# |
# Author: Toni Corvera <outlyer@gmail.com> |
# |
29,9 → 29,9 |
# The full changelog can be found at <http://p.outlyer.net/vcs/files/CHANGELOG> |
|
|
declare -r VERSION="1.13" |
declare -r VERSION="1.13.1" |
declare -r RELEASE=1 |
declare -ri PRERELEASE=2 |
declare -ri PRERELEASE=1 |
[ "$RELEASE" -eq 1 ] || declare -r SUBVERSION="-pre.${PRERELEASE}" |
|
set -e |
1920,11 → 1920,11 |
# Note to self: Don't change the -vc as it would affect $vdec |
if [[ $DVD_MODE -eq 0 ]]; then |
MPLAYER_CACHE=$("$MPLAYER_BIN" -benchmark -ao null -vo null -identify -frames 0 \ |
-quiet "$f" 2>"$STDERR" | grep ^ID) |
-quiet "$f" 2>"$STDERR" | grep '^ID') |
else |
MPLAYER_CACHE=$("$MPLAYER_BIN" -benchmark -ao null -vo null -identify -frames 0 \ |
-quiet -dvd-device "$f" dvd://$DVD_TITLE \ |
2>"$STDERR" | grep ^ID) |
2>"$STDERR" | grep '^ID') |
fi |
# Note the head -1! |
mi[$VCODEC]=$(grep ID_VIDEO_FORMAT <<<"$MPLAYER_CACHE" | head -1 | cut -d'=' -f2) # FourCC |
4270,7 → 4270,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}${SUBVERSION}, (c) 2007-2014 Toni Corvera" |
} |
|
# Prints the list of options to stdout |