<?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 Julia Valenti on Medium]]></title>
        <description><![CDATA[Stories by Julia Valenti on Medium]]></description>
        <link>https://medium.com/@juliarvalenti?source=rss-45909941d6c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*d2vBSq4rBuRTYtVX8xxLRw.jpeg</url>
            <title>Stories by Julia Valenti on Medium</title>
            <link>https://medium.com/@juliarvalenti?source=rss-45909941d6c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:05:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juliarvalenti/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[How to Render RTSP Streams within a React App]]></title>
            <link>https://medium.com/cisco-fpie/how-to-render-rtsp-streams-within-a-react-app-e7957e591075?source=rss-45909941d6c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7957e591075</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[security-camera]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Julia Valenti]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 11:56:16 GMT</pubDate>
            <atom:updated>2022-04-15T11:56:16.642Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Prerequisites</em>: <em>NodeJS, Docker, git<br></em>Repository for this tutorial can be found <a href="https://github.com/juliarvalenti/rtsp-react">here</a>.</p><p>If you need to incorporate an <strong>RTSP stream</strong> into an existing web app, you might think its as easy as adding the RTSP URL into your HTML5 &lt;video /&gt;. However, it’s not really that simple. In this article, we will stand up a simple React application with <a href="https://vitejs.dev/"><strong>Vite</strong></a>, a Golang-based video encoding service with <a href="https://github.com/deepch/RTSPtoWeb"><strong>RTSPtoWeb</strong></a>, and view the encoded and streamed video in our React application using the <a href="https://videojs.com/"><strong>VideoJS</strong></a> package.</p><p>Before we get started with coding, let’s learn a little bit about the history of RTSP.</p><h3>Time for a little history lesson…</h3><p><a href="https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol">RTSP, a.k.a. Real-Time Streaming Protocol,</a> is a protocol for streaming video online. RTSP is most commonly used for security footage streaming, such as those coming from CCTV or IP cameras. The strength of RTSP is that rather than forcing the viewers to download an entire video before watching it, the RTSP stream allows them to watch the content before the download is fully complete. Nowadays, this is not very special, but when RTSP was first proposed in 1996 it was a very cutting edge concept.</p><p>Developers who try to integrate RTSP into their apps today may struggle because you cannot directly stream RTSP within web applications. A few extra steps need to be taken before it can be rendered within a browser. The process outlined below is just one of the many ways that we can solve this issue, but it is the one which worked best for me. Your situation may vary!</p><h3>Getting Started</h3><p>If you don’t have a proper RTSP video stream ready before you begin development, you can check out this article <a href="https://g33ktricks.blogspot.com/p/the-rtsp-real-time-streaming-protocol.html">here</a> which has good amount of video links to use as placeholders in your project. For my examples, I will be using rtsp://rtsp/stream/pattern. This example RTSP just shows some simple SMPTE color bars, text, visual noise, and a repeating tone.</p><figure><img alt="Screengrab from rtsp://rtsp/stream/pattern" src="https://cdn-images-1.medium.com/max/802/1*GKq7ZSkh2BBi_7zsxeliiw.png" /><figcaption>Screengrab from rtsp://rtsp/stream/pattern</figcaption></figure><p>Opening the link in the browser is not enough to view the stream, but if you have <a href="https://www.videolan.org/vlc/">VLC</a> installed, you should be able to view it by going “<em>File &gt; Open Network”</em> and pasting the RTSP URL into the box and clicking “<em>Open</em>.” If you cannot view this example and you do not have an example of your own, I suggest you scour the internet for an alternative. This guide won’t be very useful without an RTSP feed!</p><p>After we’ve confirmed that we can see the example stream, we’ll work on setting up our web app. You may already have a React app that you’re working on for an existing project, so feel free to use that instead, but for this tutorial will stand up a small example app. The same concepts can be applied to Vue, Angular, or Svelte as well, but you will need to figure out a few things on your own.</p><h3>Creating our example React app</h3><p>We’re going to be using Vite for our React app build tooling. Let’s create a new project by running npm create vite@latest, going through the wizard, and choosing “react-ts” when prompted. Run npm install in the directory shown in order to install dependencies and then run npm run dev to spin up the development server.</p><figure><img alt="Your app should look something like this now." src="https://cdn-images-1.medium.com/max/1024/0*I4-giH94cjhlJPxf" /><figcaption>Your app should look something like this now.</figcaption></figure><p>Now, dive into the App.tsx file and clear mostly everything out.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9586bdb5f0c28e0e6d1c7a73711ff924/href">https://medium.com/media/9586bdb5f0c28e0e6d1c7a73711ff924/href</a></iframe><p>This gives us a simple playground where we can start iterating on our code.</p><h3>Starting RTSPtoWeb</h3><p>Now that we have an <em>incredibly</em> simple web app, we can begin setting up our RTSP conversion service. For this, we will be leveraging <a href="https://github.com/deepch/RTSPtoWeb">RTSPtoWeb</a>. RTSPtoWeb is a Golang-based service which converts RTSP streams to a browser-friendly format.</p><p>Lets start by cloning the RTSPtoWeb project by running the following commands:</p><pre>git clone <a href="https://github.com/deepch/RTSPtoWeb">https://github.com/deepch/RTSPtoWeb</a><br>cd RTSPtoWeb</pre><p>RTSPtoWeb requires a config.json file to be defined and configured before runtime in order to understand where your RTSP videos are. After cloning the repo, we can edit the config.json that they’ve provided by running vim config.json inside of the RTSPtoWeb folder. We can leave most of the fields as they are, but we’re going to update the “streams” item to have the following information:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/388f8e31618882409ef9a2e8fff48587/href">https://medium.com/media/388f8e31618882409ef9a2e8fff48587/href</a></iframe><p>If you’re following along with the Git repo, I’ve included the full <a href="https://github.com/juliarvalenti/rtsp-react/blob/main/rtsp-to-web-config.json">config.json here</a>. Let’s note a few things about this configuration:</p><ol><li>That we’ve defined a stream titled <strong>“pattern”</strong></li><li>Within that stream we have defined a <strong>channel 0</strong> containing the URL of our example RTSP stream.</li></ol><p>Keep this structure in mind, because we’ll be using it later to help us understand what URL to access when we want to define our video src in our web app.</p><p>Now that we’ve updated the config.json, all that’s left to do is to start the RTSPtoWeb service by running the following command:</p><pre>GO111MODULE=on go run *.go</pre><p>You may receive a network notifications request during this stage, but just allow it to proceed. We can now confirm that the service is running by visiting <a href="http://localhost:8083/">localhost:8083</a> in our browser. If your dashboard looks like the image below, then you should be in the clear!</p><figure><img alt="RTSPtoWeb Dashboard" src="https://cdn-images-1.medium.com/max/915/0*Pn9zw2xKQd656DEZ" /><figcaption>RTSPtoWeb Dashboard</figcaption></figure><p>Within this dashboard we can see a few of the different formats that RTSPtoWeb can convert our stream: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API">MSE</a>, <a href="https://en.wikipedia.org/wiki/HTTP_Live_Streaming">HLS</a>, and <a href="https://webrtc.org/">WebRTC</a>. For our use, we will be leveraging the HLS stream. Confirm that your HLS stream loads properly by clicking on the HLS button. You should see the following image confirming that the video is being appropriately converted by RTSPtoWeb.</p><figure><img alt="“pattern” RTSP -&gt; hls video feed" src="https://cdn-images-1.medium.com/max/1024/0*46zxqeCXAHVy8O7Q" /><figcaption>“pattern” RTSP -&gt; hls video feed</figcaption></figure><p>Under the hood, the HLS video format consists of two key parts:</p><ol><li>An .m3u8 playlist digest file which defines the references to the segments of the video</li><li>A series of .ts files which contain the individual video segments (note that .ts does <strong>not </strong>stand for “TypeScript” here 🙂)</li></ol><p>The src for our video will be this .m3u8 file.</p><h3>Integrating VideoJS</h3><p>In order to bring our HLS video into the browser, we need to add a new library to our front-end. Let’s stop our Vite React server with cmd+c, install the necessary package, and start the server again with the following commands:</p><pre>npm install --save-dev video.js @types/video.js<br>npm run dev</pre><p>In order to set up video.js in an app, we will need to define a special component to handle the video feed. Lets start by creating a new file named VideoFeed.tsx. For this component, we will be using the <a href="https://docs.videojs.com/tutorial-react.html">Video.js React tutorial documentation</a> to build out our component. I’ll provide the snippet below, but if any of it is confusing, I recommend checking out that tutorial for more information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec90df07fa370b9fff011e3b03dbdd4b/href">https://medium.com/media/ec90df07fa370b9fff011e3b03dbdd4b/href</a></iframe><h3>Bringing it all together now…</h3><p>Now that we have our VideoFeed component set up, we can integrate our stream into it. Remember from our previous setup that we defined our stream as being named “pattern” and our channel as “0”? In order to access the appropriate m3u8 file, we’re going to need to formulate the correct URL. The format is <a href="http://localhost:8083/stream/%7Bstream_name%7D">http://localhost:8083/stream/{stream_name}</a>/channel/{channel_name}/hls/live/index.m3u8 . Let’s replace stream_name with “pattern” and channel_name with “0”. This makes our final URL <a href="http://localhost:8083/stream/pattern/channel/0/hls/live/index.m3u8.">http://localhost:8083/stream/pattern/channel/0/hls/live/index.m3u8.</a></p><p>Let’s add our VideoFeed component into our main App.tsx file with the correct src.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b92c92a6c21051db301ded76f63e15c5/href">https://medium.com/media/b92c92a6c21051db301ded76f63e15c5/href</a></iframe><p>Now when we refresh our page, we should be able to see our RTSP feed appropriately in our web browser!</p><figure><img alt="Hello world! with RTSP feed below" src="https://cdn-images-1.medium.com/max/343/1*Wus5y9pIdm0qWAZ35e27xQ.png" /><figcaption>Hello world!</figcaption></figure><h3>Conclusion</h3><p>RTSP is a pain in the butt, but it doesn’t have to be so difficult with these wonderful open source projects. Like I said before, there are a few ways around this problem. If this method didn’t work for you, then I highly recommend checking out <a href="https://dev.to/tejasvi2/rtsp-stream-to-web-browser-using-ffmpeg-1cb">this article detailing a similar approach with FFMPEG</a>, this project called <a href="https://github.com/aler9/rtsp-simple-server">rtsp-simple-server</a>, or <a href="https://stackoverflow.com/questions/32708716/embed-rtsp-video-stream-on-html-website">this method using VLC</a>.</p><p>If you just want to check out the finished code from this article, check out the code repository <a href="https://github.com/juliarvalenti/rtsp-react">here</a>. Follow the instructions in the <a href="https://github.com/juliarvalenti/rtsp-react/blob/main/README.md">README</a> and you should be good to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7957e591075" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cisco-fpie/how-to-render-rtsp-streams-within-a-react-app-e7957e591075">How to Render RTSP Streams within a React App</a> was originally published in <a href="https://medium.com/cisco-fpie">cisco-fpie</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why OpenMetadata is taking the right approach to metadata cataloging]]></title>
            <link>https://medium.com/cisco-fpie/why-openmetadata-is-taking-the-right-approach-to-metadata-cataloging-964187c331fd?source=rss-45909941d6c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/964187c331fd</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[metadata-management]]></category>
            <dc:creator><![CDATA[Julia Valenti]]></dc:creator>
            <pubDate>Thu, 21 Oct 2021 14:36:37 GMT</pubDate>
            <atom:updated>2021-10-21T14:36:37.949Z</atom:updated>
            <content:encoded><![CDATA[<p>For at least the past decade, companies have wanted to label themselves as <em>data-driven</em>, <em>machine-learning-empowered</em>, and <em>fully data compliant</em>, but the path to get there has been rocky. Organizations face a whole host of roadblocks which make it difficult for AI/ML engineers and analysts to get their hands on important data. Things like poor discoverability, fragile Extract-Transform-Load (ETL) pipelines, and Personally Identifiable Information (PII) regulations can stand in the way .</p><h3><strong>Enter the data mesh concept.</strong></h3><p>The concept of <a href="https://martinfowler.com/articles/data-mesh-principles.html">data mesh</a> is quickly becoming an absolutely massive part of the current tech <em>zeitgeist</em>.</p><p>In some ways, it represents the <em>utopian data stack </em>where all data is perfectly cataloged and documented… <br>…where data domains are separated and managed by experts who know the data inside and out… <br>…where data quality issues are spotted and remediated within minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*C0wc8VFoF1jsjHNRUqje3g.gif" /></figure><p>It is a beautiful thing to imagine, but it is a <strong>ton</strong> of work to actually achieve. Companies all over the world are putting forth massive efforts to develop their own internal data mesh systems that work for their own individual use-cases.</p><h3>Data Cataloging</h3><p>One of the core components of a functional data mesh is having a centralized and indexed metadata catalog. A metadata catalog serves as a repository for knowledge of the data within the mesh. It can help analysts answer important questions about the data such as:</p><blockquote>Where is the database that contains our online order information?<br>What is the meaning of this very obscure looking column name?<br>What is the quality of this data? Is this data fresh or stale?</blockquote><p>Not only are these catalogs important for analysts, but they also serve as an important resource to manage regulation compliance. They provide tooling to allow data engineers to tag data sources that signify that they could contain PII or other sensitive information, giving them visibility into what resources are safe to share, and what resources aren’t.</p><p>There are a handful of projects that are already doing great open-source work in this space. The Linux Foundation has been working on their <a href="https://egeria-project.org/">Egeria</a> project for quite some time. WeWork open-sourced their <a href="https://marquezproject.github.io/marquez/">Marquez project</a>. Lyft <a href="https://eng.lyft.com/open-sourcing-amundsen-a-data-discovery-and-metadata-platform-2282bb436234">open-sourced</a> their <a href="https://www.amundsen.io/">Amundsen project</a> in 2019. LinkedIn <a href="https://engineering.linkedin.com/blog/2019/data-hub">open-sourced</a> their <a href="https://datahubproject.io/">DataHub project</a> in 2020. Now <a href="https://www.linkedin.com/in/sureshsri/">Suresh Srinivas</a> (ex-HortonWorks, ex-Uber), <a href="https://www.linkedin.com/in/sriharsha/">Sriharsha Chintalapani</a>, and their team are taking a unique approach to the <a href="https://blog.open-metadata.org/announcing-openmetadata-20399b816e60">metadata catalog concept</a> with their <a href="https://open-metadata.org/">OpenMetadata</a> project.</p><h3>Do you even Metadata?</h3><p>When dealing with metadata, you often have two concepts that you have to juggle simultaneously:</p><ol><li><a href="https://docs.open-metadata.org/openmetadata-apis/schemas">Schema Information</a> — the rules for developers to tell them how to integrate data with cross-platform services</li><li><a href="https://docs.open-metadata.org/openmetadata-apis/schemas/types/taglabel">Data tagging</a> — flexible metadata chunks which can be used to categorize, filter, and search for data</li></ol><p>Both of these concepts deal with the description of data, but there is an important distinction: schema information often exists to be coupled with outside services and needs to be appropriately communicated in developer-land.</p><p>If someone changes the description of a table or column, it usually doesn’t lead to anything terrible. Maybe a developer gets confused by how something works — not a catastrophic problem. However, if someone changes a type of a column or removes it entirely, it could have drastic effects for the quality of downstream data products and pipelines.</p><p>OpenMetadata is unique in the fact that it takes a <a href="http://json-schema.org/">JSON-schema</a> first approach to metadata.</p><h3>JSON-Schema focused workflow</h3><figure><img alt="The OpenMetadata logo" src="https://cdn-images-1.medium.com/max/226/1*9_QWIr3bhT-Hf-W4KiG8eg.jpeg" /></figure><p>In order to provide the best developer experience, OpenMetadata heavily leverages JSON-schemas for their schema metadata. All modern languages can deserialize JSON into their own data structures, so leveraging JSON as the core schema structure is a no-brainer.</p><p>OpenMetadata encourages developers to fetch these schemas off of the web and incorporate the schemas as typings in their own applications. By serving as a centralized schema store, OpenMetadata can help your team ensure that changes in complex data pipelines and integrations are quickly identified and acted upon. This positions OpenMetadata as the single source-of-truth for schema metadata.</p><figure><img alt="A code block which shows an example JSON-schema for a user." src="https://cdn-images-1.medium.com/max/630/1*QckPIABqRzTyJWJrOLjlBA.png" /><figcaption>A look into an example of what an OpenMetadata JSON user schema contains.</figcaption></figure><h3>APIs, APIs, APIs</h3><p>OpenMetadata is built from the ground up to be powered by SAML-protected <a href="https://sandbox.open-metadata.org/docs">REST APIs</a>. This means that it is easy to build bots, integrations, and automation workflows which query and manipulate the metadata store.</p><p><em>Want to </em><a href="https://sandbox.open-metadata.org/docs#operation/list_4"><em>fetch a list of tables</em></a><em> for a Slack bot?</em> There’s an API for that.<br><em>Want to </em><a href="https://sandbox.open-metadata.org/docs#operation/createOrUpdate_3"><em>automagically apply a tag to a database after some event</em></a><em>?</em> We’ve got you covered.<br>Want to <a href="https://sandbox.open-metadata.org/docs#tag/dashboards">check the metadata for a Superset dashboard</a> via your terminal? Just cURL it!</p><p>It goes without saying that APIs provide an immense amount of flexibility when coming up with powerful workflows. The great documentation provided by the OpenMetadata team is helpful when it comes time for your team to build integrations that rely on metadata.</p><h3>Lineage</h3><p>Where I could see OpenMetadata improving is moving towards developing more features aimed at <a href="https://en.wikipedia.org/wiki/Data_lineage">data lineage</a>. We’re seeing a lot of awesome lineage work being done by <a href="https://openlineage.io/">OpenLineage</a> and <a href="https://datahubproject.io/docs/metadata-ingestion/#lineage-with-airflow">DataHub</a>.</p><p>OpenMetadata has their own lineage functionalities planned in v0.5 so it’s worth keeping an eye on how they decide to implement it, but I hypothesize that lineage will start to be more and more important as internal data meshes continue to grow in complexity.</p><p>While it’s not yet as feature rich as Amundsen or DataHub, I am impressed with how OpenMetadata is taking a developer-friendly approach to the metadata store. Ultimately, a lot of the work done in this space is done between engineers and analysts, so facilitating and improving communication there has the ability to boost productivity, simplify debugging, and generally smooth out the integration and adoption process.</p><p>Although OpenMetadata is practically still in its infancy, it shows an great amount of promise. I am very excited to see where Suresh, Sriharsha and the rest of the team take this project in the future.</p><p>If you and your team are looking for a metadata platform, I strongly recommend giving <a href="https://open-metadata.org/">OpenMetadata</a> a shot. You can check out the <a href="http://sandbox.open-metadata.org/">sandbox environment</a> here, attend a <a href="https://www.meetup.com/openmetadata-meetup-group/">weekly meeting</a>, chat them up on the OpenMetadata <a href="https://slack.open-metadata.org/">Slack</a>, or even contribute to the code on the <a href="https://github.com/open-metadata/OpenMetadata">GitHub</a> page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=964187c331fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cisco-fpie/why-openmetadata-is-taking-the-right-approach-to-metadata-cataloging-964187c331fd">Why OpenMetadata is taking the right approach to metadata cataloging</a> was originally published in <a href="https://medium.com/cisco-fpie">cisco-fpie</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>