VHS Generation 4 - Retro Media Degrader
About this app
A nostalgic VHS emulator that lets you degrade images and video into high-generation analog artifacts. Relive the 80s aesthetic with tracking errors and noise.
VHS Generation 4 - Retro Media Degrader VHS Generation 4 PLAY REC PM 12:00:00JAN 01 1988 DEGRADATION LEVEL Gen 1 Simulate multiple tape copies (Generation Loss) PAUSE RECORD LOAD NEW TAPE VHS Generation 4 simulates the loss of fidelity when analog media is copied repeatedly. Crank it to 10 for total signal collapse. © 1988 SYNTH-TECH INDUSTRIES
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,viewport-fit=cover">
<title>VHS Generation 4 - Retro Media Degrader</title>
<meta name="description" content="A nostalgic VHS emulator that lets you degrade images and video into high-generation analog artifacts. Relive the 80s aesthetic with tracking errors and noise.">
<meta name="keywords" content="VHS, retro, analog, glitch art, 80s aesthetic, image filter, generation loss, crt effect">
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const videoPreview = document.getElementById('preview-image');
const uploadInput = document.getElementById('upload-input');
const genSlider = document.getElementById('gen-slider');
const genDisplay = document.getElementById('gen-display');
const timestampEl = document.getElementById('vhs-timestamp');
const trackingEl = document.getElementById('tracking-noise');
const staticEl = document.getElementById('static-overlay');
const playBtn = document.getElementById('play-btn');
const recBtn = document.getElementById('rec-btn');
let isPlaying = true;
let currentGen = 1;
// Update Timestamp
function updateTimestamp() {
const now = new Date();
const months = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];
const dateStr = `${months[now.getMonth()]} ${String(now.getDate()).padStart(2, '0')} ${now.getFullYear()}`;
const timeStr = `${String(now.getHours()).padStart(2, '0')}:${String(now.getMinutes()).padStart(2, '0')}:${String(now.getSeconds()).padStart(2, '0')}`;
timestampEl.innerHTML = `PM ${timeStr}<br>${dateStr}`;
}
setInterval(updateTimestamp, 1000);
updateTimestamp();
// Handle Image Upload
uploadInput.addEventListener('change', function(e) {
const file = e.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(event) {
videoPreview.style.backgroundImage = `url(${event.target.result})`;
videoPreview.innerHTML = ''; // Clear default icon
};
reader.readAsDataURL(file);
}
});
// Update degradation based on Generation
function applyDegradation(gen) {
currentGen = gen;
genDisplay.innerText = `Gen ${gen}`;
// Calculate CSS properties based on "Generation"
const blur = (gen - 1) * 0.8;
const contrast = 100 + (gen * 10);
const saturate = 100 + (gen * 15);
const brightness = 100 + (gen * 2);
const hueRotate = (gen - 1) * 2;
videoPreview.style.filter = `blur(${blur}px) contrast(${contrast}%) saturate(${saturate}%) brightness(${brightness}%) hue-rotate(${hueRotate}deg)`;
// Toggle tracking noise visibility/intensity
if (gen > 2) {
trackingEl.style.opacity = (gen - 2) * 0.2;
staticEl.style.opacity = (gen - 1) * 0.08;
} else {
trackingEl.style.opacity = 0.05;
staticEl.style.opacity = 0.02;
}
// Jitter effect for Gen 4
if (gen >= 4) {
videoPreview.classList.add('vhs-jitter');
} else {
videoPreview.classList.remove('vhs-jitter');
}
}
genSlider.addEventListener('input', function() {
applyDegradation(parseInt(this.value));
});
// Play/Stop Toggles
playBtn.addEventListener('click', function() {
isPlaying = !isPlaying;
if (isPlaying) {
$(this).html('<i class="fas fa-pause"></i> PAUSE').removeClass('btn-outline-success').addClass('btn-success');
$('.vhs-overlay-text.play-indicator').text('PLAY').show();
setTimeout(() => $('.vhs-overlay-text.play-indicator').fadeOut(), 2000);
staticEl.classList.remove('paused-static');
} else {
$(this).html('<i class="fas fa-play"></i> PLAY').removeClass('btn-success').addClass('btn-outline-success');
$('.vhs-overlay-text.play-indicator').text('STOP').show();
staticEl.classList.add('paused-static');
}
});
recBtn.addEventListener('click', function() {
$(this).toggleClass('recording');
if ($(this).hasClass('recording')) {
$('.vhs-overlay-text.rec-indicator').fadeIn();
} else {
$('.vhs-overlay-text.rec-indicator').fadeOut();
}
});
// Add some random noise pops
setInterval(() => {
if (currentGen > 2 && isPlaying) {
trackingEl.style.top = Math.random() * 80 + '%';
setTimeout(() => {
trackingEl.style.top = '100%';
}, 100);
}
}, 3000);
// Initial state
applyDegradation(1);
});
} catch (error) {
console.error("VHS App Error: ", error);
}
</script>
<style>
:root {
--vhs-bg: #121212;
--vhs-panel: #2a2a2a;
--vhs-accent: #ff00ff;
--vhs-cyan: #00ffff;
--vhs-yellow: #f0e68c;
--vhs-red: #ff4136;
}
@font-face {
font-family: 'VCR';
src: url('https://fonts.cdnfonts.com/css/vcr-osd-mono') format('woff2');
}
body {
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
color: #eee;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
}
#main-container {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 2rem;
}
h1 {
font-family: 'VCR', monospace;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 3px;
color: var(--vhs-cyan);
text-shadow: 2px 2px var(--vhs-red);
margin-bottom: 1.5rem;
text-align: center;
}
/* TV / Screen Area */
.tv-frame {
background: #111;
border: 15px solid #222;
border-radius: 40px;
box-shadow: 0 0 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,1);
width: 100%;
max-width: 600px;
position: relative;
overflow: hidden;
aspect-ratio: 4 / 3;
}
.screen-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
background: #000;
}
#preview-image {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80&w=1000');
transition: filter 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
color: #333;
font-size: 5rem;
}
/* VHS Effects Overlay */
.scanlines {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
background-size: 100% 4px, 3px 100%;
pointer-events: none;
z-index: 10;
}
#static-overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background-image: url('https://media.giphy.com/media/oEI9uWU0WMrQmNidL7/giphy.gif');
background-size: cover;
opacity: 0.05;
pointer-events: none;
mix-blend-mode: screen;
z-index: 11;
}
.paused-static {
opacity: 0.3 !important;
filter: grayscale(1);
}
#tracking-noise {
position: absolute;
width: 100%;
height: 10px;
background: rgba(255,255,255,0.3);
box-shadow: 0 0 15px white;
opacity: 0;
top: 100%;
transition: top 0.1s linear;
z-index: 12;
}
.vhs-overlay-text {
position: absolute;
font-family: 'VCR', 'Courier New', Courier, monospace;
color: var(--vhs-yellow);
text-shadow: 1px 1px 2px #000;
pointer-events: none;
z-index: 15;
}
#vhs-timestamp {
bottom: 20px;
left: 30px;
font-size: 1.2rem;
line-height: 1.2;
}
.play-indicator {
top: 20px;
left: 30px;
font-size: 1.5rem;
}
.rec-indicator {
top: 20px;
right: 30px;
color: var(--vhs-red);
display: none;
}
.rec-dot {
display: inline-block;
width: 12px;
height: 12px;
background: red;
border-radius: 50%;
margin-right: 5px;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* Controls Panel */
.controls-panel {
background: var(--vhs-panel);
border-radius: 15px;
padding: 1.5rem;
margin-top: 2rem;
width: 100%;
max-width: 600px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
border-top: 4px solid var(--vhs-accent);
}
.slider-label {
display: flex;
justify-content: space-between;
font-weight: bold;
margin-bottom: 0.5rem;
font-family: 'VCR', monospace;
}
.custom-range::-webkit-slider-thumb {
background: var(--vhs-cyan);
}
.vhs-btn {
font-family: 'VCR', monospace;
letter-spacing: 1px;
border-radius: 0;
padding: 10px 20px;
text-transform: uppercase;
transition: all 0.2s;
}
.recording {
background-color: var(--vhs-red) !important;
border-color: var(--vhs-red) !important;
color: white !important;
}
.upload-btn-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 100%;
}
.upload-btn-wrapper input[type=file] {
font-size: 100px;
position: absolute;
left: 0;
top: 0;
opacity: 0;
cursor: pointer;
}
/* Jitter effect */
@keyframes jitter {
0% { transform: translate(0,0); }
10% { transform: translate(-1px, 1px); }
20% { transform: translate(1px, -1px); }
30% { transform: translate(-1px, 0px); }
40% { transform: translate(1px, 1px); }
50% { transform: translate(-1px, -1px); }
60% { transform: translate(1px, 0); }
100% { transform: translate(0,0); }
}
.vhs-jitter {
animation: jitter 0.2s infinite;
}
/* Mobile adjustments */
@media (max-width: 576px) {
h1 { font-size: 1.5rem; }
.tv-frame { border-width: 8px; border-radius: 20px; }
.vhs-overlay-text { font-size: 0.8rem !important; }
#vhs-timestamp { bottom: 10px; left: 15px; }
.play-indicator { top: 10px; left: 15px; }
.rec-indicator { top: 10px; right: 15px; }
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1><i class="fas fa-tape"></i> VHS Generation 4</h1>
<div class="tv-frame">
<div class="screen-container">
<div id="preview-image">
<i class="fas fa-image text-secondary opacity-25"></i>
</div>
<div class="scanlines"></div>
<div id="static-overlay"></div>
<div id="tracking-noise"></div>
<div class="vhs-overlay-text play-indicator">PLAY</div>
<div class="vhs-overlay-text rec-indicator"><span class="rec-dot"></span>REC</div>
<div id="vhs-timestamp" class="vhs-overlay-text">
PM 12:00:00<br>JAN 01 1988
</div>
</div>
</div>
<div class="controls-panel">
<div class="row g-3">
<div class="col-12">
<div class="slider-label">
<span>DEGRADATION LEVEL</span>
<span id="gen-display" class="text-info">Gen 1</span>
</div>
<input type="range" class="form-range custom-range" id="gen-slider" min="1" max="10" value="1">
<small class="text-muted d-block mt-1">Simulate multiple tape copies (Generation Loss)</small>
</div>
<div class="col-6">
<button id="play-btn" class="btn btn-success vhs-btn w-100">
<i class="fas fa-pause"></i> PAUSE
</button>
</div>
<div class="col-6">
<button id="rec-btn" class="btn btn-outline-danger vhs-btn w-100">
<i class="fas fa-circle"></i> RECORD
</button>
</div>
<div class="col-12">
<div class="upload-btn-wrapper">
<button class="btn btn-outline-info vhs-btn w-100">
<i class="fas fa-file-upload"></i> LOAD NEW TAPE
</button>
<input type="file" id="upload-input" accept="image/*">
</div>
</div>
</div>
<div class="mt-4 border-top pt-3">
<p class="text-center text-muted small">
<i class="fas fa-info-circle"></i>
VHS Generation 4 simulates the loss of fidelity when analog media is copied repeatedly.
Crank it to 10 for total signal collapse.
</p>
</div>
</div>
<div class="mt-5 text-center text-muted" style="font-family: 'VCR', monospace; opacity: 0.5;">
© 1988 SYNTH-TECH INDUSTRIES
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!