Ver código fonte

Code refactoring

JTXman 10 anos atrás
pai
commit
fdd4fae443
1 arquivos alterados com 18 adições e 18 exclusões
  1. 18 18
      JTX-Encoder.bat

+ 18 - 18
JTX-Encoder.bat

@@ -2,7 +2,6 @@
2 2
 title= ---- Encodeur du JTX ----
3 3
 color 0C
4 4
 cls
5
-:start
6 5
 echo  ******************************************************
7 6
 echo  ****************** Encodeur du JTX *******************
8 7
 echo  ******************************************************
@@ -16,9 +15,7 @@ echo 1 : FullHD   1920x1080 8 Mbits/s   25 i/s
16 15
 echo 2 : HD       1280x720  3 Mbits/s   25 i/s
17 16
 echo 3 : Web      854x480   1.5 Mbits/s 25 i/s
18 17
 echo 4 : Archives 720x576   1.5 Mbits/s 25 i/s
19
-goto:encodingchoice
20 18
 
21
-:encodingchoice
22 19
 choice /C 1234 /N /M "S‚lectionez le r‚glage en appuyant sur [1], [2], [3] ou [4] :"
23 20
 echo.
24 21
 if errorlevel 4 (
@@ -45,9 +42,7 @@ if errorlevel 1 (
45 42
 	echo ***********************************************
46 43
 	call :encoding 1
47 44
 )
48
-cls
49
-set pute=1
50
-goto:start
45
+goto:eof
51 46
 
52 47
 :encoding
53 48
 echo.
@@ -78,31 +73,31 @@ if %extension%==".MTS" set toencode="true"
78 73
 if %extension%==".mxf" set toencode="true"
79 74
 if %extension%==".MXF" set toencode="true"
80 75
 if %toencode%=="true" (
81
-if %1==1 call :fullhd %2
82
-if %1==2 call :hd %2
83
-if %1==3 call :web %2
84
-if %1==4 call :archives %2
76
+	if %1==1 call :fullhd %2
77
+	if %1==2 call :hd %2
78
+	if %1==3 call :web %2
79
+	if %1==4 call :archives %2
85 80
 )
86 81
 goto:eof
87 82
 
88 83
 
89 84
 :fullhd
90
-title= ---- Encodeur du JTX ---- Encodage de "%1" en FullHD
85
+title= ---- Encodeur du JTX ---- Encodage de %1 en FullHD
91 86
 move %1 Originaux/
92 87
 ffmpeg.exe -i Originaux/%1 -threads 0 -c:v libx264 -b:v 8M -maxrate 12M -r 25 -s 1920x1080 -x264opts level=4 -c:a aac -strict experimental -b:a 192k -y "%~np1.mp4"
93 88
 goto:eof
94 89
 :hd
95
-title= ---- Encodeur du JTX ---- Encodage de "%1" en HD
90
+title= ---- Encodeur du JTX ---- Encodage de %1 en HD
96 91
 move %1 Originaux/
97 92
 ffmpeg.exe -i Originaux/%1 -threads 0 -c:v libx264 -b:v 3M -maxrate 4.5M -r 25 -s 1280x720 -x264opts level=3.1 -c:a aac -strict experimental -b:a 192k -y "%~np1.mp4"
98 93
 goto:eof
99 94
 :web
100
-title= ---- Encodeur du JTX ---- Encodage de "%1" au format Web
95
+title= ---- Encodeur du JTX ---- Encodage de %1 au format Web
101 96
 move %1 Originaux/
102 97
 ffmpeg.exe -i Originaux/%1 -threads 0 -c:v libx264 -b:v 1.5M -maxrate 2.25M -r 25 -s 854x480 -x264opts level=3 -c:a aac -strict experimental -b:a 192k -y "%~np1.mp4"
103 98
 goto:eof
104 99
 :archives
105
-title= ---- Encodeur du JTX ---- Encodage de "%1" au format Archives
100
+title= ---- Encodeur du JTX ---- Encodage de %1 au format Archives
106 101
 move %1 Originaux/
107 102
 ffmpeg.exe -i Originaux/%1 -threads 0 -c:v libx264 -b:v 1.5M -maxrate 2.25M -r 25 -s  720x576 -x264opts level=3 -c:a aac -strict experimental -b:a 192k -y "%~np1.mp4"
108 103
 goto:eof
@@ -110,12 +105,17 @@ goto:eof
110 105
 
111 106
 :end
112 107
 color 0b
113
-title= ---- Encodeur Courtine ---- Encodage termine
108
+title= ---- Encodeur du JTX ---- Encodage termine
114 109
 cls
115 110
 echo.
116
-echo *****************
117
-echo Fin de l'encodage
118
-echo ******************
111
+echo ***************************
112
+echo **** Fin de l'encodage ****
113
+echo ***************************
114
+echo.
115
+echo Les fichiers originaux se trouvent dans le dossier
116
+echo Originaux/
117
+echo.
118
+echo Merci d'avoir choisi l'encodeur du JTX !
119 119
 echo.
120 120
 Pause
121 121
 exit