Browse Source

relase: cam8 realase 0.2.1 确定转向 1056x792 并去掉旋转

gemercheung 9 months ago
parent
commit
33dba43fc3
1 changed files with 5 additions and 4 deletions
  1. 5 4
      4dage/4dage-ffmpeg-cam8

+ 5 - 4
4dage/4dage-ffmpeg-cam8

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-version="0.2.0"
+version="0.2.1"
 videoFile=''
 audioFile=''
 outputName=''
@@ -171,10 +171,11 @@ covertVideoTask() {
     if [ "${RC}" -ne "0" ]; then
         FFREPORT=file="$outputFolder/$outputName.audio.txt":level=32 ffmpeg -i $audioFile -af "highpass=f=200, lowpass=f=3000" $tempAudio -y
     fi
-    #  marker 2024-10-25 确定转向 1056x792
+    #,transpose=dir=1:passthrough=portrait 备用旋转
+    #  marker 2024-10-25 确定转向 1056x792 并去掉旋转
     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,transpose=dir=1:passthrough=portrait" -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,transpose=dir=1:passthrough=portrait" -pix_fmt yuv420p -movflags +faststart -bf 2 -c:a copy "$outputFolder/$outputName.flv" -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
     takeVideoCap
     mkVerison
     # ffmpeg -i $tempVideo -s 1056x792 -c:v libx265 -movflags faststart -bf 2 -c:a copy "$outputFolder/$outputName.265.$videoFileType" -y