no sound in preview
Describe the bug: preview has no sound
Steps to reproduce the behavior:
- Open an existing project, where audio was working ok both in preview and final cut
- Click on play
- 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.
Things to try:
- Restart your computer.
- If switching between headphones and speakers, ensure that OpenSHot is closed first.
- 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+).
- 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.
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.
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.
Any update @AndreaBorgia-Abo?
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.
Have you tried running the AppImage? Give it a try.
I would delete the /home/username/.openshot_qt folder before running it.
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.
- 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.
- 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.
- I really don't know what else to tell you since it was working at one point.
- 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.
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.
Any news? Quite a few updates have come and gone for Debian packages but audio in preview is still missing.
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.
thanks for the tip, indeed it makes no difference at all :(
update: friend of mine tested on his system, other than a crash possibly due to an older release he saw this:
On my system there is no entry for OpenShot while the video is playing but the audio is missing.
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.
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.