|
@@ -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
|