<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rust on Salt and Pepper</title><link>https://wow2006.github.io/tags/rust/</link><description>Recent content in Rust on Salt and Pepper</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 25 Jul 2026 12:28:10 +0300</lastBuildDate><atom:link href="https://wow2006.github.io/tags/rust/index.xml" rel="self" type="application/rss+xml"/><item><title>Post06: Playing a Video File with GStreamer in C++20 and Rust</title><link>https://wow2006.github.io/posts/gstreamer/post06-playing-a-video-file-with-gstreamer-in-cpp-rust/</link><pubDate>Sat, 25 Jul 2026 12:28:10 +0300</pubDate><guid>https://wow2006.github.io/posts/gstreamer/post06-playing-a-video-file-with-gstreamer-in-cpp-rust/</guid><description>&lt;p>In Post04, we played a video file with a single &lt;code>gst-launch-1.0&lt;/code> pipeline:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>gst-launch-1.0 filesrc location&lt;span style="color:#f92672">=&lt;/span>big_buck_bunny_720p_h264.mov ! decodebin ! videoconvert ! autovideosink
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That one-liner works because &lt;code>gst-launch-1.0&lt;/code> links &lt;code>decodebin&lt;/code>&amp;rsquo;s output for us as soon as it appears. Post05 covered exactly what that output is: a Sometimes pad, created at runtime once &lt;code>decodebin&lt;/code> has identified what&amp;rsquo;s inside the container. Outside of &lt;code>gst-launch-1.0&lt;/code>, nothing links a Sometimes pad automatically — the application has to do it.&lt;/p></description></item></channel></rss>