:blobnerd: Building tools to fuel fun projects 

I finally managed to use all of the 12 cores on my Mac Pro :blobnerd:

I'm really proud of that little script. I'm building out a bunch of custom transcoded videos with burned-in subtitles for a fun movie night project idea. The projector is 480p and the player only accepts 16GB cards, so smaller files are better. :blobowo:

· · Web · 2 · 0 · 6

Explaining/Sharing the Code 

It takes a $SOURCE_VIDEO file and uses ffmpeg to get its resolution. If it’s more than 720p, it uses ffmpeg to re-encode it down to 480p, and in either case it burns in subtitles at the bottom of the screen, and saves the resulting file in a new place.

Here's the full code:

Note: Some modifications will be needed to use this on non-OS X based systems (to start, the sed arguments are different).

re: Explaining/Sharing the Code 

@mawr I bet it's actually a BSD vs. GNU thing – so maybe your script'd actually work flawlessly on a(nother) BSD!

re: Explaining/Sharing the Code 

@IceWolf It's possible it might! :blobsmilehappy:

I know Apple has their own builds of some things that differ from both though so I never assume. :blob_grinning_sweat:

:blobnerd: Building tools to fuel fun projects 

@mawr Just curious, do you use a tiling window manager (and if so, which one)?

:blobnerd: Building tools to fuel fun projects 

@0xDEFACE This is just OS X- I just lined things up nicely :blobuwu:

Sign in to participate in the conversation
✨Plush✨City 🏙

This is a space for soft friends and friends of soft friends to gather together!

In this city we're all about soft friends and compassion and caring about each other!

Code of Conduct in a Nutshell

Discrimination & Bigotry Won’t Be Tolerated.

Hatred will find no home here.

Treat this Space and Those Within it with Respect.

Listen actively to and honor the requests of others; always respond with compassion first.

Consent is Important in all contexts.

If you’re ever unsure, ask first. Use CWs where required.

Listen; Don’t Make Excuses.

If you’re accused of causing harm, either take some responsibility or ask moderators for help.

Don’t Break the Law Here.

The whole space may be liable if you do.

Use the Report Feature.

All reports go straight to our moderation team. We’re here to help!

For more detail, please
Review our
Full Code of Conduct