Mercurial > utils
changeset 531:857d8ecc26be
Store out files in separate dir to avoid "for video in *; do" match already
converted file.
author | Oleksandr Gavenko <gavenkoa@gmail.com> |
---|---|
date | Mon, 12 Nov 2012 23:09:25 +0200 |
parents | 9b79261d2b00 |
children | 11e5d1fd39e4 |
files | misc/video2nokia5320.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/misc/video2nokia5320.sh Sat Oct 27 14:54:12 2012 +0300 +++ b/misc/video2nokia5320.sh Mon Nov 12 23:09:25 2012 +0200 @@ -2,6 +2,8 @@ # set -x +mkdir -p video2nokia5320 + for video in *; do case "$video" in *.avi) ;; @@ -21,12 +23,12 @@ -oac lavc -ovc lavc \ -lavcopts aglobal=1:vglobal=1:acodec=libmp3lame:abitrate=96:vcodec=mpeg4:vbitrate=500:keyint=100 \ -vf scale=-3:240,crop=320:240,harddup -af lavcresample=44100,volume=10:0 -ofps 15 \ - -o "$name"-mp3.mp4 "$video" + -o video2nokia5320/"$name"-mp3.mp4 "$video" # mencoder -mc 0 -afm ffmpeg -of lavf -lavfopts format=mp4 \ # -oac lavc -ovc lavc \ # -lavcopts aglobal=1:vglobal=1:acodec=libmp3lame:abitrate=128:vcodec=mpeg4:vbitrate=700:keyint=200 \ # -vf scale=-3:240,crop=320:240,harddup -af lavcresample=44100 \ - # -o "$name"-mp3.mp4 "$video" + # -o video2nokia5320/"$name"-mp3.mp4 "$video" done