wow! this reminds me of those "Compress this image for me" threads. those were fun. thanks for putting in the work user!
Angel Parker
Only added the smoothing filter to the script from a thread a while back. There's just this 1 weird problem I can't seem to solve: when setting webm duration and frame rate to 1, the cpu usage goes up but the "pulsing" artifact is gone. Any help on this would be greatly appreciated.
Better image compression and the ability to post process them despite 4chans refusal to adopt webp. Even before the denoiser VP8's deblocking feature already smooths out images by default.
Jace Davis
Since vp9 optimized for 4k+ videos, it should compress high res images better too. Unfortunately anhiro will never support it.
Dylan Hall
lost a lot of detail in the leaves outside and the wall below the window
Andrew Moore
looks like blurry shit in comparison to
Sebastian Bennett
Is there a better denoiser than I know yify uses that or something similar BEFORE encoding their shitty releases to 400MB.
Christian Walker
Would adding sharpening filter help?
Luis Johnson
Im a retard, whats the point of this?
Colton Garcia
We pretend Jow Forums adopted webp which is about 50% more efficient than JPG and lossless PNG now.
Sebastian Martin
Don't mean to be a brainlet, but bash is telling me └╼ for %%f IN (*.png, *jpg) do ( bash: syntax error near unexpected token `IN'
Carson Perez
This should probably be limited to images that fit inside a 480p-720p frame, anything big like feels out of place.
Xavier Evans
It's for windows m8, you're gonna have to freetard yourself out of this one on your own.
Ryder Barnes
Is this disabling the chroma subsampling as well? It's quite darn useful with jpeg.
lol, now when safari adopts it macfaggots will call it "revolutionary".
Liam Ward
Ah, I could probably do something with find then
Juan Ward
Didn't even have to do that mkdir out for f in *.{png,jpg}; do ffmpeg -loop 1 -i "$f" -filter:v hqdn3d=8.0:8.0:10.0:10.0 -c:v libvpx -qmin 16 -qmax 16 -quality best -t 2 -r 1 "out/${f%.*}.webm"; done
David Edwards
I wish I was as smart as you user. Life as a dipshit is so hard, you wouldn't believe.
People transcoding images to webms with a blur filter
Ryder Lewis
That's nice and all, but should only really be used when you're dealing with pictures that you couldn't post otherwise. Most images on here already look like shit. Encoding them lossy again and on top of that with a denoise filter shouldn't be the to-go solution. Plus you can't do lossless compression like with WebP, since VP8 doesn't support it.
Also pictures like this can be effectively optimized without introducing additional losses.
You need to use two passes. libvpx's single pass bitrate control is basically broken.
NLMeans is a great denoiser, although you have to be careful not to smoothen the picture too much. It was designed for old VHS footage.
Is this a joke? The garbage you've posted is blurry is shit. It's just crap. The point of webp is that it can conserve detail and compress better. What you've shown compressed files, but loses a fuckton of detail.
Gavin Jones
notice how the webm have a smaller file size than the original image?
Save that as a .bat and drag and drop your image on it. You do lose quality and your image will get a bit blurry, but I think it's an acceptabl-ish amount. It's certainly not as retarded as OP's webms. It works best for real life photos. Line art and plain color images do not get compressed well at all.
how do i use the script? do is ,/ script.sh file nameE?
Henry King
high cpu, that's why OP uses -t 2 -r 1
Save it as a .BAT in a text editor, put it in the directory of images, and double click it. This assumes you have ffmpeg installed.
Elijah Fisher
>hqdn3d=8.0:8.0:10.0:10.0 Those are pretty high values (especially for the spacial denoising). No wonder the pictures look washed out. Wouldn't even recommend those settings for grainy Blurays. Also not sure how much of an effect the temporal denoising even has in this situation. I'm no expert, but doesn't it compare consecutive frames and average the movement? Does that even matter when every frame is the same?
The scripts you quoted are batch scripts for Windows. OP's version gets executed by double clicking it. It'll loop through all JPGs and PNGs in the same directory. The one from the other user gets executed by dragging and dropping a file onto it. For Linux use this one . Put it in a shell script and either run bash script.sh or make it executable and run it via ./script.sh . This one will also loop through all JPGs and PNGs in the same directory.
temporal denoiser is supposed to help reduce the "pulsing" of the image since 2 frames are generated with -t 2 -r 2 to reduce cpu usage
Noah Taylor
>high cpu Does not matter. They're fucking reaction images. As I said, converting images to webm is stupid.
James Bell
The pulsing would be unlikely to occur if you would you constant quality. For example let's compare ffmpeg -loop 1 -i in.jpg -t 2 -r 1 -c:v libvpx -crf 16 -b:v 0 out.webm (that's how you use constant quality with libvpx) vs. ffmpeg -loop 1 -i in.jpg -t 2 -r 1 -c:v libvpx -qmin 16 -qmax 16 out.webm vs. ffmpeg -loop 1 -i in.jpg -t 2 -r 1 -c:v libvpx -qmin 16 -qmax 16 -vf hqdn3d=8:8:10:10 out.webm
After each webm was made I extracted the 2 frames via ffmpeg -i out.webm -vf fps=1 "%02d.png" and compared them via ImageMagick compare -compose src 01.png 02.png diff.png Red marks areas where 02.png differs from 01.png.
Also for anyone who wants to test it as well, here's the source picture. Originally it was a JPG, but in order to prevent further generational loss I'll post it as PNG.
And since I was testing it here some additional infos. >constrained quality delivers the same results as constant quality with a high enough bitrate specified (in this case 10M) >constrained quality with 2 passes differs even less >constant quality with 2 passes is still better than OP's approach but much worse than when using a single pass
Leo Bennett
bless you user, though now pic related happens with
mkdir out for f in *.{png,jpg}; do ffmpeg -loop 1 -i "$f" -filter:v hqdn3d=8.0:8.0:10.0:10.0 -c:v libvpx -qmin 16 -qmax 16 -quality best -t 2 -r 1 "out/${f%.*}.webm"; done
>People pretending to have a feature that will never be implemented because hiro and the mods don't give a single fuck about this dead grave of a site except for the traffic and adbux it brings them. I don't know whether I should feel sad or amazed at the delusion of some people here.
The colors are all wrong though. Real WebP with roughly the same file size (12,248 bytes compared to the WebM's 12,174 bytes) also looks shit, but at least it got the colours right. my.mixtape.moe/lnxgpl.webp >Can you go any lower? This is the lowest I managed to go with cwebp. 11,868 bytes. my.mixtape.moe/qstlpm.webp
Brandon Morris
I don't think anybody here except that retarded OP is arguing that webm is better than webp. I'm pretty sure we're all fucking around with ffmpeg.
Zachary Davis
There are people out there that think WebP is just VP8 in picture form. Better fight that misconception from the start. Plus it gives me an excuse to fuck around with cwebp. I normally don't use WebP so it's interesting to see what it can and can't do and how all the settings work.
David Scott
Hey Jow Forumsoys I just thought of something massively retarded. How practical would it be to cram like 20-40 mango pages in a webm video under 3MB?
You can certainly try. WebM is a lossy format, though, and if you want to read lossy-compressed to shit manga anywhere, you might as well use any of those hundreds of shitty manga sharing sites.
Jack James
Like this? You have to play around a bit with the quality parameters, but otherwise totally doable. Although does have a point.
That is a function of Unix not termux. The file itself wasn't given execute privileges. Hence the suggestion to chmod +x. Go look up octal privileges online. Eli computer guy on YouTube has a no bullshit guide that gets to the point without millennial Bing bing wahoo noise, just a whiteboard and explanations.
Julian Collins
>youtube video to explain why you need admin pass to run terminal commands >year of linux desktop soon lol
mkdir out for f in *.gif ; do ffmpeg -i "$f" -filter:v hqdn3d=8.0:8.0:10.0:10.0 -c:v libvpx -b:v 0 -qmin 20 -qmax -crf 30 50 -quality best "out/${f%.*}.webm"; done