<div dir="ltr"><div class="gmail_default" style="font-size:small">Gorge,</div><div class="gmail_default" style="font-size:small">F_atempo is the audio plugin by ffmpeg that is already available in Cinelerra.  <br></div><div class="gmail_default" style="font-size:small">If you have trouble locating it in the Resources Audio Effects folder let us know.</div><div class="gmail_default" style="font-size:small">I checked and it is in the manual too but only the one liner so I will "borrow" your definition (so thanks for that!)</div><div class="gmail_default" style="font-size:small">Still reading the rest of your email to try to understand what you are doing.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">P.S. I like Alvin and the Chipmunks.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 19, 2021 at 8:38 AM gorge rankin via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">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>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>