From: Nicolas Boisselier Date: Sat, 8 Aug 2015 20:13:16 +0000 (+0100) Subject: jpg2avi X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0ef7a6bf997bff2f8c2243944ce5a73d308f20f9;p=nb.git jpg2avi --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index cf3cbba8..e91ed5ba 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -305,7 +305,9 @@ jpg2avi() { done #echo $(cat $still)" -> $avi" - mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -mf type=jpeg:fps=24 mf://@${still} -o $avi + declare opt='' + [ "$avi" == "-" ] && opt="$opt -really-quiet" + mencoder${opt} -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -mf type=jpeg:fps=24 mf://@${still} -o $avi rm -f "$still" }