daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest May 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. if [ "" = "${1}" ]; then
  3.         echo "You need you provide at least 1 file to encode.";
  4.         exit 1;
  5. fi;
  6.  
  7. while test -n "${1}"; do
  8.         if [ "" != "${1}" -a -e "${1}" ]; then
  9.                 ffmpeg -i "${1}" -threads 4 -s 800x480 -vcodec mpeg4 -sameq -acodec libfaac -ac 1 -ar 16000 -ab 32000 -r 23.98 "${1}.mp4"
  10.         fi;
  11.         shift;
  12. done;
RAW Paste Data
Top