A generation-loss look: encoding to MPEG-4 Part 2 at ffmpeg's low default bitrate (200 kb/s) bakes in blocky early-2000s compression artifacts. The second pass re-encodes that damaged video to H.264 so it can be shared, keeping the artifacts intact.
Step 1 -c:v mpeg4 -vtag xvid MPEG-4 Part 2, tagged with the XVID fourcc so players and editors treat it as an Xvid AVI (no -b:v, so the 200 kb/s default does the damage) Step 2 -r 30 output at 30 fps -c:a aac -b:a 128k AAC audio, 128 kb/s -c:v libx264 -crf 18 -preset veryfast high-quality H.264, so no new damage is added -pix_fmt yuv420p 4:2:0 for player compatibility
The command
ffmpeg -i input.mp4 \
-c:v mpeg4 -vtag xvid \
crushed.avi
ffmpeg -i crushed.avi \
-r 30 \
-c:a aac -b:a 128k \
-c:v libx264 -crf 18 -preset veryfast -pix_fmt yuv420p \
output.mp4 When to use it
Use this when you want deliberate generation loss: blocky, smeared early-2000s compression baked into a clip that still plays anywhere as H.264. It is a look, not a conversion. For a clean web file, use web-mp4-baseline-keep-size.sh or remux-faststart.sh instead. The header explains each flag.
The script runs two passes and leaves the damaged intermediate, crushed.avi, on disk. Delete it, or keep it to compare against the final file.
Variations:
- Change
-r 30to your source's frame rate so frames aren't dropped or duplicated. - Raise
-crf 18for a smaller final file. The cost is new H.264 damage layered over the Xvid look. - Run
output.mp4back through as the input to compound the loss.
If the result looks wrong, check the resolution and motion first. The 200 kb/s budget is fixed, so the strength of the damage depends on them. A large, busy clip falls apart badly, and a small, static one may barely change. Stuttery motion usually means -r 30 doesn't match the source.
Notes
- Source
- ffmpeg-utilities/videogrep.sh (the emot-avi / emot-crush steps)
- Changed
- fixed the "0c:a" typo in step 2 (→ -c:a); added -pix_fmt yuv420p