minor fixes

This commit is contained in:
David 2015-08-31 13:29:43 -03:00
parent f5e125047a
commit a04c277e83

8
dve
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
set -e
@ -8,7 +8,7 @@ OPTS="-c:v libx265 -preset fast -x265-params crf=24 -c:a libvorbis -aq 5 -c:s co
SUFFIX="_new.mkv"
SERVERS=":"
LEN=60
OUTDIR="$HOME/.dve"
OUTDIR="/tmp/.dve" #ram
VERBOSE="error"
# override defaults in a ~/.dverc file
if [ -f ~/.dverc ]; then
@ -89,13 +89,11 @@ if [[ "$1" == *".AVI" || "$1" == *".avi" ]]; then
else
$ENC -i "$1" -map 0 -codec copy -f segment -segment_time $LEN -segment_format matroska -v ${VERBOSE} "${OUTDIR}/chunk-%03d.orig"
fi
CWD=`pwd`
cd "$OUTDIR"
echo "Running parallel encoding jobs"
PAR_OPTS="--gnu -j 1 -S ${SERVERS} --eta --retries 2 --nice 10"
#PAR_OPTS="$PAR_OPTS --workdir ... --trc {.}.enc"
PAR_OPTS="--no-notice --gnu -j 1 -S ${SERVERS} --eta --retries 2 --nice 10"
PAR_OPTS="$PAR_OPTS --workdir ... --transfer --return {.}.enc"
ENC_OPTS="-y -v ${VERBOSE} -i {} ${OPTS} -f matroska {.}.enc"