Browse Source

Code refactoring

JTXman 10 years ago
parent
commit
fdd4fae443
1 changed files with 18 additions and 18 deletions
  1. 18 18
      JTX-Encoder.bat

+ 18 - 18
JTX-Encoder.bat

2
 title= ---- Encodeur du JTX ----
2
 title= ---- Encodeur du JTX ----
3
 color 0C
3
 color 0C
4
 cls
4
 cls
5
-:start
6
 echo  ******************************************************
5
 echo  ******************************************************
7
 echo  ****************** Encodeur du JTX *******************
6
 echo  ****************** Encodeur du JTX *******************
8
 echo  ******************************************************
7
 echo  ******************************************************
16
 echo 2 : HD       1280x720  3 Mbits/s   25 i/s
15
 echo 2 : HD       1280x720  3 Mbits/s   25 i/s
17
 echo 3 : Web      854x480   1.5 Mbits/s 25 i/s
16
 echo 3 : Web      854x480   1.5 Mbits/s 25 i/s
18
 echo 4 : Archives 720x576   1.5 Mbits/s 25 i/s
17
 echo 4 : Archives 720x576   1.5 Mbits/s 25 i/s
19
-goto:encodingchoice
20
 
18
 
21
-:encodingchoice
22
 choice /C 1234 /N /M "S‚lectionez le r‚glage en appuyant sur [1], [2], [3] ou [4] :"
19
 choice /C 1234 /N /M "S‚lectionez le r‚glage en appuyant sur [1], [2], [3] ou [4] :"
23
 echo.
20
 echo.
24
 if errorlevel 4 (
21
 if errorlevel 4 (
45
 	echo ***********************************************
42
 	echo ***********************************************
46
 	call :encoding 1
43
 	call :encoding 1
47
 )
44
 )
48
-cls
49
-set pute=1
50
-goto:start
45
+goto:eof
51
 
46
 
52
 :encoding
47
 :encoding
53
 echo.
48
 echo.
78
 if %extension%==".mxf" set toencode="true"
73
 if %extension%==".mxf" set toencode="true"
79
 if %extension%==".MXF" set toencode="true"
74
 if %extension%==".MXF" set toencode="true"
80
 if %toencode%=="true" (
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
 goto:eof
81
 goto:eof
87
 
82
 
88
 
83
 
89
 :fullhd
84
 :fullhd
90
-title= ---- Encodeur du JTX ---- Encodage de "%1" en FullHD
85
+title= ---- Encodeur du JTX ---- Encodage de %1 en FullHD
91
 move %1 Originaux/
86
 move %1 Originaux/
92
 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"
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
 goto:eof
88
 goto:eof
94
 :hd
89
 :hd
95
-title= ---- Encodeur du JTX ---- Encodage de "%1" en HD
90
+title= ---- Encodeur du JTX ---- Encodage de %1 en HD
96
 move %1 Originaux/
91
 move %1 Originaux/
97
 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"
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
 goto:eof
93
 goto:eof
99
 :web
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
 move %1 Originaux/
96
 move %1 Originaux/
102
 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"
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
 goto:eof
98
 goto:eof
104
 :archives
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
 move %1 Originaux/
101
 move %1 Originaux/
107
 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"
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
 goto:eof
103
 goto:eof
110
 
105
 
111
 :end
106
 :end
112
 color 0b
107
 color 0b
113
-title= ---- Encodeur Courtine ---- Encodage termine
108
+title= ---- Encodeur du JTX ---- Encodage termine
114
 cls
109
 cls
115
 echo.
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
 echo.
119
 echo.
120
 Pause
120
 Pause
121
 exit
121
 exit