[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] [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] [Edit][Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
4chan
/wsg/ - Worksafe GIF


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: sleep.webm (5.76 MB, 1280x720)
5.76 MB
5.76 MB WEBM
Some legend made this perfect webm script for 4chan. Way quicker than any shitty GUI:

https://github.com/chameleon-ai/webm-for-4chan

`python webm_for_4chan.py input.mp4 --board wsg`

Quick modes:
- `--board wsg` 6MB with sound (default)
- `--board gif` 4MB with sound
- `--board other` / `--no_audio` 4MB silent

Music mode, auto-crop, subs, yt-dlp, clipping, image+audio, etc.
You can easily set up aliases/functions (or a simple .bat for Windows drag & drop).
>>
>no .exe
No thanks
>>
File: 1766377494315215.webm (5.84 MB, 1280x720)
5.84 MB
5.84 MB WEBM
>>
>>
File: 1749473041080822.webm (5.87 MB, 576x1024)
5.87 MB
5.87 MB WEBM
>>
>>6139343 (OP)
Author here. I'm glad you like my script but not sure why it warrants its own thread. While I'm here, I'll post a direct compare. This was made with handbrake.
>>
And this is webm-for-4chan.
>>
>>6139343 (OP)
Could anyone do this for me? https://www.youtube.com/watch?v=0iDaO1-Ro4w [Embed]
>>
You can teach a horse to drink, but... you can't take its penis in your asshole and live to see the light of another day. HALLELUJAH
>>
>>6139384
>>6139386
kek, the second one doesn’t play at all on my cheap android, Via browser. thanks?
>>
>>6140154
Works on my old android that hasn't been updated in years.
>>
File: 1765607379066233.webm (5.89 MB, 1280x720)
5.89 MB
5.89 MB WEBM
>>
>>6139386
>>6140154
>>6140194

This does not play on my Android phone bro (android 15, stock) .. consider fixing it, otherwise many other android users won't see it.

most webms play flawlessly on my phone, from time to time i get a video that does not play (like 1 in 30 )
>>
>>6139981
There you go bro. CL ffmpeg. Tell me if it plays on your end.
>>
>>6139384
>>6139386
>itsthesamepicture.jpg
Seriously, other than some slight changes in color saturation I'm not seeing any difference here and it makes no appreciable difference in file size or artifact prevalence.
>>
File: 1769461051396032.webm (5.83 MB, 610x480)
5.83 MB
5.83 MB WEBM
>>
File: 1775070825855000.webm (5.89 MB, 640x480)
5.89 MB
5.89 MB WEBM
>>
>>6140983
>literally mid-crash
>still trying to look at your phone
we're doomed as a species.
>>
>>6139386
>yuv420p10le
This is probably why people can't play it on android. Missing hardware support on some mobile CPUs.
>>
>>6140771
There's less banding. But fair enough, the quality difference of a short clip like that isn't very noticeable.
https://litter.catbox.moe/8ywtpq.png
Here's a different example with more motion and scene transitions.
https://litter.catbox.moe/r4vitc.png

>>6140740
I can't replicate the issue but if this can be pinned down to a specific ffmpeg option I can address it. I do test playback on my android phone though so I don't know what's up. I'm willing to fix compatibility issues if they can be specifically identified, it's one of the reasons I don't use vp9 10-bit because of iphone users.
>>
File: 4k80_v1.0.qsv-w4c.webm (5.95 MB, 736x316)
5.95 MB
5.95 MB WEBM
>>6141028
Oh that's interesting. I'm not explicitly setting that and that's what it was in the source video. Maybe explicitly setting the colorspace will work.
>>
If yuv420p10le is the issue, I'm willing to bet this works and the problem lies with the source. I'll have to look into the best way to address it. Youtube video sources shouldn't have this issue as I think they're almost always yuv420p
>>
>>6139351
What do you anons think he was playing?
>>
>>6139343 (OP)
shutter encoder
>>
shutter encoder
>>
>>6141030
If it makes ittoddlers seethe then its worth it to encode in 10bit
>>
File: f35hover.webm (4.52 MB, 960x520)
4.52 MB
4.52 MB WEBM
shutter encoder
>>
shutter encoder
>>
File: primal rage.webm (5.21 MB, 1280x544)
5.21 MB
5.21 MB WEBM
>>6141093
>shutter encoder
>>
>>6141028
If that was the problem, it should be fixed now. I think forcing yuv420p is probably the right move so it's now the default behavior and can be overridden by people who know what they're doing. I didn't realize ffmpeg was just inheriting the 10-bit settings from the input.
>>
File: _2_12.webm (5.89 MB, 720x1280)
5.89 MB
5.89 MB WEBM
>>
File: 1764902602696030.webm (5.89 MB, 720x958)
5.89 MB
5.89 MB WEBM
>>
Bump for science
>>
I just got this set up. If anything I'll be using it mainly for music, as it greatly simplifies the process.
>>
>>6141117
LMAO the wojack
>>
>>6139343 (OP)
Just use ffmpeg bitch nigga
>>
>>6141249
But I already use ffmpeg. The hard part is making it easy for anyone to use ffmpeg.
I made a python program for windows users on /gif/ that automatically converts videos to webm, doesn't have any advanced features right now but it's braindead easy to use, just choose a file and it converts.
https://mega.nz/file/YQtwmQIC#czRFwuL1Xj2dUyzV8MDvHDvcrsSLwxzzS-WVEawJCLg
>>
I posted >>6140154
Apart from >>6139386, everything else posted so far plays on my cheap newish android (15) with via browser.
>>
File: 1754816627930467.webm (5.87 MB, 640x360)
5.87 MB
5.87 MB WEBM
>>
File: 1762449106795862.webm (5.86 MB, 1280x720)
5.86 MB
5.86 MB WEBM
>>
>>
>>6141402
are you using the website like a dumb nigger?
>>
File: 1758437889893978.webm (5.85 MB, 360x360)
5.85 MB
5.85 MB WEBM
>>
>>6141282
I only use vidcoder for mp4s which convert in seconds, time to move on mate
>>
>>6141282
It's the same idea for webm-for-4chan. It'll spit out webms without any configuration, advanced features are opt-in.
>>
>>6141567
Cool, you're also using ffmpeg then. Looks like it supports hardware encoding on Intel CPUs. vp9_qsv would be way faster than libvpx-vp9 but not everyone can use it.
>>
>>6141715
vp9_vaapi is also an option but it's not that well supported.
https://trac.ffmpeg.org/wiki/Hardware/VAAPI
>>
>>6141492
>why did you stop?
why didn't you slow down?
>>
>>6139343 (OP)
I like how that bliqqa checked his dicksack afterwards. Gotta verify it's all good, gnomesayan?
>>6139349
DEAD BEEF
>>
>>6141479
yes
>muh apps
whatever faggot
>>
>>6141410
>coherent biden
when the fuck was this? early 2000s?
>>
>>6141410
Its so weird to hear a clear-minded Biden.
>>
>>6141763
>motorcyclist
>giving a shit about road safety
all they care about is the adrenaline rush and their upvotes on r/coolspeedemon and r/atheism.
>>
>>6139343 (OP)
>>6139384
>https://github.com/chameleon-ai/webm-for-4chan
does it have a GUI? if not it's shit and I have no interest
>>
I've tried to use the script to dl and encode with yt-dlp but it fails on x.com links.
grok said something about x.com URLs fail the is_url check


example:
python webm_for_4chan.py https://x.com/jvepng/status/2040769861253783700
Unable to parse argument: 'https://x.com/jvepng/status/2040769861253783700'
Please command-line flags to specify complex arguments
>>
>>6142331
I've updated the regex and it should work now.
But for that specific use-case, the video is under 6MB before converting, not much point in re-encoding it.
>>
>>6141763
>>6142220
As much as I hate streetbikers, a dmfat old lady in an f250 is as much if not mor>>6142331
e of a menace on the road.
>>
all this effort to use some stupid script. just use shutter encoder.
>>
>>6142558
> all this effort to use some stupid ffmpeg wrapper. just use ffmpeg wrapper
>>
>>6142564
The script has a lot of cool functionality but you gotta understand that most people don't want to mess around with installing python/ffmpeg and adding the binaries to PATH. It's hard enough for the average user to navigate to the Github releases page.
That's why I made this: >>6141282
It's nothing special, just a vibe coded FFmpeg GUI, but it removes all the barriers to entry that would make anons use some. shitty online encoder instead.
I used Pyinstaller to bundle ffmpeg and ffprobe so you don't need to install anything, just run the .exe
There are no settings, you just choose your file and it gets converted.
There are already tons of programs that let you tweak every little detail to your heart's content, but I just wanted to make an easy way for people to submit quality webms here. No more pixelated crap.
Just turn your videos into webms. 2pass VP9 + Opus audio, automatic bitrate calculation and resolution scaling.

I made it for /gif/ so it's set to 4MB, but if there's interest I'll add more features. If you're paranoid, it has the source code bundled so you can see what it's doing.
>>
File: demo.webm (2.95 MB, 1376x576)
2.95 MB
2.95 MB WEBM
>>6142759
Here's a demo video. Nothing fancy but it gets the job done.
>>
>>6141028
this is a feature, fuck phonefags
>>
>>6142812
You buried the lede initially, when I clicked on the mega link and saw that it was too big to just be a python script, my initial reaction was "I ain't clickin that shit nigga"
Anyway, I'm not really a Windows developer or GUI developer so some stuff is out of scope for me. I think people intimidated by the command-line should use things like your program or other GUIs like boram, handbrake, etc. Heck, I'm even willing to refactor webm-for-4chan to make it conducive to someone integrating it into a GUI. But for my project I have no plans for bundling dependencies or adopting a GUI front-end.

Cheers, anon. Your project looks good and accessible.
>>
>>6139343 (OP)
why would you need this?
why do people keep downloading software that uses other software for them?
>>
>>6143064
Because its about speed and efficiency
>>
>>6143120
the fastest most efficiency way to use a piece of software is to use it.
adding another program to run it for you is not faster or more efficient, it is slower and adds complexity.
>>
>>6143128
Because personally I got tired of punching the size calculations into a calculator and having all the settings in a lookup table. If you do it over and over again, automate it.
>>
>>6143262
nah you're slow desu
>>
>>6139384
Nice to see u around
T. you optimized my books trailer
>>
>>6143128
>valuing the computer's time more than your own
Just use shell scripts, they're no different from running commands in the terminal
>>
>>6139348
Good, hopefully we keep gatekeeping lazy plebs like you of the software
>>
>>6139351
>Hotel staff cleaning that shit up.
>Even recycling
I would not make staff clean that shit up if I was management. I would hire some specialist cleaning company.
>>
I still use webm for retards

works like a charm
>>
>>6144300
Isn't that the one that's so old it only does vp8?
>>
>>6141080
Bloons tower defense
>>
>>6141080
League



[Advertise on 4chan]

Delete Post: [File Only] Style:
[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] [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] [Edit][Settings] [Search] [Mobile] [Home]
[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.