[Cin] Any chance of adding FFMPeg's 'atempo' filter ?
Phyllis Smith
phylsmith2017 at gmail.com
Sat Jun 19 18:34:10 CEST 2021
Gorge,
F_atempo is the audio plugin by ffmpeg that is already available in
Cinelerra.
If you have trouble locating it in the Resources Audio Effects folder let
us know.
I checked and it is in the manual too but only the one liner so I will
"borrow" your definition (so thanks for that!)
Still reading the rest of your email to try to understand what you are
doing.
P.S. I like Alvin and the Chipmunks.
On Sat, Jun 19, 2021 at 8:38 AM gorge rankin via Cin <
cin at lists.cinelerra-gg.org> wrote:
> I'm still learning Cin, so if this filter is already in place, then I
> apologize.
>
> FFMpeg has a nice audio "filter" called "atempo".
>
> https://ffmpeg.org/ffmpeg-filters.html#atempo
>
> This filter is already in other projects, such as Kdenlive and Shotcut.
>
> What it does is, you can speed up audio, and will adjust the pitch so that
> the audio sounds more normal, but faster.
>
> It does not sound like "Alvin and the Chipmunks" :)
>
> This behavior can be seen when you watch a YT video, click the gear icon,
> and select a speed greater or less than 1.
>
> I'm attaching the FFMpeg sample code that I had modified/played with years
> ago when I was learning it.
>
> 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.
>
> My Qt pro file has this:
>
> TEMPLATE = app
>
> CONFIG += console c++11
>
> CONFIG -= app_bundle
>
> CONFIG -= qt
>
>
> SOURCES += main.cpp
>
> LIBS += -lavcodec -lavformat -lavutil -lswresample -lasound -lavfilter -lasound
>
>
> I put an Option 1 and Option 2 in the main.cpp file.
>
>
> Option 1 simple writes your infile - no modifications to out.raw.
>
> Option 2 applies the atempo filter.
>
>
> So comment and rebuild accordingly. It should only take 2 seconds or so to compile.
>
>
> I'm hoping, that perhaps someday, I can simply drop an effect onto my timeline so that I can
>
> speed up video/audio in one go and have nicer sounding audio for my needs.
>
>
> Thank you in advance for your consideration.
>
>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210619/59537482/attachment.htm>
More information about the Cin
mailing list