Bug 428846 - Cannot generate audio spectrum for audio created by Ardour
Summary: Cannot generate audio spectrum for audio created by Ardour
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: 20.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: emohr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-08 15:20 UTC by jeremy+kde
Modified: 2021-03-03 10:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: timeline_corruption+


Attachments
Master effects (3.22 KB, image/png)
2020-12-01 19:26 UTC, emohr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jeremy+kde 2020-11-08 15:20:16 UTC
SUMMARY
I created a song in Ardour and used ffmpeg to add a black background so it could overlay the spectrum. I did this in two different ways, neither worked: 
```
ffmpeg -loop 1 -i black.png -i SpaceMainTheme_r1_session.flac -c:v libx264 -tune stillimage -shortest SpaceMainTheme_r1_session.mp4
```
 and
```
ffmpeg -f lavfi -i color=c=black:s=1920x1080:r=5 -i Games/Ardour/SpaceMainTheme/export/SpaceMainTheme_r1_session.flac -crf 0 -c:a copy -shortest Games/Ardour/SpaceMainTheme_r1_session.mkv
```
When adding in the effect, it would play just fine in the clip monitor, but when put into the timeline, the effect would disappear and an error would pop up saying "Audio Spectrum Filter \n [filter audiospectrum] Audio not preprocessed". I also tried to use group the audio with the image in kdenlive and to transcode the audio to a wav file, neither of which worked.


STEPS TO REPRODUCE
1. Export music/sound from Ardour
2. Add video (doesn't have to be pure black, I also tried with a blender animation) to music/sound by any method
3. Add Audio Spectrum Filter to the clip and place in timeline.

OBSERVED RESULT
Audio Spectrum does not appear. "Audio Spectrum Filter \n [filter audiospectrum] Audio not preprocessed" error pops up. Effect is deleted unless added in while in the timeline (but it still doesn't work).


EXPECTED RESULT
Audio Spectrum should be added to clip as previewed in the clip monitor


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (5.4.74-1-lts) / Not using KDE Plasma
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
The audio spectrum worked just fine for audio from an obs recording.
Comment 1 emohr 2020-11-15 15:42:58 UTC
The effect "audio spectrum Filter" works as master effect only. Click top left on the timeline on "Master". The master effect window gets opened. Drag/drop the effect into that window. Now it should work.
Comment 2 jeremy+kde 2020-11-15 15:57:35 UTC
(In reply to emohr from comment #1)
> The effect "audio spectrum Filter" works as master effect only. Click top
> left on the timeline on "Master". The master effect window gets opened.
> Drag/drop the effect into that window. Now it should work.

That worked. However, I don't think it is that simple, since putting the effect on my obs mkv clip did work in the project. Also, if this is the intended usage of the effect, I could not find anything in the documentation to indicate that the effect only works on the master bus.
Comment 3 emohr 2020-11-15 17:36:00 UTC
Since version 19.04 with splitting video/audio on separate tracks following 4 effects doesn’t work anymore: 
- Audio Spectrum Filer
- Audio Wave
- Dance
- Light Show 

With introducing of the master effect in version 19.12 you could add these 4 effects as master effect. Disadvantage: The effect works global. 

Where that info could be added in the user manual for easy finding?
Comment 4 jeremy+kde 2020-11-16 10:21:35 UTC
I would say under each of the affected effects. When I had trouble with the spectrum effect, I looked on that page and found no mention of this. The page in question for this specific example is https://userbase.kde.org/Kdenlive/Manual/Effects/AnalysisandData/Audio_Spectrum_Filter
Comment 5 Bug Janitor Service 2020-12-01 04:33:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 emohr 2020-12-01 19:26:11 UTC
Created attachment 133783 [details]
Master effects

In the upcoming version 20.12 it has a separate folder for these master effects. 

And yes, the handbook has to be updated.
Comment 7 Julius Künzel 2021-03-03 10:23:51 UTC
This seems to be solved so I am closing this. Feel free to reopen this bug or create a new report if this is still happening with the latest version (https://kdenlive.org/en/download/)