video-compressor/size-template.html

85 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Easily compress video files to {{size}}MB online for free to bypass file size limits">
<title>Compress videos to {{size}}MB online for free</title>
<script defer src="/assets/scripts/ffmpeg/package/dist/umd/ffmpeg.js"></script>
<script defer type="module" src="/assets/scripts/main.js"></script>
<script>
var FILE_SIZE = {{size}};
var FILE_SIZE_UNIT = "mb";
</script>
<link rel="canonical" href="https://compact.video/size/{{size}}mb/">
<link rel="shortcut icon" href="/assets/images/icon.png">
<link rel="apple-touch-icon" href="/assets/images/icon.png">
<link rel="stylesheet" href="/assets/styles/main.css">
<link rel="stylesheet" href="/assets/styles/ui.css">
<link rel="stylesheet" href="/assets/styles/file-picker-section.css">
<link rel="stylesheet" href="/assets/styles/loading-section.css">
<link rel="stylesheet" href="/assets/styles/result-section.css">
</head>
<body>
<h1><span class="gradient-text">compact</span>.video</h1>
<h2 style="margin-top: 3rem;">Compress your video to {{size}}MB</h2>
<section id="file-picker-section">
<label id="file-drop-area" tabindex="0">
<span>Drag and drop a file here!</span>
<input id="file-input" type="file" accept="video/*" tabindex="-1">
</label>
<div id="file-input-spacing" style="margin-top: -1rem">
<button class="simple">.</button>
</div>
<video id="uploaded-video" controls autoplay></video>
<button id="remove-file" class="simple">Remove video</button>
<button id="compress" class="primary">Compress</button>
<hr>
<p>
This free online tool allows you to easily compress video files
to specific sizes such as {{size}}MB, allowing you to upload
videos to platforms that restrict file size when uploading
attachments. This tool will find out the highest possible
quality your video file can be in while still being below the
file size limit. To select a different file size, you can go to
the homepage and type in a custom size.
</p>
<a href="/"><button class="simple">Back to home</button></a>
</section>
<section id="loading-section" style="opacity: 0; display: none;">
<h3 id="loading-title">Please wait...</h3>
<p id="loading-description">Your video is being compressed. This may take a while.</p>
<div id="progress-container">
<div id="progress-indicator"></div>
</div>
<p id="progress-percentage">0%</p>
<p><label><input id="notify-checkbox" type="checkbox"> Notify on finish</label></p>
<button id="cancel" class="simple">Cancel</button>
</section>
<section id="result-section" style="opacity: 0; display: none;">
<h4 id="result-title">Your video has been compressed!</h4>
<p>Result size: <span id="result-size"></span></p>
<video id="compressed-video" controls autoplay></video><br>
<button id="download" class="primary">Download</button><br>
<button id="share" class="secondary">Share video</button><br>
<button id="back" class="simple">Go back</button>
</section>
</body>
</html>