I installed whonix on virtualbox, and then I played a video on mpv, but the audio crackled. How can I solve this problem?
- Try playing with these settings: No Sound in Kicksecure
- Try a non-Whonix VM
- VirtualBox Generic Bug Reproduction
(Whonix is based on Kicksecure.)
Please report if you found a bug, reported a bug or found a workaround / solution.
There is sound when playing MPV, but the sound quality is very poor and often breaks. I think it’s because the CPU is too intensive when translating the audio. I tried Windows virtual machines and this problem doesn’t occur.
I understand that no sound and crackling sound are different issues. However, please try changing the settings mentioned in the first link above. That might help.
For comparison, please try a Debian VM with similar specifications (CPU, RAM).
Without your help, this issue most likely won’t be resolved.
What you try also do is tuning. See:
Higher performance hardware might also help.
Otherwise, I am unaware of any source code level fix that could be applied at the Whonix level.
When I increased the virtual machine’s memory, it actually stopped making any sound. I think Whonix is like a toy, and has not been fully tested for compatibility and stability. And my host computer also has excellent performance.
There’s related bug:
Audio broken after increasing ram to 5 GB - No sound after latest updates - PipeWire Bug?
Related:
Linux User Experience versus Commercial Operating Systems
I solved the problem of no sound caused by increasing the memory capacity. After reading the document you gave me, it seems to be a pipewire bug. I didn’t test whether this problem also exists on debian12. But I don’t think you want to modify the original settings of debian12, but I looked at the pipewire bugs again. Some of them are from 2021, and they haven’t solved them yet. It seems too old. The linux ecosystem seems to have huge problems, and there are bugs everywhere, even in the so-called very stable debian system.