avatarLon Shapiro

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>

Death enjoying room service at the Four Seasons

Don’t Fear the Reaper; it’s the GOP you should be worried about

DEATH EXPLAINS THE REPUBLICAN HEALTH CARE BILL

An Exclusive Interview by Yuri Nater

As an intern, I was surprised to be given this plum assignment and amazed at my good fortune to write my first article for the Times, one that would appear above the fold! Maybe the other reporters were afraid of Death, or thought this was a prank, who knows? But given the current job market for English Lit grads, I didn’t have much of a choice, so I caught a ride with a friend over to the Four Seasons in Beverly Hills. Despite my beat up jeans and 99¢ Store sneakers, no one stopped me after I asked for directions to room 666.

I found the Grim Reaper enjoying a continental breakfast and skimming the morning paper. He was dressed in a stylish black robe with the hood down. his fiery floating eyes looked strangely friendly without the shroud, and added to the morning glow inside the room. He asked if I wanted some breakfast and, after I politely declined, persuaded me to at least have some coffee and a croissant. Settled in, the waiter asked if we needed anything else, then smiled and left the room in haste, declining the tip held in Mr. Reaper’s outstretched hand. What followed was a very informative interview that has been copied verbatim, per his request.

YN: Well, he was in a rush, wasn’t he?

GR: No biggie, I’ll catch up to him later.

YN: Nice hotel. Are you enjoying your stay here?

GR: Yes, I always stay at the Four Seasons… kind of poetic, if you know what I mean. The staff always knows when it’s their time. And they give me a wide berth, so I can enjoy a little “me” time in a luxurious setting.

YN: That’s true, the staff acted almost normally, considering the guest they have.

At the Four Seasons, they’re so used to serving rich wannabes like arms manufacturers, drug dealers and private equity CEOs, they have no problem dealing with that OG of oblivion, the pasha of passing away, the uber undertaker, yours truly.

Check out this hotel robe. It’s black fucking satin… sooooooo smooth. C’mon, touch it. You won’t believe the feeling of peace that comes over you when you’re wearing satin.

YN: Yeah, well, uh, my mom says I have an allergy to satin, so… Hey, I noticed you’re not wearing a hood. Can I take a photo for our readers?

GR: [shakes his head “no”] Your loss, kid. It’s pure freedom. I’d wear nothing at all if I could, but there are just too many problems with hungry dogs, ya know? Do you know how good this robe feels after schlepping around the globe in a tattered shroud? I can’t even get that thing dry cleaned when I’m on business. It’s so dumb, you’d think people are already brain dead. Everyone puts up a “closed” sign in the middle of the day when they see me coming, as if that would keep me out if I wanted to get in. When someone isn’t on my list, there’s nothing to worry about.

Like you, for example.

YN: [gulp] Me?

GR: Yeah, you, doofus. Remember Spring Break 2003, when you set a personal record for alcohol consumption over three consecutive days? I was there in your hotel room when you passed out, and your idiot friends drew penises on your forehead with a sharpie. If you hadn’t collapsed on your side, you would have suffocated your own vomit. I had to make an appearance just in case there was an accident.

YN: Dude, you’re the sultan of swan songs, le roi de ruination, the archduke of annihilation. How are there accidents?

GR: Believe it or not, there is some free choice. Haven’t you heard about the Darwin Awards? People do stupid shit that surprises even me. It’s like schrodinger’s cat writing a story. There’s uncertainty, so the names are like floating on my list, fading in and out.

YN: Do you always get room 666? Or is this like a corporate suite that employees of the Devil get to use?

GR: [Stands up, tips over the table, and starts yelling] The devil, my boss? If he shows up right now, I’ll send his ass straight back to hell. [Calming down] Of course, he can come right back. But then I would send him back down again, leading to a ridiculous waste of his time and mine. He knows the score, so he never fucks with me.

YN: So you’re God’s servant?

GR: I am an independent contractor, kid. You really are clueless aren’t you? God set up the original game, and gave me exclusive territory over the earthly plane. How do you think they make angels and saints? They send ’em down to earth, do their job and then I dispatch them. Haven’t you ever heard of Jesus, for Christ’s sake?

YN: Sorry, I didn’t mean to disturb your breakfast. Why did you even call for the interview?

GR: Oh yeah, I almost forgot about that. I want to make a public statement to dispel some nasty rumors going around. There’s this group of flaccid, punk ass bitches who are trying to take over some of my territory, and I’m here to call them out.

YN: Like al-Assad or the Rwandan government?

GR: No, not them. They show respect for me by flat out murdering people left and right. They do it the old fashioned way, with machetes and guns and bombs and gas attacks.

No, I’m talking about the Republican party.

YN: What? They’re the party of life, aren’t they?

GR: Kid, you are even dumber than that pain au chocolat. For that matter, who would connect “pain” with such a delicious breakfast pastry?

YN: It’s French, sir. “Pain” is pronounced kind of like a nasal version of “pan” with the “n” half pronounced…

GR: Well, fuck you, smart guy, and fuck the French. They didn’t even invent the croissant, but they took credit for it. It’s like they take shit and put their name across it in big fucking gold letters, like some scam artist.

Where was I? Oh yeah, we’re talking about scam artists. The GOP has been trying to give me a bad name for too long, and I’ve had it with them. Remember “death panels?” That was the lie of the year in 2009. Extending health care insurance under Obama Care to millions of people was only going to save lives, and I don’t appreciate having my reputation sullied in any way. You’re supposed to fear the reaper, not walk out of a clinic sucking on a fucking lollipop.

But now, with Trump Care, they’re lying again.

I just saw some heartless Texan on TV talk brag about how they were going to insure that pre-existing conditions would be covered in a more efficient way. Do you know what’s efficient, kid?

YN: I don’t know, single payer health care, like Medicare for everyone?

GR: No, what’s efficient is to create a separate insurance pool for all the people with pre-existing conditions. Insurance companies then charge impossibly high premium rates, and the Republicans promise to provide subsidies when the rates go up to over $25,000 per year. This Texan — and given his lack of heart, I might be paying him a visit soon — said they would provide $8 billion over the next five years.

YN: What’s wrong with that, if it covers the extra expense?

GR: Wow, you may very well have a chance to win a Darwin Award in the future. Look at the words, “$8 billion over the next five years.” That implies two things: a funding limit, and possibly a legislative sunset.

When you set a funding limit, it is impossible to foresee how much more the insurance companies will raise their rates. Even with the subsidies, people with the highest risks will not be able to afford their insurance, lose their policies, and proceed to die off during the months it takes for the public outcry to make Congress do anything to rectify the situation. Every high-risk person that dies twenty to fifty years before their time represents a revenue bonanza to the government. Holy crap, one dead baby is a veritable gold mine!

President Orange can just say “I didn’t realize it was so hard,” Paul Ryan can do his evil grin while pantomiming “who knew?” and the GOP can justify their tax cuts for the rich by pointing out all the savings they created with their health care bill. Shit, if they can eliminate the FDA, we’ll probably be eating Soylent Green in a few years, which will lead to new kind of farming activity at nursing homes. Just think how much they’ll save on health care then!

YN: I think I follow you now, but what’s a legislative sunset?

GR: It’s a time limit written into a piece of legislation, or a sneaky legislative trick that triggers a time limit. Unlike Obamacare, where the insurance companies are required to provide coverage for pre-existing conditions forever, a legislative sunset means the bill has to be extended after it expires. Sometimes, a sunset provision is good, because you don’t want to extend a law with bad consequences or one that was necessary during a time of crisis, but is no longer relevant. But sometimes a sunset provision is bad, because it allows the next group in power to completely screw over the people because enough time has passed and nobody remembers how important a particular law is, until it’s too late. And the party in power can kill a life-saving law simply by not extending it. It’s a coward’s way out. In other words, a favorite tactic used by scum bag politicians.

YN: So, if the new law kills thousands of people, why are you unhappy?

GR: Do you even read the news? Or do you just pass your time looking at your twitter feed in between going on coffee runs and walking the boss’ dog? Have you seen one word about this new form of “death panel?” They call it “freedom to choose,” with the “invisible hand of the market place” holding a .357 magnum.

Usually, I get along just fine with the Republicans. Start unnecessary wars? Check. It’s what you do.

Cut food stamps, head start programs, refuse to provide funding to 9/11 responders? It’s all good. They are cutting down the time I have to wait to collect my souls.

But take away health care from people already on my list? These motherfuckers are going to kill thousands every year and I’m not getting one shred of credit. [sighs]

Homie don’t play that game.

YN: [Room darkens, red flames blazing from his eyes, I step back] What will you do?

GR: Oh, I’ll just send a memo out to a higher authority, and believe me, there will be hell to pay.

YN: A “higher authority?” You said neither God nor the Devil was your boss. Please explain.

GR: I’m just going to send a little note to Putin that says “The GOP knows about your ties to Trump and they want you to pay for their silence.”

More political satire…

Trumpcare
Humor
Political Satire
Death
Donuts
Recommended from ReadMedium
avatarRoman Newell
Couch

Between the cushions

4 min read