Jerky playback with lost frames

*nix specific usage questions
awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Jerky playback with lost frames

Postby awik » 10 Mar 2022 18:36

Hi all,

I'm using Linux Mint 19.3 (Tricia) with Cinnamon. My VLC version is 3.0.8. The CPU is Intel Core i7-2720QM Quad Core. The graphics is Intel integrated i915.

My problem is jerky playback. The statistics reports lost frames. The CPU is more than 50% idle.

Anything that can be done to mitigate the problem, or at least diagnose it?

Regards,
Albert Wik.

awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Re: Jerky playback with lost frames

Postby awik » 23 Mar 2022 19:18

The jerkiness stops if I shut down the very graphics-intensive Second Life viewer Firestorm. Can applications compete for "GPU time" like they compete for CPU time?

-aw

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Jerky playback with lost frames

Postby Rémi Denis-Courmont » 24 Mar 2022 07:54

GPU resources are not infinite. I'm sure what answer you expect here.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

elitedata
Blank Cone
Blank Cone
Posts: 58
Joined: 20 Jan 2022 20:17

Re: Jerky playback with lost frames

Postby elitedata » 24 Mar 2022 09:07

The graphics is Intel integrated i915.
there is your answer.
integrated graphics share CPU/MEM recources.

awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Re: Jerky playback with lost frames

Postby awik » 24 Mar 2022 16:49

The graphics is Intel integrated i915.
there is your answer.
integrated graphics share CPU/MEM recources.
But there seem to be enough CPU/MEM resources, and I've tried adjusting process priority. So I'm thinking the contention is for some other, graphics-related, resource.

-aw

awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Re: Jerky playback with lost frames

Postby awik » 24 Mar 2022 16:53

GPU resources are not infinite. I'm sure what answer you expect here.
Yes. Maybe Linux/X11 does not implement any kind of "fair" scheduling of GPU resources, so that any process is "free" to hog and starve other processes for resources?

How can I find out if the problem is (a) decoding the video in time or (b) displaying the decoded frames in time?

-aw

elitedata
Blank Cone
Blank Cone
Posts: 58
Joined: 20 Jan 2022 20:17

Re: Jerky playback with lost frames

Postby elitedata » 24 Mar 2022 17:13

GPU resources are not infinite. I'm sure what answer you expect here.
Yes. Maybe Linux/X11 does not implement any kind of "fair" scheduling of GPU resources, so that any process is "free" to hog and starve other processes for resources?

How can I find out if the problem is (a) decoding the video in time or (b) displaying the decoded frames in time?

-aw
its likely that SL and VLC are using the integrated GPU to decode frames at the same time and its likely too much for the GPU to handle.
im not familiar with Linux but your problem sounds all too familiar to me.
i would think though, if you minimize SL (Firestorm), GPU use should cease from it and then VLC should work, but i dont know the implementation of firestorm on Linux though i am familiar with SL and firestorm (im an SL member for almost 20 years now)

awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Re: Jerky playback with lost frames

Postby awik » 24 Mar 2022 19:12

its likely that SL and VLC are using the integrated GPU to decode frames at the same time and its likely too much for the GPU to handle.
In fact, SL on its own is too much for the GPU. I'm getting less than 10 fps and it's jerky. Often it freezes for several seconds at a time.

I had an AMD FirePro, but it developed a memory defect, making the system crash, thus forcing me to pull out the card. Now, I'm considering getting a new graphics card, but it's a laptop and I'm not familiar with the compatibility issues. Is there a good place, like a forum, to go for assistance?
im not familiar with Linux but your problem sounds all too familiar to me.
i would think though, if you minimize SL (Firestorm), GPU use should cease from it and then VLC should work, but i dont know the implementation of firestorm on Linux though i am familiar with SL and firestorm (im an SL member for almost 20 years now)
I'm going to try the minimisation at some point.

-aw

elitedata
Blank Cone
Blank Cone
Posts: 58
Joined: 20 Jan 2022 20:17

Re: Jerky playback with lost frames

Postby elitedata » 24 Mar 2022 19:23

i do know that SL is very CPU & GPU intensive (memory, network and file cache also) but you can configure it to be balanced between both CPU & GPU as well as configuring Firestorm for a shorter drawing distance (drawing more objects on the display requires more CPU & GPU resources) and that may help reduce resource usage enough to balance what is available for VLC to operate but in your case, its probably unlikely to help much at all depending on the content you are playing in VLC, especially if its high resolution content displayed full screen.

awik
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2012 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.3
Location: North Europe

Re: Jerky playback with lost frames

Postby awik » 02 Jun 2022 17:15

I tried minimising Firestorm, but it did not help.

-aw


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests