avatarKatarzyna Portka

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>

Ladies, Turn Your Period into Your Superpower.

Ever since I got it back, I am never going to give it up.

Photo by David Hofmann on Unsplash

Many women dread that time of the month.

Many women constantly complain about cramps and pains.

Many women curse elaborately.

I used to be that woman.

Until the moment when I have experienced severe acne, hair loss, to eventually say goodbye to the bloody days for a year.

Until, I understood that my body communicates with me through physical symptoms, letting me know my lifestyle needs drastic changes.

Whenever you miss your period, it’s your body’s way of telling you that something is off.

Lack of period mirrored the level of my health and happiness.

After cutting out alcohol, heavy partying, staying up till dawn every other day, I took myself seriously.

I have decided to take a closer look at my relationships, choices of food I got to make daily, how I chose to spend my free time, how my job influenced my mood, how motivated I was to jump out of bed. After taking it all under a magnifying glass, I came to the conclusion that I am not happy at all.

I was able to joke around, laugh at parties, get myself lost in the business of a hectic lifestyle, fancied shopping and outings with friends, but I was not permanently happy. I would rather jump into those activities to mute the awareness of being unhappy. Does it make sense?

After making mindful changes in my physical and spiritual dimensions, my period came back. I have never been happier with any visit so far.

Period is a woman’s superpower.

It is called a menstrual cycle for a reason. We have been gifted with 4 unique hormonal phases.

Lucy Peach, author and period preacher.

Peach illustrates 4 stages of the feminine cycle which we can coin into our strength if cared for a little guidance:

  1. Winter. On the first day that you bleed, you enter the phase of resting and letting go. You nurture yourself for the month ahead. Ask yourself What is it that I want to grow and give life for this month ahead? The more you can tap into the slowness of this moment, the more energy you get to restore for later on.
  2. Spring. When you finish bleeding, you energetically march into the season of acting and doing. This is your power week: your estrogen is rising. You have got the shot of testosterone. Prepare yourself to plant seeds into the ground and get your hands in the clay. You may wake up earlier, feel the urge to organize, climb that mountain and take over the world. Use this time wisely to act on your impulses.
  3. Summer. Your estrogen peaks. Ovulation occurs. Around day 14 of your cycle, you feel like saying yes to everything. Jump on new projects. It is the period of giving, becoming more sociable. However, remain mindful to not give everything away, especially your boundaries. When you rush into your next phase empty-handed, you can feel depleted.
  4. Autumn. Around day 21, your hormones are plummeting as you get ready to let go again. You may feel pressured to keep up with your hustle and generosity. If you fail to keep the balance, you may feel irritated. You can utilize this time to go inward. Create. Write. Paint. In other words, do something you truly feel passionate about. Not for other people. Not according to societal expectations and standards. But because it makes you feel good and soothing.

There you go. You can tap into your unlimited potential by working with your body and hormones, not against them. Start by organizing your schedule according to your natural system, so you can reap all the benefits. Instead of becoming a victim to the hormonal ebbs and flows, incorporate them into your daily routine. It requires a mindset switch. When we change how we look at things, they follow suit.

Further blessings of the menstrual cycle:

It keeps you young.

Menstruation slows down ageing by causing iron deficiency, claims Dr. Tomas Perls, and iron is critical to the production of free radicals, which increase your chances of developing age-related diseases. Therefore, our period serves as a tool for a monthly cleanse. Our bodies are clearly self-sufficient geniuses.

It is a reminder of self-care.

As we approach the last phase of the menstrual cycle, it encourages us to put our needs above anything else. No. It is not egoistic. It is healthy and responsible. Once you take care of yourself, you can serve others as well, but only if you invest in your strength, stamina, and mental balance first.

It makes you glow.

Haven’t you noticed that a few days after your period arrives, your skin looks radiant, your mood hits differently? That is because your estrogen levels go higher, releasing endorphins. It suppresses your stress hormones, since estrogen influences how your brain controls emotions.

What if you struggle with imbalanced period or lack thereof?

Stress can cause irregular period.

Ask yourself what lifestyle changes, situations might have caused the change?

When you are under a lot of stress, it’s like a signal telling your body: it is unsafe. You go into fight-or-flight mode: blood pressure rises, your heart rate picks up, and you’re ready to drop everything and run for dear life. The last thing your body cares about is reproducing.

The answer: invest in ‘me’ time. Meditate. Start regular breathwork, at least three times a day in the beginning. It takes your mind off worry and stress, dissolves negative thoughts and calms your nervous system. I also encourage you to give cold showers a go. Regular cold showers impose a small amount of stress on your body. It means that your nervous system gradually gets used to handling moderate levels of stress.

Watch our for your diet.

Balancing hormones and restoring your menstrual cycle can be affected by what goes on at the end of your fork. What makes you reach out for that sweet or savoury comfort food? Is it boredom, lack of passionate interests or lack of safety and stability?

  • Pump up on avocado. I swear by it. Healthy fats are your best buddies, not enemies. You can incorporate it in almost anything (salads, smoothies, eggs, a side dish to your sweet potato chips). It gives a twist to every meal you devour in, and keeps your belly satisfied for a long time. Not only are avocados full of fibre, potassium, and magnesium, they’re a B vitamin feast.
  • Incorporate greens into your every diet. Steamed broccoli sprinkled with pumpkin or sunflowers seeds are a great way to amplify your B vitamin intake. Ever heard of seed cycling? Sneak spinach into your smoothies every morning. Here are my favourite two smoothies to kick off your day on an energizing note.
  • Load up on omega-3s. Eating fatty foods such as salmon, sardines, anchovies, walnuts, and hemp seeds, almonds, pecans extra-virgin olive oil (good quality) provides you with anti-inflammatory support that can improve your mood while reducing period cramps.

These fatty acids play critical roles in cognitive development and learning, visual development, immune strength, inflammatory function, pregnancy, brain health, Alzheimer’s disease, heart disease, cancer, mental illness, and so much more. They affect every one of your hundred trillion cell membranes.

— Dr Mark Hyman, MBG Article.

Take care of your body.

Be mindful of what type of activity you engage in. There are periods of slowing down. There is also a perfect time to hit the gym or your cardio workout. Nonetheless, since I incorporated my yoga practice daily, my stress levels went down. My adrenals recovered. I no longer fight against my body, we cooperate together, as I have learnt to listen to its signals.

After including the above-mentioned habits, my cramps are no longer painful. I experience far less mood swings, irritation, and food cravings. I believe that my mental switch ultimately influenced physical ailments.

I encourage you to develop a healthy relationship with your cycle.

I could live with cramps and pains. I could live with being bloated every month. What I cannot compromise is my health. If I were ever to neglect my body again, I know I would miss my period broken-heartedly.

I promise you this magnificent body of mine: I will never again give up on you, starve you or experiment on you in any way. I will never turn back on my bleeding days ever again, as they are my superpower. It is magic and runs in my blood.

The bottom line remains:

You are going to face enthusiastic days and less passionate ones, perhaps more stay-all-day-in-bed days. Neither of those are futile, and all of them are necessary.

Period is a magnificent decoding tool. It is our women’s grounding force and the navigational system, just like our emotions. When something is off, tune into your body and intuition. Go with the flow, not against it. Period.

Thank you for reading!

I write to empower and inspire with self-love. Your biggest strength lies in your authenticity, so embrace the whole package. Wear your unique attitude proudly.

If you would like to join Medium, please click here.

Health
Lifestyle
Food
Advice
Women
Recommended from ReadMedium