avatarKeno Ogbo

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>

YOUR JOURNEY MATTERS

How I Navigated Medium As a Newbie

Perspectives from the first few days

Photo is the author’s. All rights reserved.

I started a blog to release the noises in my brain. I didn’t care about numbers. Then once I had readers, I wanted more. And various Google searches came back with one recommendation — Publish in Medium.

Pre Membership

I didn’t understand how Medium worked. Like you, I had read several articles from Medium, but I kinda thought it was a massive general information blog. In truth, I did not stop to check it out. But in Nov 2019, I explored a little further. My first stumbling block was the home page. ZORA, FORGE, ONEZERO — what in heaven’s name are those? I clicked through to TOPICS, that made a little more sense. Medium Partner Program? To be or not to be. I was confronted with so many options, so I took a simple step and submitted an article: Broken? There is Value in the Pieces, sharing the link on Twitter. It got 3 claps. It seemed highly unlike that Mediumverse would notice or acknowledge the words I exhaled. I left the article and went to play elsewhere. I did come back to read 3 free articles.

Twitter for friends, anyone?

I played happily on iamkeno.co.uk/blog, but I was alone, and I did not like the feeling. You see, my writing journey started when I was 9. I filled up journals with bits of poetry, sentences and dreams. Then at 15, I got my first fiction idea. I knew I was a writer deep within, but I lacked the confidence, the will or motivation to write. It took 40 more years before I emerged from ink dots on pages. Blinking twice in the sunlight, I saw several others like me, and I loved them. Writing by myself was going back to my 9 yr old self, and I did not want that. So I reached out to the people I loved and we started walked together sharing tiny life moments on a storytelling platform I created. Gurpreet Dhariwal was one of them, we met via the #writingcommunity on Twitter. I saw Medium through her eyes, and came back with a game play. Thank you Gurpreet! You are special.

Membership

At $5.00 a month, Medium does not break the bank. But was it good value? As a Digital Product Owner, my decisions are based on value first before cost. Would you pay $1.00 for nothing or $100.00 for everything? Think about it.

I played happily on my blog, but I was alone.

Medium works, of course it does. Every Google search seems to bring back a Medium somewhere. I felt it worked best for early adopters, technical experts or industry leaders. For this newbie, expelling brain noise, perhaps not. But it was $5.00, so I subscribed for the year on the 2nd May 2020.

Best way to get seen

I was done playing in the shadows. My random musings had a place in this world. My words are strong, kind, positive and influencing. People needed to hear me and Medium is my podium, but how the heck do I connect with people and make faceless Medium deities AKA curators aware of my presence. How does this work? Gurpreet recently became a top ranked writer in Poetry. Boy, was I impressed. So top rankings were reachable to mortals? If she did it, I could also. She kindly showed me the way. One newbie word, Publications.

Take the plunge

I am a fairly okay swimmer. Standing on cliff looking into dark waters, far down, swarming with unknown creatures. My skill does not matter, I jump. Who dares, wins. Not who can, or who knows. I did my research and applied to four publications. Was I perfect for them? Where they perfect for me? No. If I waited for perfection, I would still be standing on the cliff. Life is empirical, you learn by doing. I believe that.

Photo by Kekai AhSam on Unsplash

Are there publications I wanted to write for? Yep! Did they want new writers? No. I moved on. I have learnt three things in my 50 years on planet earth.

  1. Confidently enter wherever you are wanted and invited because a chair awaits.
  2. Bravely enter wherever the door is open, but take your chair along.
  3. If the doors are closed and you are not wanted, fall back on courage and smash a window. PS: You may get hurt, you may hurt others, so tread carefully.

In the Meantime

The Medium Editor is super easy, but you can still go the extra mile. I learnt how to capitalise my title, use the subtitle for my articles. This helped, as well as this article written by Kevin Buddaeus. I capitalise my titles, and guess what, I am now a member of the Medium Partner Program. Still not sure what it yields, and it’s another tax headache; but I am jumping off cliffs and it’s fun. I set up my own publication whilst waiting a response from others. I have no members, no guidelines and I don’t know what to do with it, but who cares, really. I reckon my first week is the time to make mistakes. It’s called learning.

36 Claps

I published my second ever Medium article in my own publication! It got 36 claps. I was elated, how did 36 people even know I existed. Wow, if 36 people clapped, it meant hundreds more saw it. The 80/20 rule. I looked at the stats. One reader: 36 claps. It did not make sense. Then I learnt. Each reader can clap up to 50 times on an article. Oops! I gave single claps on articles I liked, this will change.

Who dares, wins. Not who can, or who knows.

36 Claps from one reader, thank you, Simran Kankas. Is this a huge achievement or insignificant? It doesn’t matter. I am grateful and excited that you liked my story enough to give over one clap. I hope I don’t ever get jaded, and take even a single clap for granted. Now I have 280 claps from introducing myself to Illumination. People are so very kind.

Published Stories

Under my published stories, I see the “comments” I wrote on other articles. This is a little annoying, why are my comments stories? So now I have 8 published stories, but only three matter. Does anyone else find this maddening?

Accepted

I have been accepted by three publications. Get Inside, Spiritual Tree and Illumination. They had a chair for me, and I am grateful. I’ll work super hard to submit an article within the week. It’s maddening to have someone express interest in what you do, then stay silent for days on end.

Highlighted Sentences

O golly, a few of my sentences are highlighted by readers. What does this mean. I have read those sentences over and over again. There are no spelling mistakes.

I was done playing in the shadows.

Grammar is debatable, but heck, it’s all readable. Some of the sentences are great, but others are passable. Is the highlight a bookmark? Does it mean you love my writing? I am off to highlight a few sentences to check out what this really mean. I must admit, I am excited that I got highlighted. Thank you.

To follow or not to follow

Like everyone here, I came to build a community. I see a few people have followed me, Thank you. I have followed back and I look forward to our interactions. Is it similar to Twitter? Scratch my back, I scratch yours? Am I being followed to be unfollowed, once I follow? Is the aim to get a large number of followers? What’s your take. You are the only people I know here, so I trust your advice. Darrin Atkins Simran Kankas Terry Mansfield Kira Dawn Mallika Chopra Chowa Sekai Ken Bourke Dr Mehmet Yildiz Suntonu Bhadra Adam VanHo Besom & Bletherskite Rick Dobson Erezi Ogbo and Oruaro Ogbo

Treading water and looking around

After a few days on Medium — it does feel like a week, there are still a lot of things I don’t know. But I am off the cliff, I jumped and I did not drown. I am not yet swimming, but I am afloat. No big bad monster has swallowed me yet, not even a bite. Perhaps there are no trolls here. So far, my new playground has been a pleasant experience. I hope to meet more of you here.

PS: Now you know me, can you give me one top tip — how can I be the best I can be on here?

Update

After I wrote this article, I learnt SO much. This second article outlines everything I learnt.

Postscript

You can ignore this bit, but I though it would be helpful to craft a mission statement for myself. Kinda driving tent pegs as I pitch my tent here.

My Mission:

To build a world of hope through words.

My Values

Transparency: Being open about what I do and how I do it

Courage: Owning my space, whilst allowing others to be comfortable in theirs

My Goals for 2020

To write at least one article a month for each publication I join

Medium
Lessons Learned
Writing
Tips
This Happened To Me
Recommended from ReadMedium