]> git.nbdom.net Git - nb.git/commitdiff
jpg2avi
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 8 Aug 2015 20:13:16 +0000 (21:13 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 8 Aug 2015 20:13:16 +0000 (21:13 +0100)
etc/profile.d/functions

index cf3cbba8b1f9894541de81da2affebef379e09c3..e91ed5baa8c139c68cbe0aa1c3a0032793ccf958 100644 (file)
@@ -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"
 }