andreasjansson/h.264-glitch ๐ข๐ผ๏ธโ โ ๐ผ๏ธ
About
Video corruption as a service
Example Output
Output
Performance Metrics
94.09s
Prediction Time
94.57s
Total Time
All Input Parameters
{
"video": "https://replicate.delivery/pbxt/NWmxg5oOZCPp258juaD72JtXzgoqRVwtjz8Yqul6SN2TdNNM/Sample.mp4",
"glitch_intensity": 0.32,
"freeze_intro_frames": 0,
"disable_frame_rate_effects": true
}
Input Parameters
- seed
- Random seed (None=random)
- video (required)
- Input MP4 video (will be truncated to 2 minutes)
- glitch_intensity
- 0.0โ1.0
- freeze_intro_frames
- Freeze the first IDR for N frames
- disable_frame_rate_effects
- Disable frame duplication and shuffling that cause stop-start effects
Output Schema
Output
Example Execution Logs
Using seed 3685047418
๐ฌ Initializing datamosh pipeline...
๐ Input video: cog-input-745628818.mp4 (16373KB)
โ๏ธ Truncated to 2 minutes: 16385KB
๐ฌ === ATTEMPT 1/10 ===
๐ Glitch intensity: 0.32
๐ Freeze intro frames: 0
๐จ Color chaos: always enabled
๐ซ Frame rate effects: DISABLED (smooth playback)
๐๏ธ Building datamoshed video...
๐น Probing video properties...
๐ฌ Detected FPS: 30.0
๐ง Normalizing GOP structure (Baseline/CAVLC)...
โ
Baseline/CAVLC normalization successful
โ
Normalized video: 28731KB
๐ฌ Extracting H.264 elementary stream...
โ
AnnexB H.264 extracted with AUD insertion
๐งฌ Performing enhanced H.264 color datamoshing...
๐ซ Frame rate effects disabled - smooth temporal flow maintained
๐๏ธ Enhanced datamosh: drop_idr=0.000, mv_corrupt=0.427, ref_swap=0.345
๐ฅ Color intensity: bytes=29, slice_prob=0.286, sat_bomb_every=21, wobble=ON
๐๏ธ UV-targeted params: byte_budget=29, corrupt_prob=0.30, wobble=on, sat_bomb_every=21
โ
Color datamoshed stream: 29701KB
๐ฅ Creating final datamoshed MP4...
โ
Direct remux: 29713KB
๐ฌ Pure datamoshed video created: 29713KB
โ
Build complete: datamoshed_video_attempt_0.mp4
๐งช Testing video playability...
โ
Video passed playability test!
๐ Creating browser-compatible version with audio...
โ ๏ธ Duration mismatch (90.0s vs 72.8s) - video only
Version Details
- Version ID
fde2fc9eff14584e1617c6f75a4e75596980dedefbbad16f3ff623ca209cb083- Version Created
- August 13, 2025