Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio popping & crackling in exported video with overlaid audio tracks. #1069

Open
supercarl620 opened this issue Nov 25, 2017 · 54 comments

Comments

@supercarl620
Copy link

commented Nov 25, 2017

Windows XP
Openshot version 2.4.1

I made a video of a motorcycle race that I'm trying to overlay an audio file on of race commentary. I have it all setup in openshot and it previews fine. However when I try to export the video, the audio gets really terrible whenever there are two audio tracks overlaid on top of each other. for instance, at the start of the video when there is just the commentating audio track, it sounds great. But when the race starts and there is commentating audio on top of the race audio of the bikes, it starts popping and cracking really bad. The audio is all distorted. I've tried to export the video in different formats to no success. At first the exported video had no sound at all, but I fixed that by changing the audio codec from ac3 to aac. but both codecs deliver the same terrible audio popping/cracking. can anyone help please??

@basklein

This comment has been minimized.

Copy link

commented Nov 26, 2017

I'm having the exact same issue on Windows 7, Openshot version 2.4.1 and version 2.4.0 before that.

@osve001

This comment has been minimized.

Copy link

commented Jan 9, 2018

Windows 7
Openshot 2.4.1

I'm afraid I'm suffering the same problem. The video recording is perfect (no crackling at all). No other audio track but the one in the original video (video game recording with comments on the go from Android tablet). When playing back the project, the sound crackles and, what's worse, the crackling remains in the exported video. I think that the problem begins when importing the video.
Any ideas? Thanks in advance.

@supercarl620

This comment has been minimized.

Copy link
Author

commented Jan 9, 2018

@osve001

This comment has been minimized.

Copy link

commented Jan 9, 2018

I've tried Windows 10 and Ubuntu 16.04. The same problem. Then, I extracted the audio (soundtrack) from the video (that's to convert it to mp3) and added it to the Openshot project. I muted the video and ... It works fine, the audio is perfect (no crackling, as in the original recording).
So my conclusion is that there could be a problem with the audio when importing the video.
I hope this helps.
Thank you.

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Jan 15, 2018

@supercarl620 - Does the popping happen in the latest daily build? I think a fix was added for audio popping.

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Jan 15, 2018

@supercarl620 - Oh I just saw this was as a result of the volume levels.

@cptX

This comment has been minimized.

Copy link

commented Feb 22, 2018

I can verify that this issue is still present in the following configuration:

i7 6700k 32GB RAM
Linux Mint 18.3
OpenShot Version: 2.4.1-dev1

Cracking is audible both in playback inside the program and in the exported file.
Volume value has no effect on the result (tried values from 0,5 to 4)

@peanutbutterandcrackers

This comment has been minimized.

Copy link
Collaborator

commented Feb 25, 2018

A Linux user also having an issue with OpenShot. We are in deep waters here...

Perhaps I should also try to see if I can recreate this...

@cptX

This comment has been minimized.

Copy link

commented Mar 1, 2018

Update: I used another Camera which probably encodes differently and I didn't notice any cracks this time... Looks like cracks depend on the format. Or is something like buffer dependent in the program ...

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Mar 1, 2018

@cptX - Do you have details on the video format that does cause the cracks?

@cptX

This comment has been minimized.

Copy link

commented Mar 6, 2018

Hi guys, the video format that caused the cracks is:
Video Codec: H264 - MPEG-4 AVC (part 10) , Resolution: 1280x720, Frame rate: 20
Audio Codec: MPEG AAC Audio (mp4a) Stereo, Sample rate: 48000 Hz

It was recorded with a mobile phone but the original video has no cracks. in Openshot cracks are audible both in preview and in extracted video.

@peanutbutterandcrackers

This comment has been minimized.

Copy link
Collaborator

commented Mar 7, 2018

@cptX - There was a recent commit that had something to do with fixing audio pops. So, could you please try out the latest daily build and see if that works, please?

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Mar 23, 2018

@supercarl620 - Can you give a daily build a try? @peanutbutterandcrackers has the link above.

@cptX

This comment has been minimized.

Copy link

commented Apr 2, 2018

Cracks in sound happened again in latest development version in Linux Mint 18.3.
Unfortunately openshot crashed completely and cannot start again, even after a restart (see issue OpenShot/libopenshot#81)

I think the problem started when I shifted the video and the sound from one track to another. The sound started having cracks untill the whole application crashed forever...

Going back to openshot 1, as it is the only stable.

By the way, in the latest dev. version looks like autoaligning of the clips is not working...

@peanutbutterandcrackers

This comment has been minimized.

Copy link
Collaborator

commented Apr 6, 2018

@cptX - could you please follow this guide and attach the logs so that the devs can help you, good sir? Thanks! [And sorry for the inconvenience, too.]

@fabrixx

This comment has been minimized.

Copy link

commented May 11, 2018

Same issue for me in daily build & flatpak version with Arch Linux

@Neubivljiv

This comment has been minimized.

Copy link

commented May 25, 2018

Just to confirm...i have same issue. Audio is crackling every time.
I am using the latest version on W10.

@DylanC DylanC added the bug label May 27, 2018

@synogen

This comment has been minimized.

Copy link

commented Jun 2, 2018

Can confirm this issue, OpenShot 2.4.1 64 Bit on Windows 7 x64.
The audio becomes slightly scratchy in parts as if oversteering the volume, but the only actual audio effect I'm using is a standard slow fadeout for one of the tracks.
Output audio codec does not seem to matter, and I checked that the input files are fine as well, My guess is that it is the way OpenShot mixes several overlaying audio tracks together.

@synogen

This comment has been minimized.

Copy link

commented Jun 2, 2018

As far as I can tell switching to OpenShot-v2.4.2-rc1 from the Daily section of https://www.openshot.org/download/ fixed it for me. I can not hear any more distortion even at higher volumes in the videos reencoded with that version.
Thanks for the hard work devs and sorry for spamming your issue tracker with an unneeded bug report from my side :-).

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Jun 4, 2018

@synogen - Yep, it should be fixed now. Thanks for confirming. @supercarl620 - Can you try the same build for us too?

@fabrixx

This comment has been minimized.

Copy link

commented Jun 4, 2018

OpenShot-v2.4.2-rc1: from a continous popping sound now i have low level popping only for 4_5 seconds rapidly decreasing and finally fixed preview and usability on Linux.

@peanutbutterandcrackers

This comment has been minimized.

Copy link
Collaborator

commented Jun 5, 2018

@fabrixx - Awesome! The code/formula used to remove the pops is still quite simple (according to the commit message); perhaps a new formula would soon be found that will fix this completely, soon. 👍

@steinybot

This comment has been minimized.

Copy link

commented Jun 21, 2018

Just tried 2.4.2 RC5 on Windows 10 and the cracking has gone! ... but now it crashes when fading out one audio clip and into the next on the same track.

@steinybot

This comment has been minimized.

Copy link

commented Jun 23, 2018

It actually hasn't gone completely. There are still cases where there is a single "pop" just after going from one video to the next. Both video clips have audio set to 0 and the only coming from the separate audio track.

@steinybot

This comment has been minimized.

Copy link

commented Jun 24, 2018

@peanutbutterandcrackers can you please point me to the commit that fixed this? I may take a look to see if I can improve it.

@peanutbutterandcrackers

This comment has been minimized.

Copy link
Collaborator

commented Jun 24, 2018

@steinybot - Here is the latest commit with regards to this issue. It does need some more polishing up. Perhaps some new mathematical formulae? This was the first attempt, that I am aware of, to deal with this sort of issue. Glad you're going to help out! Welcome to the team, good sir! And all the very best!

@Grayswandir

This comment has been minimized.

Copy link

commented Aug 5, 2018

Hello, I have the same issue, few crackling sound only when audio track is mixe with audio from a clip video. Not all the video, but only when you have the two audio source activated.
Openshot version: appimage (linux/debian/64bits), 2.4.2 (should I test the daily version?)
Audio track: Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 143 kb/s
Audio video (gopro): Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
++

@DylanC

This comment has been minimized.

Copy link
Collaborator

commented Aug 5, 2018

@Grayswandir - I would recommend to try the daily.

@Grayswandir

This comment has been minimized.

Copy link

commented Aug 7, 2018

No, 23.98 fps, but if needed, I can test with different fps.
hd720 for the output.

@supercarl620

This comment has been minimized.

Copy link
Author

commented Aug 7, 2018

@Grayswandir

This comment has been minimized.

Copy link

commented Aug 8, 2018

Ho yes :) Mixed sound is fine now. But sound need to be reduce on the 2 clips. I will test with different lvl, but 50% is fine. Do you have an explanation? Just to understand why it works with 50% and not with 100%.
On debian/openshot 1.4.3 version, mixed sound worked fine.

@supercarl620

This comment has been minimized.

Copy link
Author

commented Aug 8, 2018

@Grayswandir

This comment has been minimized.

Copy link

commented Aug 8, 2018

My tests:
70%|70%: sound is fine
80%|80%: sound is crackling
Ok, so if it's a fix, and as it's not the same behavior than the last version, we will need to add this tips in the user guide :)
thanks for your help ;)

@nigels-com

This comment has been minimized.

Copy link

commented Aug 8, 2018

So 50%/50% is "safe" (never clips) but 70%/70% might be fine, depending on the clips, but you only know if you listen carefully in ideal conditions? (No kids squabbling in the next room at the wrong time)

For three layers of audio we go to 33%/33%/33% to be safe?

@teenagechef

This comment has been minimized.

Copy link

commented Aug 31, 2018

I just started using openshot and loved it at first. Edited my video no problem. Just making a fan video with clips from a show i like. I then tried to export it and i get this weird almost robotic and scratchy sounding audio in several parts both during preview and after exporting. Tried adjusting the volume level on the clips like someone suggested. Still no good. Any suggestions?

@acal

This comment has been minimized.

Copy link

commented Sep 17, 2018

For me this happens even with a single mp4 with it's own audio (not a separate track). It also can be heard in the preview, not just the exported version. The original roll is clean.

@The-Game-Sage

This comment has been minimized.

Copy link

commented Jan 3, 2019

This for me is more like all audio is scrambled and sounds more like someone holding a vacumme hose to your ear and running something along the coils in the hose.

I have windows 10 and using version 2.4.3 Basically I cannot use any sound what so ever. Is there a way to roll back to a version where sound worked?

@The-Game-Sage

This comment has been minimized.

Copy link

commented Jan 11, 2019

I have this issue when after exporting a video, for the next 7 days the sound is nothing but static on all tracks. This is both in preview and the exported product.

@SubsidedLemon

This comment has been minimized.

Copy link

commented Jan 12, 2019

I tried literally everything here in this topic. I tested with this version as mentioned:
https://github.com/OpenShot/openshot-qt/releases/download/daily/OpenShot-v2.4.2-rc1-x86_64.exe

The issue persists. I have zero clue how to fix this.

@brysont

This comment has been minimized.

Copy link

commented Jan 15, 2019

Just adding into this.

Windows 10 Home 64-bit
AMD Ryzen 7 2700X (8 core, 4.00GHz)
32GB DDR5 RAM
NVIDIA GeForce GTX 750 Ti
OpenShot v2.4.3

Videos are 1080p action camera footage, all of which preview with crackling and popping. Actually, had the profile set to 1080p @ 60fps and the audio was skippy, video smooth on preview. Export was pristine. Then I read an old issue on here recommending 720p @ 30fps; audio got less skippy, more crackly, and the video got skippy too in preview. Exporting that last setup right now to YouTube-HD profile ... video came out mostly smooth, but has several spots where the editor introduced choppy and even frozen video (audio is good throughout).

@dadkins1

This comment has been minimized.

Copy link

commented Jan 21, 2019

I had a similar problem where the imported audio would cut out repeatedly in the timeline and exported video. To work around it, I exported the video without audio and then added the output to a new project; the audio sounded fine. (In the new project, I imported the audio first. Not sure it makes a difference, but that's what I did!)

@fabrixx

This comment has been minimized.

Copy link

commented Jan 21, 2019

@dadkins1

This comment has been minimized.

Copy link

commented Jan 21, 2019

@raupes

This comment has been minimized.

Copy link

commented Feb 17, 2019

Any fix or workaround yet?
flac audio files combined with flv video files. just crapy sound given ;(
Version 2.4.3 on Win10

@icekeuter

This comment has been minimized.

Copy link

commented Mar 1, 2019

still have the same problem :( pls fix it finally. i can´t publish videos with that crackle. 👎

@The-Game-Sage

This comment has been minimized.

Copy link

commented Mar 1, 2019

@ReinierPlezier

This comment has been minimized.

Copy link

commented Mar 18, 2019

After reading all suggestions I converted my MP3 music files to AAC format and the cracking in my final videos were gone! Thanks

@Polda18

This comment has been minimized.

Copy link

commented May 19, 2019

I can confirm this issue with OpenShot on Windows 10 64bit, too. It's super annoying and I can't do anything about it, except perhaps decrease the volume of each tracks before exporting in order to avoid crackling of the audio. The issue is that the source videos have quite loud audio (but not loud enough to crackle), but I guess that the export ignores any level beyond 0 dB, so it mutes these portions - that makes crackling sound, because it distorts the exported waveform. Not to mention unbeliveably bad performance of preview playback when there are multiple of tracks and multiple of layers. Makes the editing especially painful.

@JosefJ

This comment has been minimized.

Copy link

commented Jun 12, 2019

Thanks @Polda18 - lowering down volume of the sample to 50% actually helped

@BsdbabdsaBOp

This comment has been minimized.

Copy link

commented Jun 25, 2019

I need help have this issue too. The crackling sound has gotten onto all of my video files on my hard drive.

@ferdnyc

This comment has been minimized.

Copy link
Collaborator

commented Jun 28, 2019

I need help have this issue too. The crackling sound has gotten onto all of my video files on my hard drive.

@BsdbabdsaBOp That sounds like a hardware/driver issue, nothing to do with OpenShot. It doesn't make any changes to any of your existing video files, only the ones you create by using the Export feature.

@sWoifal

This comment has been minimized.

Copy link

commented Aug 29, 2019

Can confirm the problem exists on Ubuntu too (tried on 18.04, 18.10, 19.04) and on different underlying hardware (multiple systems).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.