-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
129 lines (109 loc) · 4.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!--
Silence SpeedUp
Speed-up your videos speeding-up (or removing) silences, using FFmpeg.
This is an electron-based app.
Copyright (C) 2020 Vincenzo Padula
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html lang="it">
<head>
<title>Silence SpeedUp</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self';" />
<link rel="stylesheet" type="text/css" href="assets/pages/common.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="code.js"></script>
</head>
<body>
<div id="dropZone">Drop videos here</div>
<div id="gui">
<div class="buttons">
<button id="addFiles" title="Add video(s)"></button>
<button id="addFolder" title="Add folder"></button>
<button id="preferences"title="Preferences"></button>
<button id="about" title="About"></button>
<button id="start" title="Start"></button>
<button id="stop" title="Stop" disabled></button>
<button id="progressMode" title="Switch to progress mode" disabled></button>
</div>
<div id="entryList"></div>
<div id="menu">
<div id="videoSettings">
<div class="setting" id="silenceDetectSettings">
<div>
<label for="threshold">Background noise: <span id="thresholdValue"></span></label>
<input type="range" class="slider" min="0" id="threshold" name="threshold">
</div>
<div>
<label for="silenceMinimumDuration">Silence min duration: <span id="silenceMinimumDurationValue"></span></label>
<input type="range" class="slider" id="silenceMinimumDuration" name="silenceMinimumDuration">
</div>
<div>
<label for="silenceMargin">Silence margin: <span id="silenceMarginValue"></span></label>
<input type="range" class="slider" id="silenceMargin" name="silenceMargin">
</div>
</div>
<div class="setting" id="filterSettings">
<div>
<label for="silenceSpeed">Silence speed: <span id="silenceSpeedValue"></span></label>
<input type="range" min="0" class="slider" id="silenceSpeed" name="silenceSpeed">
</div>
<div>
<label for="playbackSpeed">Playback speed: <span id="playbackSpeedValue"></span></label>
<input type="range" min="0" class="slider" id="playbackSpeed" name="playbackSpeed">
</div>
<div>
<input type="checkbox" id="muteAudio" name="muteAudio">
<label for="muteAudio">Mute silences</label>
</div>
</div>
<div class="setting" id="exportSettings">
<div>
<label for="crf">CRF: <span id="crfValue"></span></label>
<input type="range" class="slider" id="crf" name="crf" min="0" max="51" value="22">
</div>
<div class="setting-select">
<label for="fps">FPS: </label>
<select id="fps" name="fps"></select>
</div>
<div class="setting-select">
<label for="preset">Preset: </label>
<select id="preset" name="preset"></select>
</div>
<div class="setting-select">
<label for="audioRate">Audio rate: </label>
<select id="audioRate" name="audioRate"></select>
</div>
<div class="setting-select">
<label for="tune">Tune: </label>
<select id="tune" name="tune"></select>
</div>
<div class="setting-select">
<label for="videoExtension">Video format: </label>
<select id="videoExtension" name="videoExtension"></select>
</div>
</div>
</div>
</div>
<div id="ffmpegProgressBar"></div>
<div id="ffmpegProgress">
<div>Time</div>
<div id="ffmpegProgressTime">--:--:--.--</div>
<div>Speed</div>
<div id="ffmpegProgressSpeed">-</div>
<div id="ffmpegPercentage">-.-- %</div>
</div>
<div id="shell"></div>
</div>
</body>
</html>