[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: download (2).jpg (7 KB, 225x225)
7 KB
7 KB JPG
How do I shrink mp4 file sizes down to 4chan's 4MB limit? I have some files that weigh 70mb, some 20mb. I have xmedia recode and tried various settings but can't get it down to the absurd size of 4mb. There are some websites online that can do that but they leave a watermark. I know there is a program ffmpeg, but I have no clue how to use it, doesn't help that search engines in this day and age show nothing but worthless garbage results
>>
There's a command line program called ffmpeg that you can use, but if it's too complicated, there's always video-converter.com
>>
VP9 webms can hold more quality at low file sizes. Want a ffmpeg command?
>>
>>1509493
Yes but I dont understand at all
>>
>>1509505
Do you have ffmpeg installed?
>>
>>1509512
Yes ffmpeg-7.1-essentials_build
I have mp4 files that I want to shrink down to 3.99MB basically
Dont care which output format so long as its webm/mp4 with audio
>>
>>1509514

ffmpeg -i INPUT -c:v libvpx-vp9 -b:v 0 -crf 30 -c:a libopus -b:a 64k -vf "scale=1280:-2" -speed 0 -lag-in-frames 25 -auto-alt-ref 1 -frame-parallel 0 -tile-columns 6 -quality best -sn -ac 2 -an -y -threads 4 -colorspace bt709 -pix_fmt yuv420p -f webm -pass 1 NUL

ffmpeg -i INPUT -c:v libvpx-vp9 -b:v 0 -crf 30 -c:a libopus -b:a 64k -vf "scale=1280:-2" -speed 0 -lag-in-frames 25 -auto-alt-ref 1 -frame-parallel 0 -tile-columns 6 -quality best -sn -ac 2 -y -threads 4 -colorspace bt709 -pix_fmt yuv420p -f webm -pass 2 OUTPUT.webm

This is a basic command I've used for years. The way you use it is you copy and paste the first one, erase the INPUT, drag the file you want to convert from your file manager to your terminal/cmd window and hit enter.
After it's done you hit up arrow to bring up the same command, then erase -an and replace -pass 1 NUL with -pass 2 output.webm
(you can put whatever filename you want for the output)

However this is not a one size fits all command, here are some ways you can modify it to suit your needs

To trim the video, you can add:
-ss hh:mm:ss -to hh:mm:ss
anywhere after input and before output, replace the start values and end values accordingly

-threads is how many threads ffmpeg will use, 4 is a low value that will reduce workload, slightly increase quality but greatly increase encode time, you can replace the value with 8 or higher

-vf "scale=1280:-2" will scale the video to 1280x720, you can change this value

-crf value can be increased for lower quality+lower filesize and decreased for higher quality+higher filesize

-b:a is the audio quality, I find 64k to be good quality but you can try lowering it for a tiny bit lower size

-speed can be increased for faster encode but it will impact quality negatively

-quality can be set to good for faster encode but it will impact quality negatively

Play around with it. I don't know of any way to predict the file size, you just have to test it with different values
>>
>>1509520
the output will appear in the directory you're in, by default this is the home folder
>>
>>1509520
also you can press q to cancel an encode
>>
>>1509489
https://github.com/Kagami/boram
Replace youtube-dl in boram/resources with yt-dlp (rename to youtube-dl) and replace ffmpeg with newest version in the same folder to restore youtube functionality.
>>
File: 1718187817679540.gif (1.06 MB, 1439x9977)
1.06 MB
1.06 MB GIF
>>
File: 1727407979132734.png (1.14 MB, 2400x3420)
1.14 MB
1.14 MB PNG
>>
>>1509493
4chams doesn't support VP9

VP8 only
>>
File: vp9+opus.webm (663 KB, 1920x1080)
663 KB
663 KB WEBM
>>1509573
>>
File: BONK (1).webm (281 KB, 386x360)
281 KB
281 KB WEBM
>>1509575
>>
>>1509575
>>1509577
Oh ok, so it supports VP9 now

It didn't used to
>>
>>1509575
>>1509577
>dont tell him about mp4
>>
>>1509634
D:
>>
>>1509489
>weigh
>>
>>1509673
what's this post supposed to mean?
>>
>>1509677
https://dictionary.cambridge.org/dictionary/english/weigh
>>
>>1509681
yes, and? the heaviness in bytes, very common thing to say
>>
>>1509578
>Oh ok, so it supports VP9 now
since 2022



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.