Avidemux Forum

Avidemux => Windows => Topic started by: OutOfSpace on September 05, 2019, 11:38:58 PM

Title: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 05, 2019, 11:38:58 PM
AMD Ryzen 7 3700X
32GB RAM
NVIDIA GeForce RTX 2060 SUPER

I'm having an issue where the application becomes unresponsive for about 4 seconds after playback has started. The video plays fine, but the UI cannot be interacted with. Everything that has been interacted with during those 4 seconds will suddenly trigger once the UI freeze is over.

This is a screencast of the issue : https://knowledge.autodesk.com/community/screencast/2eb556c3-0df0-4f03-a150-a66796cc6e96

This screencast shows the application being skinned by WindowBlinds, however the issue also happens when it is excluded from WindowBlinds skinning.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 05:36:58 AM
Are you immediately stopping playback (klicking Play/Pause the second time) and then trying to interact with the GUI? Can't reproduce with just starting playback and immediately changing encoder or muxer after that on macOS and on Windows 10 with samples up to 1080p.

With 4k samples which Avidemux can't decode in real time anyway, everything is laggy (this is nothing new).
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 05:41:10 AM
I am pressing play and then attempting to press stop. The video won't stop right away because the UI is unresponsive after playback has started. Clicking the other UI elements was just to show that the whole UI becomes unresponsive.
I am not playing 4k video. This is 720p.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 05:42:24 AM
What is the size of the cache?
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 05:42:57 AM
16
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 05:44:31 AM
Okay, then WFM.

(Avidemux seeks back to the last displayed picture on stopping playback, this picture is normally still in the cache, otherwise stopping may be not immediate)
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 05:45:50 AM
Same hardware?
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 05:47:16 AM
No, a MBP (i.e. just a fraction of the resources your system has)
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 05:51:31 AM
Okay so will this be considered not an issue because it works on your hardware? It also works fine on my laptop with different specs but not on this computer which is a fresh system and fresh install.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 05:56:13 AM
Do you experience the same issue with WindowBlinds compeltely uninstalled? And with a different video output (enable OpenGL and select OpenGL output or simply with unaccelerated Qt)? And with DXVA2 hw accelerated decoding disabled?

I need to be able to reproduce (don't think I would be able to do anything about it...). Might be something related to graphics drivers.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 06:15:44 AM
Alright! The UI reacts normally when video display is set to Qt or OpenGL. So I guess the issue is fixed! Thank you!
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 06:26:39 AM
Good, we've identified the trigger. Will try something later, thank you.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 09:09:52 AM
Quote from: eumagga0x2a on September 06, 2019, 06:26:39 AM
Good, we've identified the trigger. Will try something later, thank you.

I can test builds on my machine if you need me to.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 09:49:06 AM
Could you please clarify whether the issue is really tied to the DXVA2 output only or rather to the combination of DXVA2 decoding AND output? If you disable just the hw accelerated decoding and keep DXVA2 output, is it enough to trigger the problem? Have you tried completely uninstalling WindowBlinds?
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 11:36:33 AM
"Decode video using DXVA2 (windows)" was never enabled.

I have not tried uninstalling WindowBlinds. That would have required a restart which I couldn't do at the time. However unloading WindowBlinds removes all the hooks from the system so uninstalling should not be necessary. If you really want me to try uninstalling it, I can do that later.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 11:59:07 AM
Quote from: OutOfSpace on September 06, 2019, 11:36:33 AM
"Decode video using DXVA2 (windows)" was never enabled.

Your screencast proves the opposite.

QuoteI have not tried uninstalling WindowBlinds. That would have required a restart which I couldn't do at the time. However unloading WindowBlinds removes all the hooks from the system so uninstalling should not be necessary. If you really want me to try uninstalling it, I can do that later.

Yes, please, try uninstalling WindowBlinds completely.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: OutOfSpace on September 06, 2019, 08:03:31 PM
Oh my bad you're right. I didn't remember enabling it and it was disabled when I checked so I assumed I had never enabled it in the first place. The issue happens whether or not DXVA2 decoding is enabled and even when WindowBlinds is uninstalled.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on September 06, 2019, 10:09:31 PM
Thanks for testing. I hoped that the problem were linked to DXVA2 decoding, in this case I would have something to try out (related to the way we allocate decoder surfaces), but well... no ideas ATM.

Any clues from admlog.txt? The NVIDIA graphics driver version is probably the latest, isn't it?
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: FireCulex on January 03, 2021, 02:35:52 AM
This problem persists in 2.7.6. Makes it really annoying when splicing clips together because spacebar to pause will sometimes be ignored completely. Sometimes the cursor will turn into a circle. Changing it to OpenGL did nothing until the program restarted after a crash.
Changing HW Accel DXVA2 leads to https://i.imgur.com/w97H3JX.png
Even after using OpenGL pausing or the UI doesn't always respond sometimes up to 10-15s during playback.
Seems like switching to QT solves it.
Title: Re: 2.7.3 - 2.7.5 Avidemux becomes unresponsive for 4s after playback started
Post by: eumagga0x2a on January 03, 2021, 04:18:16 PM
Does the problem affect all videos or only videos with frame rate equal the display refresh rate (usually 60 fps)? The latter is a known issue meanwhile, difficult to solve, unfortunately.