avatarAldric Chen

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3902

Abstract

only, some have video only, and some have both video and audio. And also they’re available in multiple formats. For video there is AVC (which is apparently H.254), VP09, and AV01. And for audio there’s Mp4a and Opus. I don’t know what Opus is but apparently it is noticeably better than Mp4a. So if you’ve ever gone to a YouTube download page and seen a million download options that’s why. Although I hide the redundant ones and just display the one with the lowest file size at that quality level (usually VP09 or AV01).</p><p id="b96b">It’s actually pretty cool to see AV01 as I talked about it <a href="https://readmedium.com/why-apple-adding-av1-support-is-a-big-deal-faa46a356f3c">here</a>. And it does compress videos a little better than VP09 and a lot better than AVC.</p><p id="d170">Also apparently YouTube does something called DRC, dynamic range compression (Not Democratic Republic of Congo). It makes the quiet sections louder and the loud sections quieter. Apparently people really hate it and I guess there must be a way to disable it because I have not been able to find a music video with DRC enabled. I’ve never heard anyone talk about this before though.</p><p id="e027">So now that we have the formats we can just download them. Each format has a download link oddly enough. I did not expect that. Just keep in mind that the YouTube download links expire in 6 hours.</p><p id="3fc9">Of course here we run into a problem. When I saw this I was like, “Great, let’s just download an audio-only track if we only want audio or a video+audio track if we want video.”</p> <figure id="dd49"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FMvioOPqhOm6b4BI0FQ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ffallontonight-jimmy-fallon-tonight-show-MvioOPqhOm6b4BI0FQ&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa203NTd1dnVhNGpveHByMmxsOGRzZGxsejhsZzh2Zjk5N20xMTYwbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FMvioOPqhOm6b4BI0FQ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" allowfullscreen="" frameborder="0" height="435" width="435"> </div> </div> </figure></iframe></div></div></figure><p id="9eda">If you do that you’re restricted to at most 720p 30fps. Or so I’m told. I haven’t been able to find a file with both video and audio over 360p. And some videos don’t have any video+audio tracks at all. So that means we’re going to have to download a video file and an audio file (preferably without DRC) and merge them together.</p><p id="e01b">And this is perhaps the first really big problem I ran into. If I was doing this locally it would not be that big of a problem because there’s a nice command line package called <code>FFmpeg</code> that will just do it for you. Unfortunately it’s a bit more complicated when you’re working with Node.js because you have to do a bunch of file manipulation stuff.</p><p id="12d8">I ended up deciding to just download the files from Google’s servers separately and then merge them locally. Apparently Flutter has a package called <code>FFmpeg-kit</code> that will do this. Unfortunately it only works on Android, iOS, and MacOS.</p><p id="fdbf">Although Android will not be getting YouTube downloading because Google is really strict about that.</p> <figure id="eaa2"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//twitter.com/EzraDuown/status/1776352074449530961/&amp;image=" a

Options

llowfullscreen="" frameborder="0" height="281" width="500"> </div> </div> </figure></iframe></div></div></figure><p id="7c7c">In fact the app mentioned above, NewPipe, is not available on the Google Play store. So that means that the only platform able to benefit from YouTube downloading is iOS. There is no macOS version of the app but you can run the iOS app on an Apple Silicon Mac. Web users will be restricted to downloading audio or downloading 360p videos. Oh well. Maybe I’ll improve this feature in the future.</p><p id="cae5">And another problem. YouTube throttles some of the downloads. Not all of them though which is weird. I thought it was broken at first. Nope, it’s just that the downloads were really really slow.</p><p id="74fe">Although there’s a way around this too. Flutter has its own package for downloading YouTube videos called <code>youtube_explode_dart</code> and this one has gotten around the throttling issues. It’s listed as issue #180 and fixed in pull request 185.</p><figure id="c76e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*R0QbSVVKcpNt1NDnlL-7Qg.png"><figcaption></figcaption></figure><p id="4a2c">And it works great now. Well, for the streams it supports. It doesn’t support all the streams. But it supports enough.</p><p id="7308">And, one more thing <code>youtube_explode_dart</code> doesn’t actually do everything <code>youtube-dl</code> does. <code>youtube-dl</code> actually gives you a lot more information on the actual files (such as if the audio is DRCed). So I’m still going to have to use it. But I can use <code>youtube_explode_dart</code> to actually download the files.</p><p id="8fe6">I do feel a little silly for wasting so much time on this feature. Like, I built an RSS reader to watch YouTube videos, not to download them. And the only people that can really take advantage of this feature are iOS users.</p><p id="9388">It’s funny. Everyone thinks iOS is the locked-down one. But in this one specific case Android is more locked down. Because if you look up YouTube downloaders on iOS there are pages and pages of them.</p><p id="0e6e">I could see myself taking advantage of this feature. Stratum 3.0.0 also introduces the ability to add external links. So I could find a YouTube video I like that I want to download and I could just download it.</p><p id="01c9">And this experience has taught me a lot about the inner workings of YouTube. Mostly the subtitles. I had no idea the method I was using to get subtitles before was so suboptimal. It works and there’s nothing wrong with it but it could be better.</p><p id="7e7d">I’m pretty happy with Stratum’s YouTube functionality now. I was happy with it before, to be honest, I just went down a ‘YouTube Rabbit Hole’. But I did have one more feature planned: automatic YouTube summary generation.</p><p id="5b0e">Because since adding YouTube summaries I’ve been watching a lot more YouTube. I mean summarizing a lot more YouTube. There are a lot of channels I’m interested in but can’t get to due to time restrictions. Like TED and DW News. Guess what? I follow both of those sources of news now and just read the summaries. But you know what I don’t like? Tapping on the button to generate the summaries.</p><p id="8a38">Well, those are some future plans. It will be expensive though, which is also why I’m planning to announce new pricing for Stratum soon.</p><p id="f6db">If you liked this post and would like to stay updated with my future articles consider using my RSS app Stratum on <a href="https://apple.co/3rZyh9B">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.amorfatite.keystone">Android</a>. Also check out my language learning app Litany (<a href="https://apple.co/45prCDA">iOS</a>, <a href="https://play.google.com/store/apps/details?id=com.amorfatite.litany">Android</a>).</p></article></body>

How to Build Your Online Writing Empire During After Hours Without Slogging Like a Bee

Alternative title: How you can achieve your dreams without driving yourself nuts

Hustle happy. Photo by Bangun Stock Production on Unsplash

Are you an overachiever?

Likely, you are.

Many people want to do many things. In fact, too many things. One fellow Medium writer I know almost drove me nuts with her schedule.

It was inhumane. At least it is… to me.

  • She sells things on Esty,
  • She puts up products on Shopify,
  • She volunteers to edit article drafts for a publication,
  • She is in the middle of relocating from Country A to Country B,
  • AND~DD- she writes.

It is an incredible barrage of work.

I got dizzy after hearing it.

And it got me thinking.

Getting Busy is Not Our Ultimate Goal

Are you born a bumblebee?

They are, quite literally, born to work.

According to The Real Meaning Behind Busy Bees,

A worker bee’s sole purpose for living is to work. From the moment they are born to the moment they die, they always have a job, a role to fill within the hive, and lives to protect. They work every single day without any days off — that is a lot of responsibility for one small bee.

I never knew bees were busy because they are born to be so. It is their life mission.

I imagined no questions asked.

Hai, my Queen!”

They swear their allegiance to the queen bee, take a 90-degree bow, move into their assigned position, and remain there for years.

Do they see a point in their way of life? Maybe. I don’t know.

This is what I do know.

Getting busy for the sake of it… is a terrible way of living. We will feel productive at first. Soon, weariness and mental fatigue set in. And then we question why we are tired as a dog.

If that answer is not strong enough to withstand the onslaught of self-doubt…

We give up.

We are humans, after all.

Without Killing Ourselves

First, we have dreams.

Next, we have constraints.

I’ll start with constraints. We have a boat of them. The main one is time. 24 hours a day is all we have. No more, no less.

The second logical constraint is available time. If you have a day job — Deduct 9 to 10 hours away from your playtime.

The last one I like to focus on is energy. We are fresh as a daisy in the morning and dead as a log in the evening. Of course.

We can start mapping our dreams to our lives when constraints are identified.

Pardon me.

I’m practical.

I enjoy writing online. I’m actively experimenting with my style and sending my work to different publications frequently. That does not mean I write daily. It just means I write with an established frequency.

Big difference.

And because I acknowledge my constraints, I learned to,

  • Ideate faster,
  • Write faster,
  • Finish faster.

How to Write Faster Without Killing Your Fingers or Murdering the Writer’s Mind

If you have only 2 hours a day to write — You need to be fast.

It is not [just] about typing fast.

We must be fast across the board.

Let me use ideation as an example. This is how I ideate fast.

  • I have a conversation,
  • I extract the struggles of the person I am speaking to,
  • I bootstrap the struggles I hear in bullet points,
  • I turn every bullet point in one article.

Here’s the trick. Pick the bullet point where scores of pointers flood your brain when you read the description.

For me, the article is formulated when I see volunteer editors. Why so? I’ve been there. I can write 4 main points on this topic without much thinking or deep research.

This is the trick. You want enough pointers to fill up 2.5 empty pages without additional research. It takes time.

Don’t spend what you don’t have. This is financial advice. This is writing advice.

Next. On writing faster.

Now, I am not referring to supersonic typing speeds. Yes, it helps. And no, it doesn’t, if you have no clue what to write after spitting out 5 sentences.

Writing faster is more than that.

It requires having the entire article flashed out in your head before you get your fingers to kiss the keyboard.

This is what I do.

  • I stare at one bullet point in my notes.
  • Can I think of 3 headlines at a minimum? Check.
  • Can I think of 6 main points to write about? Check.
  • Do I already have [strong] opinions on this topic? Check.
  • Do I have the conclusion in my head? Check.

Once I have all these, all I do is write.

I would zone out in Zen mode.

Before I know it — I’m done.

And that brings me to the final point. Finishing faster.

What can we do to finish our writing faster? No, do not skip your Grammarly checks. That would infuriate your editors. That is the last thing you want to do.

In fact, never ever do it.

What you want is to minimize your time spent on editing.

This is my cheat sheet. You can have it for free.

  • Keep sentences short. Like short. Super duper short.
  • Avoid commas. Abuse full stops. Don’t continue endlessly. Take pauses. Just stop. Breathe.
  • Talk in 1s, 2s, 3s. Use bullets. Enumerate. Count. List.
  • Say something. Reinforce it. Rewrite it. Jab, jab, hook.
  • Write as you talk. Don’t nag. Talk.

I build these writing habits into my fingers. It has become second nature.

And, oh.

Before I forget.

Use super-simple-stupid words. There is no need to impress readers with your vocabulary. It can be repulsive when your readers don’t understand what you are saying.

In brief, it means…

“Don’t use the word cohort when you can use the word group. A cohort is a group. There is no reason to use a difficult word when there is an easier one. You sound stupid doing so.”

- Mark Cuban

The Close

You won’t live to see your online writing empire flourish if you kill yourself today.

Or burnout. Or tap out. Or throw in the towel.

We have to find ways to stay in the game. Building an empire we proudly call our own during after-hours is tough sh!t.

We are dog tired, we don’t feel like doing anything, and we want to climb into bed.

Give yourself the best chance of success.

Learn to,

  • Ideate faster,
  • Write faster,
  • Finish faster.

Because you stay in the game longer… when you don’t struggle to stay in.

Like this story? Hit Subscribe!

Oh, oh, you can buy me a cup of black too! Thank you!

Business
Startup
Entrepreneurship
Life Lessons
Inspiration
Recommended from ReadMedium