openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

no sound in preview

Open AndreaBorgia-Abo opened this issue 7 months ago • 16 comments

Describe the bug: preview has no sound

Steps to reproduce the behavior:

  1. Open an existing project, where audio was working ok both in preview and final cut
  2. Click on play
  3. See, or rather hear, issue

Expected behavior: Audio plays normally for all tracks where it is enabled

System Details:

  • OpenShot Version 3.3.0
  • Operating System / Distro: Debian (testing)

I am positive that audio was working fine on 3.3.0 before my two weeks holiday and had been working fine even on 3.2.1. The assets all have audio and the final cut has audio, all play normally with mpv. New projects have this issue, too. Starting the preview and then opening the sound applet shows no active stream for openshot. System has been restarted and is up to date.

AndreaBorgia-Abo avatar Apr 27 '25 16:04 AndreaBorgia-Abo

Things to try:

  1. Restart your computer.
  2. If switching between headphones and speakers, ensure that OpenSHot is closed first.
  3. If you let your computer sleep/hybernate, then you this can happen. I don't have a Linux environment to test but I know this happens with Windows (7+).
  4. For your existing project give this a try: a. Close your project and OpenShot. b. Make a backup of /home/username/.openshot_qt folder. c. Ensure that whatever audio output device you are using is already connected to your computer or disconnected and restart computer. d. Start OpenShot, open your project and test.

Colorjet3 avatar Apr 27 '25 19:04 Colorjet3

I have either already tried all these suggestions (deleting settings, restarting, etc.) or they do not apply to my scenario (no hibernation or switching is involved).

mpv, VLC, system notifications, Firefox... All these sound sources work fine.

AndreaBorgia-Abo avatar Apr 27 '25 21:04 AndreaBorgia-Abo

Go to Edit | Preferences | Preview tab and change the "Playback Audio Device" from "Default" to one of the "ALSA: devicename". You may have to try different ones and hopefully one of them will work.

I am not a Linux expert but I recall seeing similar postings by other users and switching to "ALSA:....." device made the audio work.

You will need to restart OpenShot each time you make a change.

Colorjet3 avatar Apr 27 '25 21:04 Colorjet3

Any update @AndreaBorgia-Abo?

Colorjet3 avatar May 01 '25 02:05 Colorjet3

Haven't had time to work on videos, sorry. However I can tell you that I had seen the old suggestions to try and switch device and those didn't help me. Having to restart the program after such a minor change feels wrong and slows down testing quite a bit, you know.

Maybe someone comfortable with Linux can chime in?

It was working with default setup and I shouldn't have to chase whatever device might be needed now, especially since mpv, vlc and firefox all work normally.

AndreaBorgia-Abo avatar May 01 '25 05:05 AndreaBorgia-Abo

Have you tried running the AppImage? Give it a try.

I would delete the /home/username/.openshot_qt folder before running it.

Colorjet3 avatar May 01 '25 13:05 Colorjet3

Have you tried running the AppImage? Give it a try.

I am already using this version.

I would delete the /home/username/.openshot_qt folder before running it.

Already have. Tried the nightly, tried the previous stable. No go.

AndreaBorgia-Abo avatar May 01 '25 15:05 AndreaBorgia-Abo

  1. When you say "I am already using this verion" you mean the AppImage, correct? I am not talking about version number which you already indicated using v3.3.0.
  2. Not sure if you confirmed or not if you are using headphone or recently started using headphones? If you are using headphones, disconnect them, restart your computer and test OpenShot audio.
  3. I really don't know what else to tell you since it was working at one point.

Colorjet3 avatar May 01 '25 18:05 Colorjet3

  1. When you say "I am already using this verion" you mean the AppImage, correct?

Correct, I installed the AppImage version from the very beginning.

2. Not sure if you confirmed or not if you are using headphone or recently started using headphones? 

I have never used headphones.

AndreaBorgia-Abo avatar May 02 '25 07:05 AndreaBorgia-Abo

Thank you @AndreaBorgia-Abo for confirming. I am assigning this to the lead developer to see if he can chime in and see what else can be done. I am running out of ideas.

@jonoomph, please advise on the next steps on this issue.

Colorjet3 avatar May 02 '25 18:05 Colorjet3

Any news? Quite a few updates have come and gone for Debian packages but audio in preview is still missing.

AndreaBorgia-Abo avatar Jun 19 '25 16:06 AndreaBorgia-Abo

Nope. Unless the lead developer looks at this I really don't have any other ideas for you to try. There is a v3.4.0-Release-Candidate that is going through testing right now before it gets published to production, but I am not aware of any fixes for your specific issue.

Feel free to give it a try. You can find it at openshot.org/download/#daily and download the AppImage.

Colorjet3 avatar Jun 19 '25 18:06 Colorjet3

thanks for the tip, indeed it makes no difference at all :(

AndreaBorgia-Abo avatar Jun 20 '25 16:06 AndreaBorgia-Abo

update: friend of mine tested on his system, other than a crash possibly due to an older release he saw this:

Image

On my system there is no entry for OpenShot while the video is playing but the audio is missing.

AndreaBorgia-Abo avatar Jun 23 '25 06:06 AndreaBorgia-Abo

I have finally found the solution: On my laptop, "pactl info" returned "Server name: pulseaudio" and the preview had audio (OpenShot was newly installed for the test). On my desktop, the answer was: "Server Name: PulseAudio (on PipeWire 1.4.2)"

So I disabled PipeWire first: $ sudo systemctl --global disable pipewire.service $ sudo systemctl --global disable wireplumber.service then installed pulseaudio: $ sudo apt install pulseaudio

Started OpenShot again and all was fine. Whether this is a PipeWire bug or simply lack of support, I cannot tell. Hopefully you guys can take it from here.

AndreaBorgia-Abo avatar Jun 28 '25 13:06 AndreaBorgia-Abo

Nice job troubleshooting and finding a solution. Honestly, only the lead developer will be able to decide where the issue lies and if this is a bug in OpenShot or "PipeWire" (I don't know what this is).

Really appreciate you providing the solution so hoepuflly it helps others that might run into similar issue.

Colorjet3 avatar Jun 28 '25 15:06 Colorjet3