avatarGutbloom

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>

In Defense of Doggerel

Why We Should Let the Dreck Fly

I am a firm believer that these lines:

More rapid than eagles his coursers they came, And he whistled, and shouted, and called them by name; “Now, Dasher! now, Dancer! now, Prancer and Vixen! On, Comet! on, Cupid! on, Dunder and Blixem! To the top of the porch! to the top of the wall! Now dash away! dash away! dash away all!”

Were written not by Clement C. Moore, the Columbia educated theologian and published poet, but by Henry Livingston Jr., a Poughkeepsie farmer and hack poet who sometimes sent his verse and drawings to local papers.

The controversy is a long one, and there are lots of people who have looked into it are convinced that Clement C. Moore is the author of A Visit From Saint Nicholas. I think it is much more likely that Livingston wrote the poem. If he did, then Livingston stands as the patron saint of amateur writers; Soul Bloggers if you will.

Look, I don’t like to brag, but not only am I the bloggiest blogger in all of Blogaville, but I am also a THIRD GENERATION SOUL BLOGGER. I’m not kidding. Check this out:

Doggeral from the 1918

That is a poem by my great-grandfather, Thomas F. Howard, printed in the Westerly Sun. It was dedicated to my great-aunt, Annie Howard, who had died in the influenza epidemic of 1918.

Here is the family mythology: “Annie Howard had beautiful auburn hair.” In case you’re unfamiliar with the mores of the 1800s, you start any description of women by mentioning their most desirable physical attribute. “She took care of many other people during the epidemic of 1918 and became so worn down that she succumbed herself.” All of that could be pure hogwash.

Anna was born in 1894, and was 24 or 25 when she died. We’re not sure where she died. My older brother claims that my grandmother told a story about having to ride back on the train with the body from New York City. There may be some letters with a Hell’s Kitchen address on them.

No picture exists of her. The one on the left MAY be her, but someone, I can’t remember who, told me it wasn’t. Here is a picture of my grandfather outside of his Newspaper and Tobacco store that was on the Pawcatuck Bridge in Westerly.

The picture on the left I “thought” was Annie Howard. Someone once told me it wasn’t. I forget who. The guy on the right is my great-grandfather, the proto blogger.

The guy on the right was a newsdealer. He had a high school education thanks to the Westerly Public Schools. He considered himself a “naturalist” and he wrote verse… sometimes… I guess. The only poems we have by him are the ones printed in the Sun. For this post I wanted to include more, but I can’t find them. I hope they are in an album I have packed away above my barn. As I recall, they are all kind of maudlin. He lost two sons, ages three and five, to croup in 1891, and I remember reading a poem about them that wasn’t dissimilar to the one above.

My point is this: Newspapers have always filled their pages with the contributions of amateur writers. Throughout American history, many of the essays and opinion pieces in local papers were the work of paleobloggers. Their contributions were, for the most part, lost, but that doesn’t mean that some of them weren’t genius.

A Visit From Saint Nicholas was so good that the publishing world HAD TO CREDIT A PUBLISHED WRITER or it didn’t make sense. We all want the “Great Man” to exist, whether we are seeking kings, philosophers, or artists. Now we’ve included women, so we’re looking for the great men and women… and we’ll begrudgingly admit that even if they are people of color or some other marginalized group maybe they can be great too… but they must be GREAT. They must possess what the rest of us do not. Usually when you scratch the surface you discover that what they had was family money. Family money that let them do what they wanted.

The promise of the Internet, and of Medium in the beginning, was that there was no gatekeeper. This would be the platform where you wouldn’t have to pass through a martini soaked Harper Collins editor to get seen. The tubes were supposed to let us create our OWN literary communities¹.

I guess we still can, but, man, the algorithms don’t make it easy, do they? We’re all swimming upstream. It shouldn’t be this hard to find readers, should it? I promise you, it has gotten harder here on Medium.

As one steeped and sustained by patriarchal racist bullshit, I think the idea of “great writers” is patriarchal racist bullshit. I’m not saying Melville isn’t great, but so is A Visit From Saint Nicholas. And it was probably created by a hack like us.

I don’t read poetry anymore, except on Medium. I read a lot of poems on Medium. Some of them are truly great.

I like what we have going here, even though sometimes I get frustrated that Medium ISN’T DOING WHAT I WANT THEM TO DO WITH THIS SITE THAT I USED FOR FREE FOR MANY YEARS.

The collective wisdom of our generation is on the tubes. Who knows, maybe some important author will steal your work and publish it in one of Medium’s curated magazines. Then you’ll be famous like Livingston.

¹ I’m on the record for saying that I will pay to belong to a democratic blogging platform. $10 a month? Does that sound fair?

History
Dreck
Blogging
Poetry
Doggerel
Recommended from ReadMedium