easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

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

Open schuelermine opened this issue 1 year ago • 13 comments

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)

schuelermine avatar May 28 '24 22:05 schuelermine

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?

wwmm avatar May 29 '24 00:05 wwmm

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.

schuelermine avatar May 29 '24 07:05 schuelermine

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.

wwmm avatar May 29 '24 22:05 wwmm

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

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

schuelermine avatar May 30 '24 20:05 schuelermine

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 avatar May 30 '24 21:05 wwmm

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.

wwmm avatar May 30 '24 21:05 wwmm

The issue seems to have disappeared.

schuelermine avatar Jun 05 '24 20:06 schuelermine

The issue seems to have reappeared.

schuelermine avatar Jun 10 '24 10:06 schuelermine

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.

wwmm avatar Jun 10 '24 14:06 wwmm

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

schuelermine avatar Jul 07 '24 21:07 schuelermine

Hello, I seem to be having a similar issue.

When EasyEffects is running, something seems to be wrong. Once in a while, the video stutters when starting, causing there to be a desync between it and the audio. Main place where it happens to me in in Google Chrome.

Can't really make it happen always, and usually happens when fullscreen (but not always), so i didn't manage to catch a pw-top screenshot, but the numbers seem to be similar to the screenshots above.

System details: Arch Linux, packages up to date as of today EasyEffects version: 7.1.7

tippl avatar Jul 27 '24 19:07 tippl

I've got similar stuttering when playing music in KDE's Elisa. On each track start, the player stutters for a short period before finally playing normally to the end of the track. Disabling EE for Elisa's output completely eliminated the stuttering.

Probably related to this https://bugs.kde.org/show_bug.cgi?id=443184#c19

Edit: update link

latenightdef avatar Dec 28 '24 12:12 latenightdef

I ended up forgetting about this thread, until i got a notification, but i managed to fix my issues by disabling node suspension in wireplumber.

see: https://wiki.archlinux.org/title/PipeWire#Noticeable_audio_delay_or_audible_pop/crack_when_starting_playback

tippl avatar Dec 28 '24 15:12 tippl

I am no longer experiencing this issue

schuelermine avatar Jun 25 '25 10:06 schuelermine

Ok. At least for now let's close this issue.

wwmm avatar Jun 25 '25 22:06 wwmm