Ver código fonte

update bash to sh

gemer 4 anos atrás
pai
commit
6a35c2e481
5 arquivos alterados com 65 adições e 9 exclusões
  1. 7 7
      4dage-ffmpeg
  2. 10 1
      README.md
  3. 46 0
      docs/documention-cn.md
  4. 1 0
      install-4dage
  5. 1 1
      install-ffmpeg

+ 7 - 7
4dage-ffmpeg

@@ -19,8 +19,8 @@ command_exists() {
     return 0
 }
 print_usage() {
-    echo -e "\033[43;34m $package - 4dage custom version for ffmpeg: \033[0m"
-    echo -e "${green}If have problem with this, please contact with gemer AKA: 张宇鹏<zhangyupeng@cgaii.com>"
+    echo "\033[43;34m $package - 4dage custom version for ffmpeg: \033[0m"
+    echo "${green}If have problem with this, please contact with gemer AKA: 张宇鹏<zhangyupeng@cgaii.com>"
     echo "$package [options] application [arguments]"
     echo " "
     echo "${red}options:"
@@ -30,7 +30,7 @@ print_usage() {
     echo "-n, --name=output file name       output file name"
     echo "-o, --output=DIR      specify a directory to store output in"
     echo " "
-    echo -ne "\033[0;33m"
+    echo "\033[0;33m"
     cat <<EOF
                                   _oo0oo_
                                  088888880
@@ -55,7 +55,7 @@ print_usage() {
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                         佛祖保佑    TTT    万无一失
 EOF
-    echo -ne "\033[m"
+    echo "\033[m"
 }
 make_temp_dir() {
     # # Make a temp folder
@@ -152,7 +152,7 @@ covertVideoTask() {
     fi
     # -vf "scale=iw/2:ih/2"
     ffmpeg -i $videoFile -i $tempAudio -c:v copy -c:a aac -strict -2 $tempVideo -y
-    FFREPORT=file="$outputFolder/$outputName.$videoFileType.txt":level=32 ffmpeg -i $tempVideo -s 1056x792 -c:v libx264 -profile:v high -level:v 4.1 -vf "scale=iw/2:ih/2" -pix_fmt yuv420p -movflags +faststart -bf 2 -c:a copy "$outputFolder/$outputName.$videoFileType" -y 
+    FFREPORT=file="$outputFolder/$outputName.$videoFileType.txt":level=32 ffmpeg -i $tempVideo -s 1056x792 -c:v libx264 -profile:v high -level:v 4.1 -vf "scale=iw/2:ih/2" -pix_fmt yuv420p -movflags +faststart -bf 2 -c:a copy "$outputFolder/$outputName.$videoFileType" -y
     FFREPORT=file="$outputFolder/$outputName.flv.txt":level=32 ffmpeg -i $tempVideo -s 1056x792 -c:v libx264 -ar 44100 -profile:v high -level:v 4.1 -vf "scale=iw/2:ih/2" -pix_fmt yuv420p -movflags +faststart -bf 2 -c:a copy "$outputFolder/$outputName.flv" -y
     # ffmpeg -i $tempVideo -s 1056x792 -c:v libx265 -movflags faststart -bf 2 -c:a copy "$outputFolder/$outputName.265.$videoFileType" -y
     # export lastOutPutVideo=$outputFolder/$outputName.$videoFileType
@@ -186,7 +186,7 @@ if [ ! -z $videoFile ] && [ ! -z $audioFile ] && [ ! -z $outputName ] && [ ! -z
         mediainfo --fullscan "$outputFolder/$outputName.flv" --Output=JSON >"$outputFolder/$outputName.flv.json"
     fi
 
-    echo -ne "\033[0;32m"
+    echo "\033[0;32m"
     cat <<EOF
                                   _oo0oo_
                                  088888880
@@ -211,7 +211,7 @@ if [ ! -z $videoFile ] && [ ! -z $audioFile ] && [ ! -z $outputName ] && [ ! -z
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                         佛祖保佑    TTT    顺利转换
 EOF
-    echo -ne "\033[m"
+    echo "\033[m"
     echo "covert done!"
 else
     if [ ! -n "$1" ]; then

+ 10 - 1
README.md

@@ -2,7 +2,13 @@
 
 ## Maintainer: Gemer cheung <zhangyupeng@cgaii.com>
 
-## A Custom version FFmpeg for 4DAGE 4D Kankan, bootup by NVIDIA's GPU accelerated video codecs, LV2 python nervous plugin,special with command `4dage-ffmpeg`
+
+# Documentation
+
+[English](README.md)
+[中文](docs/[English](README.md))
+
+## A Custom version FFmpeg for 4DAGE 4D Kankan, bootup by NVIDIA's GPU accelerated video codecs, LV2 python nervous plugin,such as speech-denoiser ladspa etc.... special with command `4dage-ffmpeg`
 
 This repository is build with the FFmpeg build script provides an easy way to build custom version with a static FFmpeg on **macOS** and **Linux** with **non-free codecs** included.
 
@@ -40,3 +46,6 @@ $ /bin/bash -c "$(curl -fsSL http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/
 ```bash
 $ /bin/bash -c "$(curl -fsSL http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/install-4dage)"  
 ```
+
+### Deb installation:
+

+ 46 - 0
docs/documention-cn.md

@@ -0,0 +1,46 @@
+# 4DAGE-FFMPEG 中文说明
+
+## 维护者: 张宇鹏 <zhangyupeng@cgaii.com>
+
+
+## 一个专门为4DAGE 4D Kankan而优化设计的FFmpeg,可以利用NVIDIA's GPU视频核心的加速,拥有python lv2的神经网络学习插件,如有speech-denoiser,ladspa等声音降噪功能,如`4dage-ffmpeg`中有使用。
+
+This repository is build with the FFmpeg build script provides an easy way to build custom version with a static FFmpeg on **macOS** and **Linux** with **non-free codecs** included.
+
+## Supported Codecs
+
+- `x264`: H.264 Video Codec (MPEG-4 AVC)
+- `x265`: H.265 Video Codec (HEVC)
+- `libsvtav1`, SVT-AV1 Encoder and Decoder
+- `aom`: AV1 Video Codec (Experimental and very slow!)
+- `fdk_aac`: Fraunhofer FDK AAC Codec
+- `xvidcore`: MPEG-4 video coding standard
+- `VP8/VP9/webm`: VP8 / VP9 Video Codec for the WebM video file format
+- `mp3`: MPEG-1 or MPEG-2 Audio Layer III
+- `ogg`: Free, open container format
+- `vorbis`: Lossy audio compression format
+- `theora`: Free lossy video compression format
+- `opus`: Lossy audio coding format
+- `srt`: Secure Reliable Transport
+- `srt`: Secure Reliable Transport
+- `webp`: Image format both lossless and lossy
+
+## some spec has using some flag with the repo's recommended params spec.
+
+[https://gist.github.com/mikoim/27e4e0dc64e384adbcb91ff10a2d3678](https://gist.github.com/mikoim/27e4e0dc64e384adbcb91ff10a2d3678)
+
+### Easy installation with effective 4dag-ffmpeg :
+
+```bash
+$ /bin/bash -c "$(curl -fsSL http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/web-install.sh)" 
+```
+
+
+### Only update 4dag-ffmpeg for feature:
+
+```bash
+$ /bin/bash -c "$(curl -fsSL http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/install-4dage)"  
+```
+
+### Deb installation:
+

+ 1 - 0
install-4dage

@@ -1,4 +1,5 @@
 #!/bin/sh
+
 mkdir -p /usr/local/4dage-ffmpeg
 cat <(curl -s http://192.168.0.115:3000/zhangyupeng/4dage-ffmpeg/raw/master/4dage-ffmpeg) > /usr/local/4dage-ffmpeg/4dage-ffmpeg
 chmod a+x /usr/local/4dage-ffmpeg/4dage-ffmpeg

+ 1 - 1
install-ffmpeg

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # export http_proxy=http://192.168.0.144:7890   https_proxy=http://192.168.0.144:7890
 
 PROGNAME=$(basename "$0")