←
Emerge Tools2,666 posts
Emerge Tools avatar

Emerge Tools

@emergetools

Emerge helps teams like @Spotify, @Duolingo, @Bumble, @Square, @Tinder, @Dropbox, @OpenAI & @CashApp build better mobile apps 🚀 Now a part of @Sentry 🧠

◷ Joined January 2021▧ 1,031 Photos and videos
Emerge Tools avatar
Emerge Tools@emergetools·Sep 15

1. why do I need to install an app to set up a printer 2. why is that app 400+ MB

Post attachment
Josh Cohenzadeh avatar
⟳ Emerge Tools retweeted
Josh Cohenzadeh@jshchnz·Jul 29

At @Sentry’s AI offsite this week, @indragie & I decided to kick things off with a bang❗️ We’d seen a video where friends bought each other ridiculous shirts before a flight and had to wear whatever they were given... so naturally, we did the same for the offsite (ft. @zeeg) If you see us around SF today, make sure to say hi

Post attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

Other notes: - Flutter app - 207 MB of dynamic frameworks (worse for size compared to static) - lot of external dependencies

Post attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

We focused on the video file b/c it's so easy to optimize + having a 23 MB onboarding video, seen once by user, is ... not ideal But all the images are also easily optimized, saving 30+ MB. Optimizing the video & images + stripping binary symbols would save ~75 MB, a third of the total app size

Post attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

TL;DR on the video file, it's encoded with way higher bitrate than needed If you want to learn more about bitrate, check out this thread

It’s Friday, we do have a job, and we do have things to do But we’re going to tell you about bitrate today Why this @weedmaps video on the left is 14x bigger than the one on the right, despite looking the same 🌿

0:10
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

Here's the metadata comparison of the new file + a side-by-side of a random frame, which is virtually indistinguishable Note the lower bitrate (15.45 Mbps vs. 3.42 Mbps) and file size (23.2 MB vs. 5.1 MB)

Post attachmentPost attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

This code is re-encoding the video with a constant rate factor of 28 (`-crf 28`) Low CRF (0) = higher quality, larger file size High CRF (51) = lower quality, smaller file size In this case, CRF 28 gave us the same video with a lower bitrate & a visually similar output

Post attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

It's a 12 second video of some wings flying around What's egregious is that 1 line of ffmpeg reduces this by ~80% (and you could do even more)

0:12
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

Here's what's in flutter assets. Everything in red can be optimized... Notice the biggest node is `onboarding_present.mp4`, which is a 23.5 MB video, that presumably is only shown to a user once during onboarding

Post attachment
Emerge Tools avatar
Emerge Tools@emergetools·Jun 22

Alright, we bit It's the 83.5 MB flutter assets that grind our gears w/ an egregious example of bad practice

Post attachment

Every app now is insanely sized. Why is my Wingstop app half a GB. How does that even happen!! These ppl should be beaten in the streets until it gets under 50mb again