Przeglądaj źródła

Initial version of JTX-Encoder
* format selection
* encodes all videos in current folder

JTXman 10 lat temu
commit
94a4a7417c
2 zmienionych plików z 124 dodań i 0 usunięć
  1. BIN
      Icon-Digital-Video-Encoding.ico
  2. 124 0
      JTX-Encoder.bat

BIN
Icon-Digital-Video-Encoding.ico


+ 124 - 0
JTX-Encoder.bat

@@ -0,0 +1,124 @@
1
+@echo off
2
+title= ---- Encodeur du JTX ----
3
+color 0C
4
+cls
5
+:start
6
+echo  ******************************************************
7
+echo  ****************** Encodeur du JTX *******************
8
+echo  ******************************************************
9
+echo.
10
+echo Ce programme encode les vid‚os du dossier dans lequel
11
+echo il est plac‚, puis transfŠre les fichiers originaux 
12
+echo dans un dossier Originaux/. 
13
+echo Aucune vid‚o n'est donc supprim‚e.
14
+echo.
15
+echo 1 : FullHD   1920x1080 8 Mbits/s   25 i/s
16
+echo 2 : HD       1280x720  3 Mbits/s   25 i/s
17
+echo 3 : Web      854x480   1.5 Mbits/s 25 i/s
18
+echo 4 : Archives 720x576   1.5 Mbits/s 25 i/s
19
+goto:encodingchoice
20
+
21
+:encodingchoice
22
+choice /C 1234 /N /M "S‚lectionez le r‚glage en appuyant sur [1], [2], [3] ou [4] :"
23
+echo.
24
+if errorlevel 4 (
25
+	echo ********************************************************
26
+	echo Encodage au format Archives : 720x576 1.5 Mbits/s 25 i/s
27
+	echo ********************************************************
28
+	call :encoding 4
29
+)
30
+if errorlevel 3 (
31
+	echo ***************************************************
32
+	echo Encodage au format Web : 854x480 1.5 Mbits/s 25 i/s
33
+	echo ***************************************************
34
+	call :encoding 3
35
+)
36
+if errorlevel 2 (
37
+	echo ******************************************
38
+	echo Encodage en HD : 1280x720 3 Mbits/s 25 i/s
39
+	echo ******************************************
40
+	call :encoding 2
41
+)
42
+if errorlevel 1 (
43
+	echo ***********************************************
44
+	echo Encodage en FullHD : 1920x1080 8 Mbits/s 25 i/s
45
+	echo ***********************************************
46
+	call :encoding 1
47
+)
48
+cls
49
+set pute=1
50
+goto:start
51
+
52
+:encoding
53
+echo.
54
+md Originaux
55
+color 0a
56
+for %%a in (*.*) do (
57
+	call :encodingcheck %1 "%%a"
58
+)
59
+goto:end
60
+
61
+:encodingcheck
62
+set toencode="false"
63
+set extension="%~x2"
64
+if %extension%==".mkv" set toencode="true"
65
+if %extension%==".MKV" set toencode="true"
66
+if %extension%==".avi" set toencode="true"
67
+if %extension%==".AVI" set toencode="true"
68
+if %extension%==".mpg" set toencode="true"
69
+if %extension%==".MPG" set toencode="true"
70
+if %extension%==".webm" set toencode="true"
71
+if %extension%==".WEBM" set toencode="true"
72
+if %extension%==".mp4" set toencode="true"
73
+if %extension%==".MP4" set toencode="true"
74
+if %extension%==".mov" set toencode="true"
75
+if %extension%==".MOV" set toencode="true"
76
+if %extension%==".mts" set toencode="true"
77
+if %extension%==".MTS" set toencode="true"
78
+if %extension%==".mxf" set toencode="true"
79
+if %extension%==".MXF" set toencode="true"
80
+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
85
+)
86
+goto:eof
87
+
88
+
89
+:fullhd
90
+title= ---- Encodeur du JTX ---- Encodage de "%1" en FullHD
91
+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"
93
+goto:eof
94
+:hd
95
+title= ---- Encodeur du JTX ---- Encodage de "%1" en HD
96
+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"
98
+goto:eof
99
+:web
100
+title= ---- Encodeur du JTX ---- Encodage de "%1" au format Web
101
+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"
103
+goto:eof
104
+:archives
105
+title= ---- Encodeur du JTX ---- Encodage de "%1" au format Archives
106
+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"
108
+goto:eof
109
+
110
+
111
+:end
112
+color 0b
113
+title= ---- Encodeur Courtine ---- Encodage termine
114
+cls
115
+echo.
116
+echo *****************
117
+echo Fin de l'encodage
118
+echo ******************
119
+echo.
120
+Pause
121
+exit
122
+
123
+
124
+