I want to calculate a coef of image pixelation to remove bad pictures from a bunch of files.
Some pictures results from bad compression and we can see a lot of pixelation on them like img a here: https://i.stack.imgur.com/EPOBI.jpg
I have heard of Fourier transform to calculate repetitive pattern, maybe it can be used in this case to detect pixel square ?
any kind of code making it possible is welcome.
ffmpeg -i filename.flv
saysStream #0.0: Video: flv, yuv420p, 720x576, 200 kb/s, 29.97 tbr, 1k tbn, 1k tbc
"200 kb/s" is what you want to know.Stream #0.0(und): Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 270 kb/s, PAR 12:11 DAR 4:3, 10 fps, 10 tbr, 1k tbn, 10 tbc
$\endgroup$