I think I may have figured out how to fraudently pass off AVIF images as video inside a WEBM container.ffmpeg -i 1.avif -c:v copy 1.webm & ffmpeg -i 2.avif -c:v copy 2.webmffmpeg -i 3.avif -c:v copy 3.webm & ffmpeg -i 4.avif -c:v copy 4.webm & ffmpeg -i 5.avif -c:v copy 5.webm(echo file '1.webm' & echo file '2.webm' & echo file '3.webm' & echo file '4.webm' & echo file '5.webm') > filelist.txtffmpeg -f concat -safe 0 -i filelist.txt -c copy 12345.webm5 pack of AVIF images (125 KB): https://files.catbox.moe/ei4qf6.zipthose 5 AVIF images converted to a fraudulent (but playable) WEBM (124 KB): https://files.catbox.moe/5r19yu.webmThere's 1 problem though, I have no idea how to reverse this process.
>>107669807Use case for fraudently passing off AVIF images as video inside a WEBM container?
this isn't a fraud or exploit or hack you dipshit it's a design consequence of avif as a filetype that the stream is bitexact identical to an av1 keyframe containing the same rgb data.>I have no idea how to reverse this process.ffmpeg -i 12345.webm -c copy %d.avif
>>107669839Amusingly when I try this it fails and gives me a single 124 KB animated AVIF literally named %d.avif but what I really want are my 5 separate AVIF images intact. FUCK, there has to be a way man...https://files.catbox.moe/xiimgv.avif
>>107669839And who are you, nigga, the authority on .avif file format?
>>107669850My bad %0d. It's been a long time since I've used ffmpeg, either I forgot or the API changed.
>>107669901No dice, now it's a single animated AVIF named %0d.avifThere's something wrong here, ffmpeg is holding my 5 AVIF children hostage...
Your autism made an invalid video file. Try exporting PNG images named 1.png 2.png 3.png to an AV1 webm first. Something likeffmpeg -framerate 1 %d.png -c:v libsvtav1 -crf 30 -g 1 -pix_fmt yuv420p autism.webmAnd thenffmpeg -i autism.webm -c copy %d.avif
>>107669839>the stream is bitexact identical to an av1 keyframeHoly shit, that was the clue. You're a god damned genius. I figured out the other part, apparently image2 expects PNG/JPG, a proper image format but if you switch it on before the output it'll export AV1 video data anyway lol.ffmpeg -skip_frame nokey -i in.webm -c copy -f image2 %d.avifhttps://files.catbox.moe/77pw8j.zip
Bad news, the colors don't match and CICP has now changed. However the good news is SSIM = 1 so the raw YUV data is in fact lossless here.ffmpeg ignored CICP...
>>107669807Some guy ong /g/ used to post optimized jpgs/pngs as "webps" that were 1 frame webms.