Loading video...

Video Failed to Load

Go Home

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

Zed A. Shaw, Writer's profile picture
Zed A. Shaw, Writer11 months ago

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.

Maharshi's profile picture
Maharshi11 months ago

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

Zed A. Shaw, Writer's profile picture
Zed A. Shaw, Writer11 months ago

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

shams's profile picture
shams11 months ago

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

Sundaram Kumar Jha's profile picture
Sundaram Kumar Jha11 months ago

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

Isaac, Amaterasu Ōmikami's profile picture
Isaac, Amaterasu Ōmikami11 months ago

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

Ditectrev's profile picture
Ditectrev11 months ago

Cool!😎

Pochi's profile picture
Pochi11 months ago

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?

Thanh Doan's profile picture
Thanh Doan11 months ago

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

Vineel's profile picture
Vineel11 months ago

can Rust make this any better?

Zed A. Shaw, Writer's profile picture
Zed A. Shaw, Writer11 months ago

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.

John Kayode-Abusi's profile picture
John Kayode-Abusi11 months ago

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

Morgan's profile picture
Morgan11 months ago

This is cool 😎

Dr.Moon's profile picture
Dr.Moon11 months ago

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

Zed A. Shaw, Writer's profile picture
Zed A. Shaw, Writer11 months ago

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.

daved's profile picture
daved11 months ago

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

Dr.Moon's profile picture
Dr.Moon11 months ago

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

pd's profile picture
pd11 months ago

Nice!!!

Related Videos