How can I convert mp4 to webms 3mb or under while keeping quality?

How can I convert mp4 to webms 3mb or under while keeping quality?

Attached: 1517795432305.gif (256x256, 458K)

Other urls found in this thread:

nixx.is-fantabulo.us/WebM for Retards/latest.zip
twitter.com/SFWRedditImages

keep resolution under 720p, lower bitrate, cut to only a few seconds long

What should I use to do that? Also I see people posting 30 second webms under 3mb that don't look like complete crap.

install gentoo

I can't even figure out how to make a webm I couldn't even install gentoo

freemp4towebmconverteronline.io

Do 24,000/duration of video in seconds, this will give you your target bitrate.

ie: 24,000/60 sec = 400 kbps, 24,000/300 sec = 133 kbps

Now feed this into a 2-pass encoding for max quality. Resize the video or apply smoothing filters if the quality is still unacceptable.

If that's too much or takes too long for you just set the b:v to 0, throw in a CRF value (4-63) and maybe tweak the qmin/qmax until you get a desired file size.

You can also cut the frame rate if its not important
here
nixx.is-fantabulo.us/WebM for Retards/latest.zip

Here is a simple windows bat script for the latter mentioned. Just needs ffmpeg installed. This will encode any mp4 file in the same folder the script is placed in.

for %%f IN (*.mp4) do (
ffmpeg -i "%%~nf.mkv" -an -c:v libvpx -crf 16 -b:v 0 -quality good "%%~nf.webm"
)

Good choice

Retard choice

Yeah man downloading some random forked scrapped project from an unknown website is totally the superior choice.

>inb4 SJW
I know why it was scrapped and that it would have been good for OP but it doesn't make it magically safe to host on random websites.

webm.py [requires ffmpeg] from github.
and it's 4mb on Jow Forums now btw.
thank me later.

I have ffmpeg but I have no idea how to use this

Open notepad
paste
save as mp4-to-webm.bat
save as "all files"
save in a folder where there is the mp4 or multiple mp4 files that you want to convert

double click
let it do it's thing
webm will appear in the same folder
if webm too big, edit the script by changing the CRF value and try again

I put this in and it only lowered the video by 1 mb

What does any of that bullshit you just spouted matter?

>waah, my program was made by someone with a vagina
>waah, that program is hosted on a website where some of the staff have surgically inverted penises

Stop being a faggot.

Fuck. I got an error: max size is 4 mb message yesterday and took it at it's word.

Attached: out.webm (853x480, 2.97M)

webm.py -i Videos/Youtube/1966_GT40-ml3HtFk6V6I.mkv -vp8 -an -vf scale=-1:480 -ss 5:10 -t 2:00 -l 4.0 out.webm
> -t 2:00 (time)
>-l 3.0 (filesize)

This is where you have to dick around with the values until you find an acceptable balance in quality and file size. Max CRF value is 63 and looks the worst. Adding a -qmin value lower than the CRF value tells the encoder to lower the file size further at the same CRF value. Don't recommend fucking with -qmax.

I personally use -crf 30 -qmin 20 for most of my webms.

How the fuck did you do this

Most likely a 2 pass encoding.

How do I do that
I had to change it to -crf 50 -qmin 33 for a 17mb file to be under 3mb is that normal? It does look really good compared to the other converters I was trying to use.

install ffmpeg &
webm.py (from github)
default is a 2 pass encoding, the script does it for you.
-vp8 because vp9 is default
>accepts most ffmpeg parameters
I posted the command here ( the one where I thought 4mb was good)

The primary purpose of 2 pass encoding is file size control.
But in the case of vp8 webms you get a slight quality improvement, mostly less artifacts in static backgrounds, according to the webm wiki.

>What should I use to do that?
ffmpeg obviously.

I'm gonna stick with this since it's working great, thanks for the help.

Fairly normal, doing all this manually is harder to get the same quality/file size as a 2-pass which I haven't been able to figure out desu.

Anyway another param you can chuck in there is one of the post processing filters:
-vf hqdn3d=8.0:8.0:8.0:8.0

Maybe try the -quality best param too but some anons said that's borked or something. Anyway good luck user, hope you post some good OG stuff in gif/wsg some day, it needs it.

Just a heads up but the latest/newer version of this seems to lack the -quality argument and adding it manually doesn't seem to work either, resulting in lower quality encodes. Also the older version is slower since it crashes with anything higher than one thread enabled. The newer version fixes this (ffmpeg issue probably) but since the -quality argument is non-functional it will always produce a significantly lower quality encode.

How would you tell ffmpeg to put more bits in for a specific time segment of the video? Like they do/did in movie mastering for DVDs.
Basically you decide that bits for a particular scene is unimportant so you thrash it and decide that you'd much rather want them somewhere else.