<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ken on Medium]]></title>
        <description><![CDATA[Stories by ken on Medium]]></description>
        <link>https://medium.com/@crackedmob?source=rss-01c44a36ba79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p2_bm16mNHRwb4Ab</url>
            <title>Stories by ken on Medium</title>
            <link>https://medium.com/@crackedmob?source=rss-01c44a36ba79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:50:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@crackedmob/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What Really Happens When You Press Play? An Intro to GStreamer]]></title>
            <link>https://medium.com/@crackedmob/what-really-happens-when-you-press-play-an-intro-to-gstreamer-59aeaa9fcd2a?source=rss-01c44a36ba79------2</link>
            <guid isPermaLink="false">https://medium.com/p/59aeaa9fcd2a</guid>
            <category><![CDATA[pizza]]></category>
            <category><![CDATA[gstreamer]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[multimedia]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[ken]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 17:38:50 GMT</pubDate>
            <atom:updated>2026-11-30T17:38:50.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever thought about what actually happens when you log on to your favourite streaming site, or YouTube, and press play?</p><p>You get your lunch or dinner ready, set the phone or the laptop up on your desk, tap or click a video, and a second later, it starts playing? With the crisp picture/video quality and the sound perfectly in sync?</p><p>Now, as something that’s been taken for granted as often as video streaming, there is an intricate symphony of complex processes tied together beneath the surface. What follows in this blog is an attempt at documenting it all.</p><p><strong>So what really happens when you press play?</strong></p><p>Your video goes through a series of stages:</p><ol><li><strong>Fetch</strong>: the raw bytes arrive from the internet, or from a file on your disk.</li><li><strong>Unpack (demux)</strong>: a video file is like a lunchbox with the video, audio and subtitles packed together. This stage opens the box and separates them.</li><li><strong>Decode</strong>: video is stored in compressed form; otherwise, a single movie would be hundreds of GBs. This stage turns the compressed data back into real picture frames and real sound.</li><li><strong>Convert and sync</strong>: it gets the frames into a format your screen understands, and makes sure the audio and video play at the same moment.</li><li><strong>Display</strong>: it takes each ready frame and hands it to your display, which draws it as pixels in a window.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGqt5A3ZyHRwAKh-LBuc3A.png" /><figcaption><strong>What happens when you press play: the five stages from fetch to display</strong></figcaption></figure><p>That’s a lot, right?</p><p><strong>What if we wrote all of this ourselves?</strong></p><p>Technically, we could put every stage into a single, big program and it will work just fine. The only problem with that? Changes to the technical specification of the program will be a pain to make.</p><ul><li>You want to support a new format? Rewrite the unpacking and decoding parts.</li><li>Want a new input? Rewrite the reading part</li><li>Want a new output? Rewrite the showing part</li></ul><p>Every time you wish to change something about how the media data is handled, you have no choice but to swap a lot of things in that one chunk of code that you just came up with. I think you get why grouping it all into a single program is not a good idea.</p><p><strong>How do we fix this problem?</strong></p><p>It’s easy-peasy, honestly; we break he big problem into small single-job pieces, and each piece passes its result to the next.</p><p>Let’s talk about this in terms of pizza, because who doesn’t love pizza?</p><p>In a good pizza shop, nobody does everything.</p><p>The work is divided into stations; there is a dough station, a sauce station, a cheese station, and an oven station. Each station does its job(one job) and passes the pizza to the next station. And since each station only cares about “pizza comes in, pizza goes out”, same as “data comes in, data goes out”, you can replace the old oven with a better one without retraining the sauce person, and this is why we need a <strong>pipeline</strong>.</p><p>That is the whole idea behind GStreamer</p><p><strong>GStreamer </strong>is a framework where every job is a small, single-purpose <strong>element</strong>, and you snap the elements together into an assembly line for media. The line is called a <strong>pipeline</strong>.</p><p><strong><em>Formal definition of GStreamer: Here is what Wikipedia says about GStreamer</em></strong></p><p>It is a framework designed to handle <strong><em>multimedia </em></strong>flows. Media travels from the source elements(the producers) down to the sink elements(the consumers), passing through a series of intermediate elements(filters) performing all kinds of tasks, and the set of all interconnected elements is called a <strong><em>pipeline</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r31-wfq5tTNON4Qv6UfudA.png" /><figcaption><strong>A simple GStreamer pipeline: data flows from a source, through filters, to a sink</strong></figcaption></figure><p><strong>Why exactly do we need a pipeline?</strong></p><p>We need it to make the system <strong><em>modular </em></strong>and <strong><em>composable</em></strong>.</p><ul><li><strong>Modular</strong>: each piece does one job and doesn’t care about the others</li><li><strong>Composable</strong>: you can connect pieces in different ways to make different things, like building with LEGO.</li></ul><p>Changing the input, the output, or any step in the middle no longer means a rewrite. You swap one piece, and the rest stays untouched.</p><p>The data is moving through the pipeline.</p><p>Each element receives the data, does its work and passes the resulting data onwards.</p><p><strong>The 4 words that matter the most:</strong></p><ol><li><strong>Elements</strong>: elements are GStreamer’s basic construction block. They process the data as it flows downstream from the source elements to the sink elements, passing through filter elements.</li><li><strong>Pads</strong>: pads are a GStreamer element’s connection point for data flow; we <strong><em>have two kinds of pads</em></strong>: a <em>sink pad</em>, which receives the data into the element, and a <em>source(src) pad</em> that sends data out. You link elements by joining one’s src pad to the next one’s sink pad. Only the intermediate elements(filters) have both pads(source and sink pads); the producer(source element) has the source pad, and the consumer(sink element) has the sink pad.</li><li><strong>Pipeline</strong>: is the whole assembly line. It is the container that holds all the linked elements and runs them as one.</li><li><strong>Buffer</strong>: represents a piece of media data being passed through the pipeline. It holds things like timestamps, duration, and flags. These labels are what keep the audio and video in sync.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDn-oefb42ts3qdzZZue6A.png" /><figcaption><strong>Pads are the connection points: an element’s src pad sends data out, and the next element’s sink pad receives it</strong></figcaption></figure><p><strong>Let’s see for real</strong></p><p>Gstreamer comes with two command-line tools that make all of this visible</p><p>First, let’s look inside a single element</p><pre>gst-inspect-1.0 videotestsrc</pre><p>This prints the element’s details:</p><p>What it does, and its pad templates. You will see it has a src pad and no sink pad. It is a starting station.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWXQk6vFPNgKsl8ncsPX1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLQnfXxljStrL7BO_K4jIw.png" /></figure><p><strong>Now, let’s build a whole assembly line:</strong></p><pre>gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink </pre><p>Read ! as “pass it to the next station” (it is basically a connector between two elements). A test video is created, converted into a format your screen understands, and shown in a window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4SfwDI1nTjvzIEYPH96Yw.png" /></figure><p><strong>What if you wanna change something?</strong></p><p>Let’s do that; that’s the whole point.</p><p>Let’s add a station in the middle:</p><pre>gst-launch-1.0 videotestsrc ! videobalance saturation=0 ! videoconvert ! autovideosink </pre><p>The colours vanish; we added one element and touched nothing else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbNSlygKmDToOLCE08F_1g.png" /></figure><p><strong>What if you want a different ending?</strong></p><p>Swap the last station: instead of showing the video, save one frame as an image.</p><pre>gst-launch-1.0 videotestsrc num-buffers=1 ! pngenc ! filesink location=frame.png</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQv253G1dmZrRd8NB01WXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaOC_vSEmvfqV3H8LrA-NA.png" /></figure><p>Same start, different end, and again no rewriting.</p><p><strong>Where do all these elements come from?</strong></p><p>Elements are shipped inside plugins, which are like toolboxes of related workers. Anyone can write a new plugin, which is why GStreamer can handle so many formats, cameras, and outputs.</p><p><strong>So, what did we learn?</strong></p><p>We started with a simple question: what happens when you press play? We saw that it is a whole chain of jobs: fetching, unpacking, decoding, converting and displaying. We saw why cramming it all into one program is a big trouble, and how Gstreamer fixes it by splitting the work into small elements snapped together into a pipeline.</p><p>Now some of you might have a question:</p><p>We kept snapping the elements together with !, and it just worked. So what if it didn’t? What if the element before gives out one kind of data, and the next one only understands a different kind? (Imagine providing a PNG to software that only accepts a JPG; it won’t work.)</p><p>Try this and see what GStreamer says:</p><pre>gst-launch-1.0 videotestsrc ! audioconvert ! autovideosink</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ybqg7r3HQ1oZdAlZrNl8g.png" /></figure><p>Obviously, we are feeding a video to something that expects audio. So how do two elements know whether they can connect? Who decides what kind of data flows between them? And what happens when they can’t agree?</p><p>That’s exactly where <strong><em>pads </em></strong>and <strong><em>caps </em></strong>come in, and that’s what we will explore in the next part of this series. See you there!</p><p>Thanks to <a href="https://medium.com/@kshitijvaze">Kshitij</a> for helping with stuff in this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59aeaa9fcd2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A little get to know me]]></title>
            <link>https://medium.com/@crackedmob/a-little-get-to-know-me-e9f96d42521d?source=rss-01c44a36ba79------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9f96d42521d</guid>
            <category><![CDATA[college]]></category>
            <category><![CDATA[self-introduction]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[friendship]]></category>
            <category><![CDATA[basketball]]></category>
            <dc:creator><![CDATA[ken]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 17:19:39 GMT</pubDate>
            <atom:updated>2026-05-15T13:19:54.509Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I am Shipra. A kid who dreamt of having an indian flag on her jersey, but life had different plans for her. I am an engineering graduate — IT’26. I am a 21-year-old female who is currently FAFOing her way through life. Though it’s a surprise to me that I am 21 right now, when I could never imagine myself even being 18 in the first place. I was a nice kid is what I know about myself. Anyway, I will start from the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNuTqVzkeAFi65EOPPeM-g.jpeg" /><figcaption>This is kid me</figcaption></figure><p>It started in the early spring of 2014. I, along with some of my friends, somehow ended up in the stadium, which is very close to my then house. We were there to play random games, and ended up being too close to the basketball ground where a female coach was taking the evening session. She took the opportunity and lured us in(in a good way) to give basketball a try. We started showing up for daily evening practice after that day. This was not the moment I fell in love with the game; I was showing up because all of my friends did too.</p><p>It was not until 1.5 years later that a different coach came to take the session; she was appointed to take sessions in two districts, half a month each. She taught us ball release that day, and with every improved release she said a word, “better”, and that stayed with me. That was the day when I actually fell in love with the game. I started showing up with or without friends for the evening practice, 16:30 sharp at the ground, with warmup and exercise done, looking at everyone while tightening my shoe laces to start dribbling — it was a must-do thing, for the next 10 years after the warmup, everyone on the ground was supposed to do dribbling for 30–40 minutes at least, no matter how many tournaments you have played, what age group you’re from, you have to dribble, and we all did.</p><p>In 2018, I was selected for my first-ever national camp in the U-14 category. I was happy, more than I have ever been, I guess. I reached Hanumangarh, and the camp was organised there. The coach who was taking our camp was a nice, tall man, and a good coach overall. I practised under him for the next 2 weeks, where I was in constant fear that I would not make it to the top 12 out of 20 girls. It was time to go back home, the night before Diwali, my coach called me and asked when I was leaving for Hanumangarh, to which I had no answer because I had not received any updates on my selection to the team. The district basketball secretary was supposed to inform me about it, but he did not. So when the coach told me about my selection in the top 12, I was happy and in a rush to make arrangements to get to Hanumangarh because the morning after Diwali was the reporting day. I somehow made it there and reached the hosting ground as well — Kangara, Himachal Pradesh, along with the team. I remember that I was not getting a lot of game time, let alone being in playing five. It was the 4th match in the morning, against MP — I remember because I wore my jersey the other way around. In this match, I was in the playing five — that means I played the first quarter, and that was a breakthrough for me in the whole tournament. I played like my whole life depended on it, every rebound — offensive or defensive did not matter, this other girl named Payal and I were collecting all the rebounds and somehow converting them into points. I was playing five in every match after this; we ended up securing 8th position for Rajasthan.</p><p>After my first Nationals, I knew what I wanted to do for the rest of my life: play basketball to my heart’s content and have an Indian flag on my jersey someday. I practised rigorously every day except Sundays. In 2019, another friend and I gave the SMS academy trials and cleared it as well. We were selected, and we decided not to join it because we wanted to play and practice under our current coach for as long as we could. We were in the 10th standard then, boards and all. This was the moment which was gonna change everything for me. I, and the same friend I gave academy trials with, took our team to KV regionals in 2019, got a silver medal and made our way to KV nationals. The camp was a month-long, held in KV 2, Jaipur. We left for Jaipur to Delhi via train as we had our flights from Delhi to Bhubaneswar — KIIT was hosting the 50th KVS National Sports Meet. The friends I made, the people I met, the fun I had — all of it is something that I deeply cherish. We won silver in nationals as well, and according to the rules, 4 kids from our team were gonna be selected for SGFI. I think the whole team knew who 4 were gonna make it in, but unfortunately, I wasn’t one of them, even after being in the top 5 performing athletes (female) of the tournament — no, these are not the official stats, but I know myself and my performance. The kid who was planning to make a career out of sports was the one who did not make it to SGFI. I was depressed after that — not just because I did not make it to SGFI, but it contributed as well.</p><p>After coming back, I got an injury — my right ankle’s ligament was stretched because I twisted my ankle during landing when I was playing a match. I was told to rest for 15 days and not show up at practice — I did exactly that. It somehow made my mental health worse, and after recovery, I started skipping practice — the kid who was always there on the ground at sharp 16:30, just did not care anymore. My coach noticed, and it was all before my 10th boards. I decided to pull all-nighters a month before boards and scored 84.6% there and got PCM stream in 11th grade. I was still depressed, and COVID just hit right after my boards ended. I started watching anime, I had all the time in the world, and that is when I came across One Piece. That silly rubber guy somehow ended up being the reason I am 21 now. I used to watch 12–14 hours of One Piece in those days, and I don’t regret it a bit. The other thing that happened was my dadu passed away on the 10th of July. He was waiting for my results more than I was — he promised that he would buy me a smartphone if I scored above 80, but the results came out 3 days after he passed away. I still remember that I was unable to cry and did not shed a single tear. I scored very poorly in 11th, but somehow, due to COVID, I made it to 12th grade, and I lost my favourite math teacher to COVID. Somehow passed the 12th boards as well with a decent score of 70.4%.</p><p>2022 was the year I started college. My father got me admission in the nearby la-la university, and I attended that for 4 months before taking admission to my graduating university. If you guys are wondering why engineering and not some sports degree? Well, that is because I was not eligible to apply to any sports university as I did not have any recent national certificate (there is a rule in sports that a certificate is only valid for 3 years after its issue date). I did not want to take a gap year, play, get to nationals and do a sports degree.</p><p>From 2022 to 2026, I was in Ajmer. These four years were the most awesome and most shitass years of my life. I experienced everything from a friendship breakup to a romantic breakup, rejections, unemployment, backlogs, and everything. In the midst of it all, I ended up falling in love with my life in Ajmer. The college life was bearable and manageable because I got a friend who was standing right beside me whenever I needed her. Cut short, I was unemployed(still am technically) until the last 17 days before the last semester exam. Now that I have moved back home, I am looking for opportunities (internships/ full-time) in systems/backend engineering roles. I work with C, C++ and Go. The only thing I would say is, keep your fucking mental health in check and reach out to people. Watch One Piece, and trust me on this — I used to be the kid whose bed wish used to be “I hope I don’t wake up to see the sun tomorrow”, and it changed for me. I still sometimes struggle with it, I still sometimes go non-verbal, but I now live anyway, because I got things to do, people to meet, places to visit, food to eat and a fucking life to enjoy. If you read this till here, I appreciate it, and I love you for being alive and being you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*reWtGNEI_BkdSqn-HwojXA.jpeg" /><figcaption>a picture of me to brighten your day xx</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9f96d42521d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>