<div dir="ltr">I'm still learning Cin, so if this filter is already in place, then I apologize.<div><br></div><div>FFMpeg has a nice audio "filter" called "atempo".</div><div><br></div><div><a href="https://ffmpeg.org/ffmpeg-filters.html#atempo">https://ffmpeg.org/ffmpeg-filters.html#atempo</a><br></div><div><br></div><div>This filter is already in other projects, such as Kdenlive and Shotcut.</div><div><br></div><div>What it does is, you can speed up audio, and will adjust the pitch so that the audio sounds more normal, but faster.</div><div><br></div><div>It does not sound like "Alvin and the Chipmunks" :)</div><div><br></div><div>This behavior can be seen when you watch a YT video, click the gear icon, and select a speed greater or less than 1.</div><div><br></div><div>I'm attaching the FFMpeg sample code that I had modified/played with years ago when I was learning it.</div><div><br></div><div>I 'tweaked' it today, so it will compile in Ubuntu 21.04 using a c++ compiler. I used Qt. There's depreciation warnings and this certainly isn't production code. But it should help others to grasp the concepts to implement it.</div><div><br></div><div>My Qt pro file has this:</div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">TEMPLATE</span><span style="color:rgb(190,192,194)"> </span>=<span style="color:rgb(190,192,194)"> </span>app</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">CONFIG</span><span style="color:rgb(190,192,194)"> </span>+=<span style="color:rgb(190,192,194)"> </span>console<span style="color:rgb(190,192,194)"> </span>c++11</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">CONFIG</span><span style="color:rgb(190,192,194)"> </span>-=<span style="color:rgb(190,192,194)"> </span>app_bundle</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">CONFIG</span><span style="color:rgb(190,192,194)"> </span>-=<span style="color:rgb(190,192,194)"> </span>qt</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">SOURCES</span><span style="color:rgb(190,192,194)"> </span>+=<span style="color:rgb(190,192,194)"> </span>main.cpp</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(255,128,128)">LIBS</span><span style="color:rgb(190,192,194)"> </span>+=<span style="color:rgb(190,192,194)"> </span>-lavcodec<span style="color:rgb(190,192,194)"> </span>-lavformat<span style="color:rgb(190,192,194)"> </span>-lavutil<span style="color:rgb(190,192,194)"> </span>-lswresample<span style="color:rgb(190,192,194)"> </span>-lasound<span style="color:rgb(190,192,194)"> </span>-lavfilter<span style="color:rgb(190,192,194)"> </span>-lasound</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">I put an Option 1 and Option 2 in the main.cpp file.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Option 1 simple writes your infile - no modifications to out.raw.</pre><pre style="margin-top:0px;margin-bottom:0px">Option 2 applies the atempo filter.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">So comment and rebuild accordingly. It should only take 2 seconds or so to compile.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">I'm hoping, that perhaps someday, I can simply drop an effect onto my timeline so that I can</pre><pre style="margin-top:0px;margin-bottom:0px">speed up video/audio in one go and have nicer sounding audio for my needs.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Thank you in advance for your consideration.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre></div></div>