Low file size or something
>>5682490how it feels to take 3000mg of ibuprofin with a straight shot of tequila
>>5682490how the fuck do you get the quality this high with 81 kb
Blessed thread
>>5682488How do I do this with ffmpeg?
>>5682589Well you did 2kb and it's just a pixel. You wasted 2kb on basically a waste. I hope you are proud of yourself
>>5682568by 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
>>5682568>>5682790You can shave off a few more bytes using vp9 and opus with some aggressive tuning
>>5682589yooo this goes hard
best i could do under 100kbav1 https://files.catbox.moe/7cgy0w.webm
>>5682688No, that's four pixels flashing between two colors.Making a sub-1kB file is easy with just a single pixel.
>>5683105I 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.
>>5682592https://duckduckgo.com/?q=ffmpeg+how+to+resize
>>5683105oh this is nice
Let's do Bad Apple
>>5683461For 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.
This is a great thread. This is what it's all about
>>5683461wow, nice
>>5686022>>5686023>>5686025yes i want more of these
>>5686025wtf is this real
>>5683461impressive, very nice. lets see pauls allens compressed amv
>>5686041
>>5682487>>5686723That doesn't look too bad
What audio format does 4chan even support?
>>5687480libopuslibvorbis
Going to try something really stupid. Not a small filesize, but compress an entire cartoon episode.
>>5687507hope you figured out how to break the 6m40s duration barrier
>>56874403MB is a lot anon
>>5687507>>5687512Fine, I'll do it myself.
>>5689136At 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
>>5689303That'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
And 480p 120k video 13k audio
>>5682487that webm crashes the tab onBrowser: MS Edge 129.0.2792.52 (Official build) (64-bit)OS: Windows 10 Version 21H2 (Build 19044.4894)with or without 4chan x enabled+activehttps://is2.4chan.org/wsg/1726586971256326.webm
>>5689469>>5689624kek impressive
>>5689648I think you already have the answer to your problem...
>>5689624Very nice.
>>5687595underrated
>>5689624This is usable, how did you do this?
>>5689624What the fuck how is this possible. How do I do this
>>5689624this is impossible
>>5689624holy shit, how did you bypass the 400s limit on 4chan? I've looked into your file and tested so much now
>>5689624>drops this>says nothing>leaves
>>5690405>>5690470look up hxd in the archivealso, you will need to set keyint_min (and g?) to a number higher than the number of frames your video has
>>5690914I've been reverse engineering this file with hxd without any success so far, so archives will be next step, and thanks for additional clues
>>56909664chan 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
>>5691023Thanks, I didn't realize that. I was thinking the trick had to be elsewhere as the header looked fine
>>5690914Humbly requesting 1 hour loop of fukkireta
>>5691029
>>5688328TIGHT
>>5689136I still can't like this show. Thanks for condensing it anon.
>>5688328geez anon, you think i'm made of bandwidth?
>>5691068i did one but 4chan doesn't like it, need to go to sleep so can't look into ithttps://files.catbox.moe/tkdygw.webm
>>5691122nuh uh
>>5691235orly?
>>5689624Literally how lmao
>>5682487can anyone compress the entire amv hell 8.5?
>>5692485amvhell is still going?
>>5690914ohh so that's why it was only working for single frame webms
>>5691120No problemMost of the fanbase grew up watching random flash animations on newgrounds so it's pretty niche humor
>>5686022I don't know why but i lold at this
>>5689624we can watch anime on 4chan now
>>5692485a big problem with this is that the audio becomes really significantthen 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 gothe 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.webmif anyone is able to actually post it here, let us know what you did
>>5692659just do what he said >>5690914
>>5692709that is what i did
>>5689624!--(?.?)---!
>>5691068>>5691177Zeroing 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
>>5693355based. Maybe 20 minutes?
>>5693355>>5692659How long can you go without audio?
>>5682566
>>56934142 hours, and there's still a little more I could have squeezed in. It took 40 minutes to encode though.
>>5693409The muxing overhead went down a lot, so I had even more room for bitrate
>>5693553thank you wizard (can you use the seamless loop version)
>>5682975impressive details compared to >>5682490
>>5683046this wins the srutututu contest
>>5693823
>>5693929crisper sound on the other one
>>5693949
>>5683461pretty easy to do a decent quality version
>>5694229>sound out of sync
>>5693355Big kekThanks anon
>>5693413fixed sound
>>5694276yea 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
>>5694763hell yeah
>>5693551you are a legend man
>>5694763my fucking sides lol
>>5690399Exquisite
A movie in a < 4mb gif.The audio I have for this is ~80mb, though it could be compressed more.
>>5696478
>>5693957How to do non square pixels?
>>5699502just specify the resolution you want and the aspect you want, for example;>-vf scale=240:400 -aspect 16:9
>>5699495video is corrupted and it plays a bit anyway
>>5682568Use a 2 pass algorithm in addition to other suggestions:https://files.catbox.moe/05hwny.png
>>5699757it's not, but some video players may not like how i made that
>>5689466You know there's an extension for Vegas to make things faster than the default CRTL+Drag right? vegasaur crack
>>5689624Bless you.
>>5700210Sony 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%20videoAt 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.5xThis is 210k VBR and 50k ABR, I don't think it's worth the tradeoff.
>>5700842>the lower duration allows for a higher bitratedoesn'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 bitratethe 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
>>5700842also, 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 thiswebm 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
>>5699785Why post a screenshot instead of a pastebin?
>>5699785>>5702116https://pastebin.com/YphF7D0UHere'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"}
>>5690914you're right, -keyint_min is required, not just -g, at least with libvpxlooking at the docs, -g sets the maximum keyframe distance, and keyint_min sets the minimum
>>5704829what is this?
>>5682487this one doesn't load at all for me
>>5705455the filename is the youtube id
>>5705537>quarter megabyte>256kb
>>5705668yes 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
>>5682487
>>5682487I 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
>>5705670this could be optimized a lot
>>5705753>303,307,311 bc command not foundbruh
>>5706387>>5705753disregard, I suck balls.
>>5705753This 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")```
>>5706596thanks 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 goalso, 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).
>>5689136this show is ass