get this file as small as possiblehttps://files.catbox.moe/dmjqzw.mp4 34.4mb starting sizeyou can try to get it as low as possible while remaining bearable to watch including the audio or get it as tiny as possibleanon i stole this from already made it 4chanablepost ffmpeg tips and tricks/other files you want to let anons have a go at
why no h265 support 4chins?
>>6020526race to the bottom resolution wise i didnt want to drop it too fast lol
>>6020529audible kek when this popped up
>>6020535haha, best one. microdot
>>6020533Lol wtf
Smallest size, or meeting an arbitrary size, isn't a particularly hard problem. The more interesting question is how to make the best quality video given the size constraints of the board you're posting on.
>>6020518>>6020597For example compare these 2 webms, which are the same file size.https://files.catbox.moe/zz9njq.png
>>6020597>>6020610nice comparisonwhat is your workflow?
>>6020627Not really a workflow, just webm-for-4chan.https://github.com/chameleon-ai/webm-for-4chanI specified "--deadline best" and manually specified the resolution but otherwise the script figured everything else out.
boram presets. 6mb limit sometimes over crush the file so I use higher limit (6.8 here) for sweet extra bytes.
1 fps
>>6020694nice used it to get this one postabledo you have any tips for removing the black bars
>>6021325Yeah, "--auto_crop" does exactly that.There's also "--blackframe" which I used to skip the black frames at the start of >>6020597There are many goodies. Automatic subtitle burn-in, segment clipping, silence removal, etc.
>>6020518pretty proud of this one guys
>>6020518Russia is at the right for liberating Donetsk and Luhansk regions, the world doesn't need backwards neo-nazis breathing.
>>6020597This looks really good, I'll save this for myself if I ever need to share it over here in the future. Next time I see a /k/ thread it's posting time.T. Filmed and edited the og clip +paid NXP royalties for his song.
>>6020522Also massive kino alert
>>6023078Cheers, anon.Since this is a size challenge, I'll post the 4MB version.
>>6023078lol did you actually pay that chigga? how much
>>6023309100usd
>>6020694>webm-for-4chanI've been using the successor of Webm For Retards:https://github.com/argorar/WebMConverterDid you ever used this? If yes, which one would you prefer quality wise?
>>6023078>>6023290/k/ doesn't allow audio lol
>>6023549Who said anything about /k/ the board? /k/ threads occasionally pop up on the sound boards and /gif/'s size limit is 4.
>>6023504webm for lazys is a really good gui, especially if you want to crop or clip visually.I'm the author of webm-for-4chan so I'm biased, but I'll stack it up against any converter. They're both ffmpeg wrappers that allow you to manually specify settings so you can get similar if not identical results if you wanted to. But I've done a fair amount of research into choosing the right settings and enabling small optimizations.I think if you know nothing about making webms, webm-for-4chan picks good enough defaults (probably better than you can pick if you don't know what you're doing), and if you have experience you can tweak the settings to get better results.If you'd like to know more about the theory, I have a write-up:https://chameleon-ai.github.io/webm-guide/
>>6023549What>>6023552Said
>>6023598Did you write that? Wasnt long ago when I read the small bits I managed to understand in order to ffmpeg myself sub 6mb webms.
>>6023633Yeah I wrote it. I'm glad it was useful to you.
>>6023598awesome writeup, thanks chameleon
>>6023598is there a way to download entire playlists with the script? i keep getting SABR errors for playlists only
>>6024678That's a yt-dlp question. Youtube is in a constant arms race to break it and yt-dlp has updates almost on a daily basis. Make sure you've got the latest release and you have the JS solver scripts and runtime.https://github.com/yt-dlp/yt-dlp-wiki/blob/master/EJS.mdAlso note that webm-for-4chan is set up to encode single videos at a time, so it'll invoke yt-dlp to download the playlist but it'll balk after that and probably won't encode anything. I never considered multiple outputs so I'll have to see how feasible it is to adapt it for batch processing. Overall yt-dlp integration is still experimental, if you have issues you might have to download it outside the script for now.
>>6024720thanks for the reply. yt-dlp can download the playlist i have the files but im not really interested in converting 20+ files right now lol later i guess. good to know its not meant to do multiple
>>6024725I've noticed that yt-dlp sometimes acts weird when invoked by the script. I don't know why, it might be differences in environment variables or something. Kinda difficult to debug but if you or someone reading this has ideas on the problem I'm listening.Probably the way to go in your case is a bash/powershell script that invokes webm-for-4chan for each video downloaded to a directory, especially since chatgpt or whatever can whip something up quickly. Maybe use "-o" to put the output in a different directory from the input.
>>6023598great write-up anon, I've learned a lot of usefull stuff.To make mono tracks in boram you have to add "-ac 1" before "-c:a libopus"
Sometimes the thumbnail has the wrong proportions but when I open the webm it looks fine. Just curious why that happens/how to prevent it? Is chameleon still here/does anybody else know? Example>>29752951
>>6025404Sorry I don't really link across boards often trying again>>>29752951
>>6025406fucking hell>>>/gif/29752951
>>6025404Anamorphic encoding. The pixels aren't square and the thumbnail is a more straightforward representation of the real dimensions of the video. The video player knows to stretch the pixels out so that it looks correct. Usually this happens by accident when changing the resolution.https://handbrake.fr/docs/en/latest/technical/anamorphic-guide.html
bump