[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
/wsg/ - Worksafe GIF

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • Supported file types are: GIF, WEBM

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: papa_tutu_wawa_4.webm (14 KB, 126x70)
14 KB
14 KB WEBM
Low file size or something
>>
>>
File: papa_tutu_wawa.webm (81 KB, 176x100)
81 KB
81 KB WEBM
>>
>>5682490
how it feels to take 3000mg of ibuprofin with a straight shot of tequila
>>
>>5682490
how the fuck do you get the quality this high with 81 kb
>>
File: bithc.webm (2 KB, 2x2)
2 KB
2 KB WEBM
Blessed thread
>>
>>5682488
How do I do this with ffmpeg?
>>
>>5682589
Well you did 2kb and it's just a pixel. You wasted 2kb on basically a waste. I hope you are proud of yourself
>>
>>5682568
by exporting the mp4 as webm vp8 with max compression and setting the resolution to 176x100. try it in handbreak, works best with cartoons because the static sections compress easily
>>
File: papa_tutu_wawa_53k.webm (49 KB, 176x100)
49 KB
49 KB WEBM
>>5682568
>>5682790
You can shave off a few more bytes using vp9 and opus with some aggressive tuning
>>
>>5682589
yooo this goes hard
>>
>>
File: t1.webm (98 KB, 128x72)
98 KB
98 KB WEBM
best i could do under 100kb
av1 https://files.catbox.moe/7cgy0w.webm
>>
File: 1726642968540.webm (604 B, 1x1)
604 B
604 B WEBM
>>5682688
No, that's four pixels flashing between two colors.
Making a sub-1kB file is easy with just a single pixel.
>>
>>5683105
I got it under 600 bytes but 4chan wouldn't let me upload it cause the file parsing broke and it thought the duration was over 400s, so I had to use 2 frames instead of 1.
But that's still far from the lowest you can go.
>>
>>5682592
https://duckduckgo.com/?q=ffmpeg+how+to+resize
>>
File: output.webm (459 KB, 1x1)
459 KB
459 KB WEBM
>>5683105
oh this is nice
>>
File: 1726667621375.gif (45 B, 4x4)
45 B
45 B GIF
>>
File: BadApple-3.webm (633 KB, 128x96)
633 KB
633 KB WEBM
Let's do Bad Apple
>>
>>5683461
For a bit over 600 KB this is very impressive considering its 3:39 long with sound.
Bad Apple is very compression friendly thanks to genius visuals and the use of iconic and easily recognizable designs.
>>
File: 1712850332215396.webm (399 KB, 100x100)
399 KB
399 KB WEBM
>>
File: gemlet.webm (181 KB, 50x50)
181 KB
181 KB WEBM
>>
File: 1726910572804.webm (9 KB, 200x200)
9 KB
9 KB WEBM
>>
This is a great thread. This is what it's all about
>>
>>5683461
wow, nice
>>
File: 1662590505049804.webm (214 KB, 480x480)
214 KB
214 KB WEBM
>>
File: 1662633362373907.webm (314 KB, 286x274)
314 KB
314 KB WEBM
>>
File: ufo_cat.webm (514 KB, 396x360)
514 KB
514 KB WEBM
>>
>>5686022
>>5686023
>>5686025
yes i want more of these
>>
>>5686025
wtf is this real
>>
>>5683461
impressive, very nice. lets see pauls allens compressed amv
>>
File: 1727026697724.webm (68 KB, 178x100)
68 KB
68 KB WEBM
>>5686041
>>
File: 1903000.gif (836 KB, 220x124)
836 KB
836 KB GIF
>>5682487
>>5686723
That doesn't look too bad
>>
File: funky.webm (3.15 MB, 252x142)
3.15 MB
3.15 MB WEBM
>>
What audio format does 4chan even support?
>>
>>5687480
libopus
libvorbis
>>
Going to try something really stupid. Not a small filesize, but compress an entire cartoon episode.
>>
>>5687507
hope you figured out how to break the 6m40s duration barrier
>>
File: 1636320767622.webm (438 KB, 480x480)
438 KB
438 KB WEBM
>>
File: ghettopatrol1.webm (463 KB, 134x90)
463 KB
463 KB WEBM
>>5687440
3MB is a lot anon
>>
File: 1727273233407.webm (5.92 MB, 854x480)
5.92 MB
5.92 MB WEBM
>>5687507
>>5687512
Fine, I'll do it myself.
>>
>>5689136
At what speed is it? Seems slower than 2x. If you would set the video speed to exactly 2x then we could play it in browser at 0.5x speed
>>
File: 1727303287320.webm (6 MB, 640x360)
6 MB
6 MB WEBM
>>5689303
That's a great idea. I'll also double the framerate so it looks smooth at half speed.
I think having a lower resolution with a higher audio bitrate is better in that case, since it sounds too distorted under 32kbps.
Here's 360p 100k video 33k audio
>>
File: 1727303388656.webm (5.99 MB, 854x480)
5.99 MB
5.99 MB WEBM
And 480p 120k video 13k audio
>>
File: out1.webm (5.94 MB, 384x216)
5.94 MB
5.94 MB WEBM
>>
>>5682487
that webm crashes the tab on
Browser: MS Edge 129.0.2792.52 (Official build) (64-bit)
OS: Windows 10 Version 21H2 (Build 19044.4894)

with or without 4chan x enabled+active
https://is2.4chan.org/wsg/1726586971256326.webm
>>
>>5689469
>>5689624
kek impressive
>>
>>5689648
I think you already have the answer to your problem...
>>
>>5689624
Very nice.
>>
>>5687595
underrated
>>
>>5689624
This is usable, how did you do this?
>>
File: donald_mini.webm (299 KB, 32x18)
299 KB
299 KB WEBM
>>
File: 1724121907861362.webm (5.4 MB, 180x180)
5.4 MB
5.4 MB WEBM
>>
>>5689624
What the fuck how is this possible. How do I do this
>>
File: osha_mini.webm (138 KB, 32x18)
138 KB
138 KB WEBM
>>
>>5689624
this is impossible
>>
>>5689624
holy shit, how did you bypass the 400s limit on 4chan?
I've looked into your file and tested so much now
>>
File: micropie.webm (53 KB, 45x80)
53 KB
53 KB WEBM
>>
>>5689624
>drops this
>says nothing
>leaves
>>
File: out3.webm (5.99 MB, 1280x720)
5.99 MB
5.99 MB WEBM
>>5690405
>>5690470
look up hxd in the archive
also, you will need to set keyint_min (and g?) to a number higher than the number of frames your video has
>>
>>5690914
I've been reverse engineering this file with hxd without any success so far, so archives will be next step, and thanks for additional clues
>>
>>5690966
4chan seems to fix the header, so you will not find anything useful looking at them. you shouldn't even be able to reupload them without repatching their duration
>>
>>5691023
Thanks, I didn't realize that. I was thinking the trick had to be elsewhere as the header looked fine
>>
>>5690914
Humbly requesting 1 hour loop of fukkireta
>>
File: output_file - hxd.webm (5.48 MB, 640x360)
5.48 MB
5.48 MB WEBM
>>5691029
>>
>>
>>5688328
TIGHT
>>
>>5689136
I still can't like this show. Thanks for condensing it anon.
>>
File: out2.webm (432 KB, 240x480)
432 KB
432 KB WEBM
>>5688328
geez anon, you think i'm made of bandwidth?
>>
>>5691068
i did one but 4chan doesn't like it, need to go to sleep so can't look into it
https://files.catbox.moe/tkdygw.webm
>>
File: ghettopatrol3.webm (226 KB, 240x32)
226 KB
226 KB WEBM
>>5691122
nuh uh
>>
File: out2.webm (132 KB, 114x64)
132 KB
132 KB WEBM
>>5691235
orly?
>>
>>5689624
Literally how lmao
>>
>>5682487
can anyone compress the entire amv hell 8.5?
>>
>>5692485
amvhell is still going?
>>
File: 1727581891586.webm (12 KB, 426x240)
12 KB
12 KB WEBM
>>5690914
ohh so that's why it was only working for single frame webms
>>
File: 1727582184652.webm (6 MB, 384x216)
6 MB
6 MB WEBM
>>5691120
No problem
Most of the fanbase grew up watching random flash animations on newgrounds so it's pretty niche humor
>>
>>5686022
I don't know why but i lold at this
>>
>>5689624
we can watch anime on 4chan now
>>
>>5692485
a big problem with this is that the audio becomes really significant
then there's just the time consuming process of encoding 1:25hr multiple times to tweak things, the speed doesn't go up linearly the lower quality you go

the usual hex edit doesn't seem to work for me for super long videos, but i got it under 6M anyway;
https://files.catbox.moe/9h926l.webm
if anyone is able to actually post it here, let us know what you did
>>
File: 1727591367116.webm (5.14 MB, 160x90)
5.14 MB
5.14 MB WEBM
>>5692659
just do what he said >>5690914
>>
>>5692709
that is what i did
>>
>>5689624
!--(?.?)---!
>>
File: elden ring leak.webm (2.15 MB, 400x224)
2.15 MB
2.15 MB WEBM
>>
File: fukkireta.webm (5.83 MB, 160x120)
5.83 MB
5.83 MB WEBM
>>5691068
>>5691177
Zeroing out the byte after \x44\x89 didn't work so I re-encoded with keyint_min and g set to the frame count + 1 before clobbering it
>>
>>5693355
based. Maybe 20 minutes?
>>
File: Cia(1)(1).webm (4.37 MB, 360x240)
4.37 MB
4.37 MB WEBM
>>
>>5693355
>>5692659
How long can you go without audio?
>>
File: 1694019588447392.gif (2.21 MB, 640x640)
2.21 MB
2.21 MB GIF
>>5682566
>>
>>5693414
2 hours, and there's still a little more I could have squeezed in. It took 40 minutes to encode though.
>>
File: fukkireta-20m-v2.webm (5.96 MB, 160x120)
5.96 MB
5.96 MB WEBM
>>5693409
The muxing overhead went down a lot, so I had even more room for bitrate
>>
>>5693553
thank you wizard (can you use the seamless loop version)
>>
>>5682975
impressive details compared to >>5682490
>>
>>5683046
this wins the srutututu contest
>>
File: out2.webm (100 KB, 568x320)
100 KB
100 KB WEBM
>>5693823
>>
>>5693929
crisper sound on the other one
>>
File: out2.webm (100 KB, 240x400)
100 KB
100 KB WEBM
>>5693949
>>
File: out2.webm (6 MB, 960x720)
6 MB
6 MB WEBM
>>5683461
pretty easy to do a decent quality version
>>
>>5694229
>sound out of sync
>>
>>5693355
Big kek
Thanks anon
>>
File: cia.webm (485 KB, 360x240)
485 KB
485 KB WEBM
>>5693413
fixed sound
>>
>>5694276
yea sorry about that, i had a quick look for something that wasn't 360p like the original, and i found that video, but it was an english dub, so i used the audio from the original. i checked the lengths were the same so assumed it was compatible
>>
Requesting Kung Pow
>>
>>5694763
hell yeah
>>
>>5693551
you are a legend man
>>
>>5694763
my fucking sides lol
>>
>>5690399
Exquisite
>>
File: skibidi.webm (37 KB, 135x240)
37 KB
37 KB WEBM
>>
>>
File: kung_pow.gif (3.69 MB, 30x15)
3.69 MB
3.69 MB GIF
A movie in a < 4mb gif.
The audio I have for this is ~80mb, though it could be compressed more.
>>
File: ds.webm (230 KB, 360x360)
230 KB
230 KB WEBM
>>
File: 50cent.webm (438 KB, 384x288)
438 KB
438 KB WEBM
>>
File: Aye.webm (285 KB, 384x288)
285 KB
285 KB WEBM
>>
File: disaster.webm (575 KB, 240x180)
575 KB
575 KB WEBM
>>
File: squash him.webm (100 KB, 1920x1080)
100 KB
100 KB WEBM
>>5696478
>>
>>
>>5693957
How to do non square pixels?
>>
>>5699502
just specify the resolution you want and the aspect you want, for example;
>-vf scale=240:400 -aspect 16:9
>>
>>5699495
video is corrupted and it plays a bit anyway
>>
>>5682568
Use a 2 pass algorithm in addition to other suggestions:
https://files.catbox.moe/05hwny.png
>>
>>5699757
it's not, but some video players may not like how i made that
>>
>>5689466
You know there's an extension for Vegas to make things faster than the default CRTL+Drag right?
vegasaur crack
>>
>>5689624
Bless you.
>>
>>5700210
Sony Vegas? I just use FFmpeg to copy the raw bitstream and mux with a new framerate. It's quicker and you don't lose quality by re-encoding.
http://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video

At 4X speed the lower duration allows for a higher bitrate, which appears to improve the quality slightly.
But encoding at 96FPS introduces a lot of artifacts around high-motion areas like the characters' mouths. Maybe aiming for 12FPS playback rate instead of the original 24 would improve this.
Not to mention the audio sounds significantly worse since you're losing 75% of the data by playing at 0.25x speed instead of 50% at 0.5x

This is 210k VBR and 50k ABR, I don't think it's worth the tradeoff.
>>
>>5700842
>the lower duration allows for a higher bitrate
doesn't really work like that when the content is being sped up, because it's the same content as before. the only difference is that the time between frames is smaller, you're still encoding the same number of frames, this means for example making it twice as fast will require twice the bitrate to have the same quality, as instead of say, having 30 source frames a second, you have 60 source frames a second, twice the content, twice the bitrate
the only way you'd save on bitrate doing this is if you didn't adjust your GOP length and it was based on time, so like if you had it at 1 keyframe per 2 seconds, now it's covering twice as much of the source content, reducing the number of keyframes, which saves a bit of space
>>
File: out3.webm (6 MB, 720x576)
6 MB
6 MB WEBM
>>5700842
also, you can cut down the effective framerate a bit with animated stuff by making it variable framerate. that is, deduplicate the frames and only encode the ones that are actually different, you can use the mpdecimate filter for this
webm related averages ~16fps just from using mpdecimate. note that this messes up two-pass bitrate calculations for me, as in it seems like it works out the average bitrate needed for the original framerate and not the decimated one, so like here with 30>16 the file ends up about half the size it should be, so keep that in mind
>>
>>
>>5699785
Why post a screenshot instead of a pastebin?
>>
>>5699785
>>5702116

https://pastebin.com/YphF7D0U

Here's what I've put in the bash alias file, executed with:
`ff2pass "full path+file name+extension" <size in meg>`

function ff2pass () {
cd <location of script file>;
./ff2passwm.sh "$1" "$2"
}
>>
File: out3.webm (5.99 MB, 640x480)
5.99 MB
5.99 MB WEBM
>>5690914
you're right, -keyint_min is required, not just -g, at least with libvpx
looking at the docs, -g sets the maximum keyframe distance, and keyint_min sets the minimum
>>
File: lsAlFKXAMjM.webm (5.99 MB, 480x480)
5.99 MB
5.99 MB WEBM
>>
>>5704829
what is this?
>>
>>5682487
this one doesn't load at all for me
>>
>>5705455
the filename is the youtube id
>>
>>
>>5705537
>quarter megabyte
>256kb
>>
>>5705668
yes 256k is a quarter of 1024k, unless you're talking about binary prefixes, in which case i figured /wsg/ wouldn't know or care about that
>>
File: shrek.gif (5.28 MB, 20x20)
5.28 MB
5.28 MB GIF
>>5682487
>>
>>5682487
I wrote a shitty bash script which automates the conversion into 4chan compatible webms. It is tuned to prioritise quality, but could also be used to compress them as much as possible. (I'm also working on a perl implementation which would be cross-compatible, for those who aren't on *nix)
https://codeberg.org/based64/4webm
>>
>>5705670
this could be optimized a lot
>>
>>5705753
>303,307,311 bc command not found

bruh
>>
>>5706387
>>5705753
disregard, I suck balls.
>>
>>5705753
This is what I use to mess with the duration bytes in case you want to add it in somewhere. You will also have to calculate the total number of frames+1 from the framerate/duration and pass that with -g and -keyint_min during the ffmpeg calls. The following is at the very end:
```
OFFSET=$(LANG=C grep -obUaP -m 1 "\x44\x89" "$OUTPUT" | cut -d':' -f1)
printf "\x00" | dd of="$OUTPUT" bs=1 seek="$((OFFSET+4))" count=1 conv=notrunc
```
I also convert timestamps to seconds a bit differently so that I can be lazy and write something like 1:12 instead of 00:01:12
```
readarray -t PARTS < <(tac <<< "${START//:/$'\n'}")
TIME_SECONDS=$(bc -l<<<"${PARTS[0]:=0} + ${PARTS[1]:=0}*60 + ${PARTS[2]:=0}*3600")
```
>>
>>5706596
thanks anon, I'll implement your suggestions into the script.
>>5692659
>then there's just the time consuming process of encoding 1:25hr multiple times to tweak things, the speed doesn't go up linearly the lower quality you go
also, I'm working on a branch that offers SVT-VP9 as an encoder, which is significantly faster than libvpx-vp9 (in exchange for no two-pass encoding and probably no way to make "special" webms).
>>
>>5689136
this show is ass



[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.