gemer před 4 roky
rodič
revize
9e8ff473fe
2 změnil soubory, kde provedl 25 přidání a 5 odebrání
  1. 13 0
      README.md
  2. 12 5
      install-ffmpeg

+ 13 - 0
README.md

@@ -72,4 +72,17 @@ In order to accelerating with the downloading speed with compiling the script, w
 ### using gogs as lib fast CDN:
 ```bash
 $ sudo /bin/bash -c "$(curl -fsSL http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/web-install.sh)" --in
+```
+
+
+## `4DAGE-FFMPEG ` command usage:
+
+
+```bash
+$ 4dage-ffmpeg -s <media path> -a <audio path> -n <output name> -o <output path>
+```
+
+```bash
+$ 4dage-ffmpeg -v
+0.1.2
 ```

+ 12 - 5
install-ffmpeg

@@ -254,7 +254,7 @@ export PKG_CONFIG_PATH
 buildEssentialLib() {
   sudo apt-get install -y build-essential autoconf m4 libtool curl -y
   echo "building Essential Lib"
-  echo "======================= $useGitLib"
+  echo "======================="
   if [ "$useGitLib" -eq 1 ]; then
     echo "--- pull gogs lib --- "
     download "http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/packages.tar.gz" "packages.tar.gz"
@@ -767,17 +767,23 @@ if ! command_exists "git"; then
 fi
 
 if [ ! -d "$WORKSPACE/speech-denoiser" ]; then
-  git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
+  if [ "$useGitLib" -eq 1 ]; then
+    git clone http://192.168.0.115:3000/zhangyupeng/speech-denoiser.git "$WORKSPACE/speech-denoiser"
+  else
+    git clone https://github.com/lucianodato/speech-denoiser.git "$WORKSPACE/speech-denoiser"
+  fi
 fi
-
 cd "$WORKSPACE/speech-denoiser"
 if command_exists "python3"; then
   pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
   laverison="3.5.2"
   echo "$pyv"
+  echo "detect your system python3 verison: is $pyv"
+  echo "======================="
   comparse=$(awk 'BEGIN{ print "'$pyv'"<="'$laverison'" }')
   if [ "$comparse" -eq 1 ]; then
-    echo "install system python3.7"
+    echo "system need install system python3.7"
+    echo "======================="
     sudo apt-get remove python3.4 -y
     sudo apt-get install software-properties-common python-software-properties -y
     sudo add-apt-repository ppa:deadsnakes/ppa -y
@@ -785,7 +791,8 @@ if command_exists "python3"; then
     sudo apt-get install python3-pip python3.7 -y
     sudo apt-get install python3.7-gdbm -y
   else
-    echo "python3:$pyv,only need install meson ninja  "
+    echo "system python3 $pyv,only need install meson ninja"
+    echo "======================="
     sudo apt-get install python3-pip -y
     sudo pip3 install meson ninja
   fi