-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (40 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Video Deflickering Tool</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./assets/ffmpeg/package/dist/umd/ffmpeg.js"></script>
<script src="./assets/util/package/dist/umd/index.js"></script>
<meta charset="UTF-8">
</head>
<body class="m-4">
<input type="file" id="videoUploader" accept="video/*" class="mb-4"/>
<div id="controls" class="mb-4">
<label class="mr-2">Brightness:
<input type="range" id="brightness" min="0.5" max="2.0" step="0.01" value="1.0" class="mx-2">
<span id="brightnessValue">1.0</span>
</label>
<label class="mr-2">Contrast:
<input type="range" id="contrast" min="0.5" max="2.0" step="0.01" value="1.0" class="mx-2">
<span id="contrastValue">1.0</span>
</label>
<button id="processButton" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Process Video
</button>
<button id="downloadButton" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded"
style="display:none;">Download Processed Video
</button>
<p id="ffmpegLog">FFmpeg logs will appear here...</p>
</div>
<div class="flex flex-col lg:flex-row justify-center items-start">
<div class="video-container m-2 w-full lg:w-3/4 max-w-2xl">
<video id="videoPlayer" controls class="w-full h-auto"></video>
</div>
<div class="canvas-container m-2 relative w-full lg:w-3/4 max-w-2xl h-auto">
<canvas id="previewCanvas" class="w-full" style="display:none;"></canvas>
</div>
</div>
<script src="videoProcessor.js" type="module"></script>
</body>
</html>