LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-20-2018, 09:59 AM   #1
notooth
Member
 
Registered: Apr 2005
Posts: 192

Rep: Reputation: 15
Unhappy 4K video lagged


Hi everyone,

I watch 4K video very well on Youtube, but playing 4K movies on my local hard drive is lagged. Can anyone help?
My system is:
Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz
SSD 300GB Sata 3

Last edited by notooth; 01-20-2018 at 01:26 PM.
 
Old 01-20-2018, 11:40 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You forgot to tell us what player you are using and if it can utilize VA-API.
 
Old 01-20-2018, 01:26 PM   #3
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I use VLC, MPV, SMPlayer, and Dragon Player.
 
Old 01-21-2018, 02:13 PM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
I watch 4K video very well on Youtube
The "4K" and "HD" video on many websites is highly compressed, more than a Blu_Ray would be. Just because it says it is "4K" doesn't mean it has the same bit rate as a true 4K movie. If you downloaded a 4K movie onto your SSD offline it could have a much higher bit rate than anything off of YouTube.

Quote:
but playing 4K movies on my local hard drive is lagged.
SSD 300GB Sata 3
Do you have a spinning hard drive ? You just mention your SSD. There is of course a major speed difference between a spinning HDD and a SSD which could be one explanation.
 
1 members found this post helpful.
Old 01-21-2018, 02:49 PM   #5
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
Yes, I have a spinning hard drive, but I put the movies on the SSD. The movie bit rate is about 70000 kb/s.
 
Old 01-21-2018, 10:16 PM   #6
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
If you have an NVIDIA card with recent proprietary drivers installed you might want to try QMPlay2 with CUVID decoder.
 
Old 01-21-2018, 11:23 PM   #7
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I have a laptop with the following hardware:
CPU Intel i7 820QM
GPU NVIDIA Quadro FX 880M

After installing the recent proprietary drivers, setting CUVID decoder in QMPlay2, the movie is still laggy.
 
Old 01-21-2018, 11:47 PM   #8
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
In the nvidia-settings application it will show how much your GPU is being utilized to play video. I have a feeling that your hardware is too old to play it at that bitrate. Maybe try 10,000-20,000 kbps.
A 4K video I downloaded off Youtube with QMPlay2 had a bit rate of ~18,000 kbps.

What does top show concerning cpu usage?

Last edited by RadicalDreamer; 01-21-2018 at 11:51 PM.
 
Old 01-22-2018, 03:43 AM   #9
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I do not see the indicator of GPU usage in the NVIDIA Control Panel. The CPU usage is about 90% when playing the movie.
 
Old 01-22-2018, 11:09 AM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Quote:
Originally Posted by notooth View Post
I do not see the indicator of GPU usage in the NVIDIA Control Panel. The CPU usage is about 90% when playing the movie.
90% is a lot. I wonder if cuda is being used. QMPlay2 gives me this under the Information tab while playing a file:
Code:
Video streams:
Stream 1 - CUVID decoder, OpenGL 4.6 CUVID
.

Results from QMPlay2:
A 4k ~18000 kbps bitrate video file utilizes 3% of my GPU with 16% Video Engine Utilization. Top shows about 1-1.6 percent of the CPU is being used by user and about 0.5 to 1.0 by system.

Results from VLC on the same file:

A 4k ~18000 kbps bitrate video file utilizes 9-10% of my GPU with 0% Video Engine Utilization. Top shows about 18-22.5 percent of the CPU is being used by user and about 0.5 to 1.0 by system.

VLC uses 10 times the CPU with VA-API than QMPlay2 uses with CUVID on a recent NVIDIA card.

In the long and short branch drivers the nvidia-settings have a menu with
Code:
X Server Information
X Server Display Configuration
X Screen 0
GPU 0 (name of graphics card)<--this line would have that information if you highlighted it.
Application Profiles
nvidia-settings Configuration

Last edited by RadicalDreamer; 01-22-2018 at 11:13 AM.
 
Old 01-22-2018, 05:24 PM   #11
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
QMPlay2 give me this information:
Quote:
Video streams:
Stream 1 - FFmpeg, OpenGL 3.3
. codec: hevc
 
Old 01-23-2018, 12:10 AM   #12
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Quote:
Originally Posted by notooth View Post
QMPlay2 give me this information:
No CUVID for you then. Maybe try to set FFmpeg VDPAU Decoder (highlight it and use the arrows to make it first priority) in Playback settings. Maybe try VA-API after that. These things are probably not properly supported for your card. I have an old 9800m gts and QMPlay2 gives similar information for it that you received.
 
Old 01-23-2018, 03:35 AM   #13
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
Thank you for your help.
 
Old 01-26-2018, 09:33 PM   #14
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
Yes, I have a spinning hard drive, but I put the movies on the SSD. The movie bit rate is about 70000 kb/s.
Then you shouldn't talk about your "local hard drive" if you are using an SSD. A bit rate of 70000 kb/s is more compactly termed 70Mb/s and would be much higher than anything off YouTube. Most desktop environments have a hardware monitor that can show the instantaneous network bit rate as you are watching a "4K" YouTube video. Try this.

A 70Mb/s bit rate seems to be overwhelming your hardware.

Quote:
A 4K video I downloaded off Youtube with QMPlay2 had a bit rate of ~18,000 kbps.
This is what I suspected. 19 Mbps is considered a normal HD bitrate and 4K should have 4X the detail. The YouTube "4K" bit rate is over 3X lower than the movie you downloaded.

I recommend trying NVidia VDPAU as well. I don't know if Quadro supports this.
 
Old 01-26-2018, 10:06 PM   #15
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
I did some research and your GPU supports VDPAU level C

Quadro FX 880M 0x0A3C C

http://download.nvidia.com/solaris/2...rtedchips.html

From

https://en.wikipedia.org/wiki/VDPAU

Quote:
Nvidia VDPAU Feature Sets[31] are different hardware generations of GPU's supporting different levels of (Nvidia PureVideo) hardware decoding capabilities. For feature sets A, B and C, the maximum video width and height are 2048 pixels, minimum width and height 48 pixels, and all codecs are currently limited to a maximum of 8192 macroblocks (8190 for VC-1/WMV9).
Therefore although your GPU does support VDPAU for level C the maximum size is 2048X2048 so it can't do 4K video.

Does your laptop have a 4K display anyway ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
If video is loaded in web browser I cannot hear video in VLC or other video player... linustalman Linux - Software 0 12-17-2011 09:48 AM
Many video format (such as video/x-ms-asf and video/x-ms-wvx ) does not play? jmettova Debian 1 05-05-2009 11:22 AM
Internet connection lagged because of linux computer ekkins Linux - Newbie 4 11-03-2008 02:29 AM
Lagged/hanging boot malegria Fedora 2 12-29-2004 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration