Loading video...
Video Failed to Load
Tonight, I'm hacking on Go Code on my Twitch. I'm making a tool that does mass video crunching to mp4, vp9, and av1 with ffmpeg, then figuring out how to make them better/faster if possible.
87,790 views • 11 months ago •via X (Twitter)
18 Comments

I finished the vidcrunch tool during the morning stream and actually used it to re-encode all my videos with vp9. You can get the Go code at: Really simple, mostly because Go is really good at this kind of thing.

yooo, you are the person behind learn python the hard way right??, i started out learning through your book

I am, I have a lot of courses actually. Here's my draft Go course:

could pls consider writing an encoder and decoder for videos native to the lang? i guess there are several attempts but still way far behind the rust way

hey followed you to follow the build , just please tweet about it when you start 🙏

I really want to get back to learning things the hard way till it works, and not be tempted to seed help from an LLM when it’s been 8hrs of debugging. 😂

Cool!😎

Love the dedication to automating a personal workflow. That's the hacker spirit. We're big believers in that at Pochi: giving devs the power to build their own autonomous workflows. What's been the most challenging part of the ffmpeg automation so far?

my poor cpu is already feeling the burn just thinking about that many encodes

can Rust make this any better?

I don't know. I'm just running ffmpeg, and Go is really good at simple stuff like running processes and reading configs. I imagine Rust could too but haven't tried it.

@grok what tools can used to make similar videos like this?

This is cool 😎

Ok, but let's behonest append behaviour is quite obscure, I get that it encourages reablibility and safety, but...

Append behavior? You mean: x = append(x, 1, 2, 3) ? It is kind of odd, but I also can't see a way to do it better. Same with Go's error handling. It's not great, but I can't really see how to improve it.

@th31nitiate Sum types with pattern matching. Sum types with pattern matching would make error handling far better in Go because we could define and communicate potential error conditions at library boundaries rather than in library documentations.

@lzsthw Yeah, and I guess the all mighty immutability... is also factor in the way append works

Nice!!!



