Databending with Bitmap Images
Автор: Kyoobur9000
Загружено: 2025-09-17
Просмотров: 595
Описание:
See it on Vimeo: https : // vimeo.com / 1119583000
An experimental effect I made to try and recreate the glitchy video effect I first used with Poorstretch, which you can see here: • Abusing Paulstretch (Possible Effect Name:... I would say I got way more than I bargained for!
I accomplished this by converting the individual frames into uncompressed bitmap images and editing the raw binary date by performing text substitutions. Here's what I did on Linux:
1. Extract the frames at bitmap images with bgr24 color format after performing color inversion.
ffmpeg -i ~/Videos/Logos/Wind\ Dancer\ Films\ \'97\ \[2iCSw0dNAp0\].mp4 -vf 'format=yuvj444p,libplacebo=crop_w=.96*iw:h=.54*iw,libplacebo=w=1280:h=720:force_original_aspect_ratio=disable,minterpolate=fps=60:mi_mode=mci:mc_mode=aobmc:me_mode=bidir:vsbmc=1,libplacebo=w=3840:h=2160,hqdn3d=luma_spatial=10,format=rgb24,negate' -pix_fmt bgr24 frame%03d.bmp
2. For every frame, encode with base64 method, perform some substitutions on the encoded text, then decode back to corrupted frames.
parallel --bar -j12 "base64 -w0 {} | sed 's/[a-f]/9/g' | sed 's/[6-7]/w/g' | sed 's/[L-P]/0/g' | base64 -d 〉corrupt-{}" ::: frame???.bmp
This means I replaced all characters a, b, c, d and e with 9; all of 6 and 7 with w; and all of L, M, N, O and P with 0.
3. Negate again, convert back to a video and add my logo and the audio track. I applied Paulstretch in Audacity as I always have.
ffmpeg -vaapi_device /dev/dri/renderD128 -framerate 60 -i corrupt-frame%03d.bmp -i corner.mov -i audio.flac -lavfi '[0]negate[nl];[nl][1:v]overlay,format=nv12,hwupload[lg]' -map '[lg]' -c:v av1_vaapi -q:v 10 -map 2 -c:a libopus -b:a 128k output.webm
Even though it didn't turn out like I expected, it's still a really cool effect that I think could have uses beyond Poorstretch, maybe as a G-Major video effect. Furthermore, there are more types of corruptions possible. But it's kinda finicky; attempting to corrupt even more tends to make the image unreadable, when critical information in the image header is changed. This is as far as I could go without having that problem, but feel free to experiment with it.
UNIVERSAL DISCLAIMER IN POEM FORM:
All credit goes to their owners
whoever they may be
and all the Kyoonix/Kyoobur9000 logos
are the only things from me!
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: