Bug 445720 - audio damaged for one/two syllables after beginning
Summary: audio damaged for one/two syllables after beginning
Status: CONFIRMED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: 21.08.3
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-18 20:38 UTC by Eckard Gerlach
Modified: 2022-09-23 15:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eckard Gerlach 2021-11-18 20:38:22 UTC
SUMMARY
***

***


STEPS TO REPRODUCE
1. place a wav audio of audacity in timeline
2. render video
3. listen to begining of Video : after 1 second on/two syllables are destroyed. can't be understand. Video seem to be damaged, 

not reproduceable. Sometimes happens at start of video, sometimes in the middle. But always when new wav audio starts

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
My workaround at the moment: If error at the beginning of video I add some audio stuff , then render video, then cut video  with avidemux at beginning.  But I've no workaround when error occurs  in the middle of video!!!  I would have to cut video in to pieces, then substitute audio at beginning at part 2, then cut , then merge video together! What a huge overhead! :(
Comment 1 Liam Dawe 2022-03-16 20:08:19 UTC
I'm damn sure this is the problem I have been having.

Add video clips, record voice over in Audacity, add voice over clip and Kdenlive adds a random stutter/crack to the audio that is not in the source files. It makes it quite unusable and forced me to learn another video editor to get around it until it's fixed.
Comment 2 emohr 2022-03-20 17:04:01 UTC
Thank you for reporting. Does this happen with the official package as well (AppImage, Flatpak)?
Comment 3 Liam Dawe 2022-03-20 18:56:06 UTC
For me it happens with all packages.
Comment 4 emohr 2022-03-20 19:09:37 UTC
Can you try the following: Save the file in Audacity as 16-bit PCM WAV. Import this file into Kdenlive. Do you have still crackling?
Comment 5 Liam Dawe 2022-03-20 19:19:39 UTC
Okay same audio file in the same project, one being the suggested 16-bit PCM and I can confirm at least in this case, that newer file does not have the random crack in the audio. Would need plenty more testing though ofc but that's a good sign.
Comment 6 Liam Dawe 2022-04-08 15:54:15 UTC
Just to confirm, the suggestion of exporting Audacity to 16-bit PCM WAV seems to entirely solved it. I've done lots of videos with it recently, and no issue when doing that. So hopefully that does point you towards the issue with the mp3 files.
Comment 7 done 2022-09-22 16:43:39 UTC
A 24 bit PCM wav file (exported from audacity) causes clicks/pops/crackling near the beginning of the clip in the rendered project.

kdenlive 22.08.1, Ubuntu 22.04.1 LTS, imac mid 2010

Preview play in kdenlive is clean.  
I tried rendering with several of the Lossless and Generic presets.  No change.

The issue is reproducible in an empty project with a single, short, 24bit audio clip that is cropped, placed in a track, faded in and out, and rendered. The artifacts can be heard at the end of the fade-in.  

Exporting 16bit PCM wav files from audacity resolved the issue. 

Web searches with keywords: kdenlive and: clicks, pops, crackling, noise, etc... did not produce any insights. I finally found a comment on a youtube video suggesting the 16bit fix. 

If possible, please add a note to the manual/wiki/help recommending 16bit wav audio and pointing to open bugs. 

Thanks!
Comment 8 emohr 2022-09-23 15:42:57 UTC
Thanks for testing!
It’s already there: https://docs.kdenlive.org/de/troubleshooting/windows_issues.html#audio-pops-and-ticks-in-render. But we have to fix this bug.