<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mou</title>
    <description>The latest articles on Forem by Mou (@mkassimi98).</description>
    <link>https://forem.com/mkassimi98</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3853559%2F432908d9-4c38-4e4a-8898-911093bf1161.jpeg</url>
      <title>Forem: Mou</title>
      <link>https://forem.com/mkassimi98</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mkassimi98"/>
    <language>en</language>
    <item>
      <title>I open-sourced a GStreamer plugin suite for KLV metadata workflows</title>
      <dc:creator>Mou</dc:creator>
      <pubDate>Tue, 31 Mar 2026 13:43:21 +0000</pubDate>
      <link>https://forem.com/mkassimi98/i-open-sourced-a-gstreamer-plugin-suite-for-klv-metadata-workflows-1204</link>
      <guid>https://forem.com/mkassimi98/i-open-sourced-a-gstreamer-plugin-suite-for-klv-metadata-workflows-1204</guid>
      <description>&lt;h1&gt;
  
  
  I open-sourced a GStreamer plugin suite for KLV metadata workflows
&lt;/h1&gt;

&lt;p&gt;I recently open-sourced a GStreamer plugin suite for practical KLV metadata workflows in MPEG-TS pipelines:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/mkassimi98/gstklvplugin" rel="noopener noreferrer"&gt;https://github.com/mkassimi98/gstklvplugin&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Below is a screenshot of the plugin suite in action:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k958ouaq2oodp4rqb6s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k958ouaq2oodp4rqb6s.png" alt=" " width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is aimed at real metadata transport workflows where KLV is not handled as an isolated payload, but as part of a complete pipeline involving generation, decoding, synchronization with video, and MPEG-TS signaling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the project includes
&lt;/h2&gt;

&lt;p&gt;The current plugin suite provides four main elements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;klvmetaenc&lt;/code&gt;: converts JSON into &lt;code&gt;meta/x-klv&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;klvmetadec&lt;/code&gt;: converts &lt;code&gt;meta/x-klv&lt;/code&gt; back into JSON&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;klvframeinject&lt;/code&gt;: injects KLV metadata in sync with H.264 / H.265 video frames&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tspmtrewrite&lt;/code&gt;: rewrites MPEG-TS PMT tables for KLVA metadata signaling&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical scope
&lt;/h2&gt;

&lt;p&gt;The implementation is oriented to workflows related to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SMPTE ST 336 KLV&lt;/li&gt;
&lt;li&gt;MISB ST 0601.8 UAS Datalink Local Set&lt;/li&gt;
&lt;li&gt;STANAG 4609 style transport pipelines&lt;/li&gt;
&lt;li&gt;MPEG-TS metadata signaling aligned with MISB ST 1402 workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;In many practical systems, metadata handling does not stop at parsing or serializing a payload. It also needs to be transported correctly, synchronized with video, and integrated in a way that is usable in real pipelines.&lt;/p&gt;

&lt;p&gt;The goal of this project was to provide a modular GStreamer-oriented solution that covers that full path, from metadata generation and decoding to frame-synchronous injection and transport-stream signaling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tooling and repository contents
&lt;/h2&gt;

&lt;p&gt;The repository includes more than just the plugin implementation. It also provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Meson as the recommended build system&lt;/li&gt;
&lt;li&gt;CMake support as an alternative build path&lt;/li&gt;
&lt;li&gt;Python and C++ examples&lt;/li&gt;
&lt;li&gt;local roundtrip examples&lt;/li&gt;
&lt;li&gt;UDP and SRT workflow examples&lt;/li&gt;
&lt;li&gt;automated tests&lt;/li&gt;
&lt;li&gt;Docker support&lt;/li&gt;
&lt;li&gt;installation and packaging documentation&lt;/li&gt;
&lt;li&gt;design notes and implementation details&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Current elements
&lt;/h2&gt;

&lt;p&gt;The currently available elements are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;klvmetaenc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;klvmetadec&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;klvframeinject&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tspmtrewrite&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Typical use cases
&lt;/h2&gt;

&lt;p&gt;This plugin suite can be useful in scenarios such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;video pipelines carrying synchronized metadata&lt;/li&gt;
&lt;li&gt;MPEG-TS workflows requiring embedded KLV&lt;/li&gt;
&lt;li&gt;ISR/UAS style metadata transport&lt;/li&gt;
&lt;li&gt;experimentation with GStreamer metadata integration&lt;/li&gt;
&lt;li&gt;interoperability testing with downstream systems and external analyzers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Open-source repository
&lt;/h2&gt;

&lt;p&gt;You can find the project here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mkassimi98/gstklvplugin" rel="noopener noreferrer"&gt;https://github.com/mkassimi98/gstklvplugin&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also shared a short overview on LinkedIn:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/posts/mouhsine-kassimi-farhaoui-983738163_opensource-gstreamer-klv-activity-7441931945174978560-mxpJ" rel="noopener noreferrer"&gt;https://www.linkedin.com/posts/mouhsine-kassimi-farhaoui-983738163_opensource-gstreamer-klv-activity-7441931945174978560-mxpJ&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback welcome
&lt;/h2&gt;

&lt;p&gt;Feedback is very welcome, especially regarding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;element and API design&lt;/li&gt;
&lt;li&gt;caps and negotiation choices&lt;/li&gt;
&lt;li&gt;MPEG-TS metadata signaling approach&lt;/li&gt;
&lt;li&gt;interoperability expectations&lt;/li&gt;
&lt;li&gt;general improvements for robustness and maintainability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are working on GStreamer, KLV, MPEG-TS, or metadata transport workflows, I would be glad to hear your thoughts.&lt;/p&gt;

</description>
      <category>gstreamer</category>
      <category>stanag4609</category>
      <category>opensource</category>
      <category>c</category>
    </item>
  </channel>
</rss>
