[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How do you get good at video file compression? I'm starting

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 39
Thread images: 6

File: IMG_3701.jpg (86KB, 640x640px) Image search: [Google]
IMG_3701.jpg
86KB, 640x640px
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.
>>
>>58977795
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
>>
File: IMG_3675.jpg (20KB, 261x238px) Image search: [Google]
IMG_3675.jpg
20KB, 261x238px
>>58977915
I don't know if I'm tech savvy enough to compile ffmpeg for mac
>>
>>58977975
Install it through homebrew.
>>
>>58977975
install gentoo
>>
>>58977915
*kb/seconds
>>
File: 1456109644275.jpg (103KB, 960x960px) Image search: [Google]
1456109644275.jpg
103KB, 960x960px
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.
>>
>>58978044
filtered
>>
webm's are huge files so youre fucked
>>
>>58977795
use the webm for bakas program or whatever its called, much easier, you can just type in 4mb
>>
>>58978044
Ok but how do I incorporate this into iMovie MP4 files?
>>
>>58978022
They just unmasked ffmpeg-3 btw
>>
>>58977795
who the qt? do you have a .zip?
>>
File: IMG_3587.jpg (52KB, 389x361px) Image search: [Google]
IMG_3587.jpg
52KB, 389x361px
>>58978116
>windows only
>>
>>58978096
:$ du -h Videos/gumtrick.mpg Videos/1487199330125.webm
13M Videos/gumtrick.mpg
3.9M Videos/1487199330125.webm

>>>/wsg/1546230

If >>58977915 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)
>>
>>58978089
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.

>>58978199
>>58978234
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.
>>
>>58978332
There has to be a way
>>
>>58977975
brew ffmpeg 

wow. so hard.

or just fucking grab a binary.
>>
>>58978523
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"' {} \;

>>
>>58978572
w-what is this
>>
>>58977795
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.
>>
>>58978332
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.
>>
>>58978750
Why are still replying to me mr reddit posing as another anon?

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.
>>
>>58978628
>>58978679
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
>>
>>58978873
>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.
>>
>>58978873
Why would you run ffmpeg on Win7? If you're spinning up a whole VM wouldn't Linux make more sense?
>>
>>58979066
Oh, maybe you need to add libvpx to ffmpeg in homebrew, but that isn't hard either.
>>
>>58979080
>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.
>>
>>58979212
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.
>>
File: 1466156898492.webm (3MB, 1528x900px) Image search: [Google]
1466156898492.webm
3MB, 1528x900px
>>
>>58977795
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.
>>
>>58977795
>wsg
>not /gif/
>>
>>58979721
that too
>>
What the fuck are you doing on the technology board
Get the fuck out of the /g/NU board back to /v/eddit
>>
>>58979867
Have some pity anon-kun, he's being forced to be a mactoddler.
>>
>>58978089
Filter me cuck
>>
>>58977795
https://wiki.installgentoo.com/index.php/WebM

https://gist.github.com/Zehkul/25ea7ae77b30af959be0
Thread posts: 39
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.