wwmm / easyeffects

Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications
GNU General Public License v3.0
6.15k stars 265 forks source link

Whenever EasyEffects is running, video playback stutters at the start of the video. #3161

Open schuelermine opened 1 month ago

schuelermine commented 1 month ago

EasyEffects Version

7.1.6

What package are you using?

NixOS

Distribution

NixOS 24.11.20240524.bfb7a88 (Vicuña)

Describe the bug

Whenever EasyEffects is running, video playback stutters at the start of the video. Screencast from 2024-05-27 22-49-46.webm

Expected Behavior

No response

Debug Log

No response

Additional Information

Hardware: Framework Laptop 16 (CPU: Ryzen 9 7940HS, GPU: Radeon RX 7700S)

wwmm commented 1 month ago

Whenever EasyEffects is running, video playback stutters at the start of the video.

I've never seen this happening on my computers. Unless that for some weird reason you cpu is not being able to keep up with the additional load the only possibility is the media player you are using not working right with virtual sinks. In any case I doubt there is anything we can do from EasyEffects side. Sounds more like some issue between the player and PipeWire.

What is in the output of pw-top when this happens?

schuelermine commented 1 month ago

It happens consistently in all video players. Here is pw-top directly after it happened: Screenshot from 2024-05-29 09-42-09

It is not perfectly reproducible, happening every time. But it has never happened with EasyEffects not running.

wwmm commented 1 month ago

But it has never happened with EasyEffects not running.

Is there any change if you remove all the filters from the pipeline? But if it does then the only explanation would be the cpu not being able to handle the load. What is odd considering the model.

There isn't a way for EasyEffects to mess with the video playback. It just moves the player's audio stream to a virtual sink and process what is present in the virtual sink monitor ports. For all the players to be affected something unusual may be happening in PipeWire that is messing with the players playback rate.

schuelermine commented 1 month ago

After further testing it only happens when my filters are active and not otherwise.

Here is the preset I use: cab-fw.json

wwmm commented 1 month ago

After further testing it only happens when my filters are active and not otherwise.

Here is the preset I use: cab-fw.json

Hum... If passthrough is ok then the additional cpu load is somehow doing it... Very strange...

wwmm commented 1 month ago

Here is the preset I use: cab-fw.json

I tested it here on my computer but at least on Firefox and mpv I could not see anything unusual.

schuelermine commented 1 month ago

The issue seems to have disappeared.

schuelermine commented 4 weeks ago

The issue seems to have reappeared.

wwmm commented 3 weeks ago

The issue seems to have reappeared.

Do you notice any unusual load on your cpu if you open your system monitor or a program like top or htop? Nothing changed in EasyEffects in this time window. If the problem came back there is something else in your system that is not always running that is interfering somehow. Or a system upgrade introduced a regression.

schuelermine commented 14 hours ago

Really sorry for the long delay.

I’ve taken a picture of top and pw-top right when it happens. Screenshot from 2024-07-07 23-22-40 Screenshot from 2024-07-07 23-22-43