parent
7aef0d2805
commit
f6a262ff79
2 changed files with 24 additions and 3 deletions
@ -0,0 +1,21 @@ |
||||
#! /bin/bash -ex |
||||
|
||||
SRC=${1:-.} |
||||
DST=${2:-/var/tmp/spielfilme/mp4} |
||||
|
||||
for f in $(find "$SRC" \( \( -name '.??*' -o -name '*.jpg' \) -prune \) -o -type f -print); do |
||||
t="${f/$SRC/$DST}" |
||||
t="${t%.*}.mp4" |
||||
if test -s "${t}"; then |
||||
continue; |
||||
fi |
||||
if ( ! test -s "${t}" ) && ( test -e "$t" ); then |
||||
rm "$t" |
||||
fi |
||||
test -d "${t%/*}" || mkdir -p "${t%/*}" |
||||
#avconv -i "$f" -vcodec libx264 -deinterlace -acodec libvo_aacenc "$t" |
||||
avconv -i "$f" -vcodec libx264 -acodec aac -strict experimental -deinterlace "$t" |
||||
if ( ! test -s "${t}" ) && ( test -e "$t" ); then |
||||
rm "$t" |
||||
fi |
||||
done |
Loading…
Reference in new issue