How do you get good at video file compression...

How do you get good at video file compression? I'm starting to make webms for /wsg/ but the 4mb is so hard to get around.

Other urls found in this thread:

wiki.installgentoo.com/index.php/WebM
gist.github.com/Zehkul/25ea7ae77b30af959be0
twitter.com/NSFWRedditImage

ffmpeg:
use 2 pass encoding for gooder file size control.
ffprobe file.mp4
>alias ffprobe='ffprobe -hide_banner'
du -k file .mp4
then bytes / seconds = bitrate_kb/s

-pass 1 -passlogfile /tmp/ffmpegpasslog -f rawvideo -y /dev/null

-pass 2 -passlogfile /tmp/ffmpegpasslog ouput.webm

I don't know if I'm tech savvy enough to compile ffmpeg for mac

Install it through homebrew.

install gentoo

*kb/seconds

Don't listen to the tard above, just use the parameters -crf * -qmin * -b:v 0 /
where "*" is your value. A CRF of 40 and QMIN of 16 seems to give me the best compression on most things for me.

>protip: make dam sure b:v is set to 0 else CRF won't fucking work

2 pass encoding is primarily for file size control, but it also give better quality for webms - less artifacts in static backgrounds and such - according to ffmpeg documentation.

filtered

webm's are huge files so youre fucked

use the webm for bakas program or whatever its called, much easier, you can just type in 4mb

Ok but how do I incorporate this into iMovie MP4 files?

They just unmasked ffmpeg-3 btw

who the qt? do you have a .zip?

>windows only

:$ du -h Videos/gumtrick.mpg Videos/1487199330125.webm
13M Videos/gumtrick.mpg
3.9M Videos/1487199330125.webm

If formula suggests a stupid low bitrate then scale too.
-vf scale=-1:420 would scale down to 420p while preserving aspect ratio.
-vf scale=720:-1 werks too. (width:height)

Do you really need to announce this? Do you also announce to everyone through a megaphone everytime you're about to take a shit?

I don't give a fuck if I trigger you mr r3ddit, just filter me out of your safe space and stfu.

You don't, there's a reason why mac computers hold 5% market share.

Best you can do is run windows 7 inside a VM on that fruit computer and install ffmpeg.

There has to be a way

brew ffmpeg
wow. so hard.

or just fucking grab a binary.

Nigga I just told you. Download virtual box, DAZ a 7, and finally install ffmpeg.

Maybe next time don't buy a computer from a fashion accessory company.

find ./ -regex '.*mp4\|.*mkv\|.*wmv\|.*gif\|.*avi' -exec bash -c 'ffmpeg -loglevel panic -i "$0" -n -an -sn -c:v libvpx -f webm -b:v 500K -bufsize 1000k -vf scale=-1:360 -preset ultrafast -crf 28 -quality good -auto-alt-ref 0 -qmin 10 -qmax 42 -movflags +faststart -fs 1.9M "${0%%.mp4}.webm"' {} \;

w-what is this

I'm not sure if you're all about muh picture quality but quartering the resolution (half in each dimension) will save a shitload of bytes, and human eyes won't notice it too much in motion, unless they zoom it in to a giant full screen. Lower resolution 60fps can still look good.

You're tripfagging and he's filtered your posts; he'll never read that you silly twat.

ffmpeg works well, stop being a baby. If you want to git gud you'll have to read a bunch about formats and compression and bit rate and stuff.

Why are still replying to me mr reddit posing as another user?

anyway ffmpeg BARELY works on homOS X, I would highly recommend people avoid the pain and suffering and install a windows 7 VM for any programs that do more than browse facebook and amazon's latest homosexual fashion.

Not talking out of my ass, I used to have a macbook from 2015 and it was one of the worst experiences of my life.

I'm sorry dude, I have no idea what any of this means. I just want to create some oc for /wsg/ because the board is currently stale as fuck. I only have a mac because it was given to me, it's not like a purposefully tried to get an inferior product.

Gonna do some research I guess

>anyway ffmpeg BARELY works on homOS X

You're clearly doing something wrong then.

1. Get homebrew if you don't already have it
2. Install ffmpeg via homebrew
3. ???
4. PROFIT

Not that hard.

Why would you run ffmpeg on Win7? If you're spinning up a whole VM wouldn't Linux make more sense?

Oh, maybe you need to add libvpx to ffmpeg in homebrew, but that isn't hard either.

>Why would you run ffmpeg on Win7?
Because it's usable on wanblows 7.

>If you're spinning up a whole VM wouldn't Linux make more sense?
OP said he wanted to properly encode video not rice his desktop to get internet points in desktop threads.

It's usable on any common operating system if you know how to use a computer properly.

Using a VM is just a unnecessary loss of performance, especially if you run a full-fledged desktop operating system in there.

...

1. You can change the number of colors in your video to a lower number and take advantage of dithering.

2. You can change the levels in your video to clip black and white levels to crush or blow out certain details. This will lower the file size.

3. You can reduce your frame rate depending on the subject matter. Slow moving objects can go as low as 15 fps. If it's a gif conversion go even lower.

4. Crop your video's aspect ratio to contain only the information necessary.

5. Use double pass encoding.

6. Use a deshaker to stabilize the image. Stabilizing the image allows better compression across multiple frames.

7. Remove noise from your image before conversion.

>wsg
>not /gif/

that too

What the fuck are you doing on the technology board
Get the fuck out of the Sup ForumsNU board back to Sup Forumseddit

Have some pity user-kun, he's being forced to be a mactoddler.

Filter me cuck

wiki.installgentoo.com/index.php/WebM

gist.github.com/Zehkul/25ea7ae77b30af959be0