VHS Video Loss Generator
About this app
Create nostalgic VHS style video loss effects for your videos with our fun and easy-to-use web app. Add glitchy VHS simulations and effects instantly!
VHS Video Loss Generator VHS Video Loss Generator Select a video file to generate a nostalgic VHS style video loss effect. Upload Video Generate VHS Effect
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>VHS Video Loss Generator</title>
<meta name="description" content="Create nostalgic VHS style video loss effects for your videos with our fun and easy-to-use web app. Add glitchy VHS simulations and effects instantly!">
<meta name="keywords" content="VHS, Video Generator, Retro Effects, Glitch, Video Loss, Nostalgic, Web App">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
const videoInput = document.getElementById('video-input');
const uploadButton = document.getElementById('upload-button');
const generateButton = document.getElementById('generate-button');
const output = document.getElementById('output');
uploadButton.addEventListener('click', () => {
videoInput.click();
});
videoInput.addEventListener('change', (event) => {
const file = event.target.files[0];
if(file) {
const fileURL = URL.createObjectURL(file);
output.innerHTML = `
<video controls id="preview" class="mt-2" width="720">
<source src="${fileURL}" type="video/mp4">
</video>
`;
}
});
generateButton.addEventListener('click', () => {
const video = document.getElementById('preview');
if(video) {
let currentTime = 0;
function glitchEffect() {
if (currentTime < video.duration) {
video.currentTime = currentTime;
if (Math.random() < 0.3) {
video.style.filter = "contrast(40%)";
} else {
video.style.filter = "none";
}
currentTime += 0.1;
requestAnimationFrame(glitchEffect);
} else {
video.style.filter = "none";
}
}
glitchEffect();
}
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #3e8e41, #43d24a);
color: white;
font-family: 'Arial', sans-serif;
}
#main-container {
text-align: center;
margin-top: 5%;
}
.button {
background-color: #f8b400;
border: none;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
border-radius: 5px;
}
.button:hover {
background-color: #e9a500;
}
video {
border: 5px solid #fff;
border-radius: 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1 class="mb-4">VHS Video Loss Generator</h1>
<p>Select a video file to generate a nostalgic VHS style video loss effect.</p>
<input type="file" id="video-input" accept="video/mp4" style="display:none;">
<button class="button" id="upload-button">Upload Video</button>
<div id="output" class="mt-4"></div>
<button class="button mt-3" id="generate-button">Generate VHS Effect</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!