MPV playback problem

If none of the more specific forums is the right place to ask

MPV playback problem

Postby pawRoot » 2018-02-13 15:43

Hi

I downloaded some 4k sample video to test it with MPV, the problem is that from time to time the video is lagging.
My CPU is i5-4690k, i was able to play games on this CPU in Linux so it's weird for video to be lagging.

MPV also displays some error
Code: Select all
mpv sample-Elysium.2013.2160p.mkv
Playing: sample-Elysium.2013.2160p.mkv
 (+) Video --vid=1 (*) 'Elysium (2013) - Release for ULTRAHDCLUB' (hevc)
 (+) Audio --aid=1 --alang=eng (*) 'DTS-HD MA 7.1 - Blu-ray CEE' (dts)
File tags:
 Title: Elysium (2013)
[ffmpeg/video] hevc: Invalid default display window
AO: [pulse] 48000Hz 7.1 8ch s16
VO: [opengl] 3840x1606 yuv420p10
AV: 00:01:02 / 00:01:02 (99%) A-V:  0.000 Dropped: 28


Exiting... (End of file)
User avatar
pawRoot
 
Posts: 536
Joined: 2016-12-28 18:26
Location: Poland

Re: MPV playback problem

Postby debiman » 2018-02-13 17:18

the output shows nothing except 28 dropped frames, which isn't so bad.
does your gpu support hevc decoding?
decoding hevc with software only is very taxing on your cpu.
also the dts sound could pose some problems, not sure.
if it's a downloaded sample video, why don't you share the link?
User avatar
debiman
 
Posts: 2923
Joined: 2013-03-12 07:18

Re: MPV playback problem

Postby pawRoot » 2018-02-13 17:24

I didn't post the link because the website started giving me some error like "you are banned for scanning", probably didn't like some of my FF extensions.

Now it works, so here is the link http://downloads.4ksamples.com/download ... .2160p.mkv

Also from what i remember i5-4690k should support h.265
User avatar
pawRoot
 
Posts: 536
Joined: 2016-12-28 18:26
Location: Poland

Re: MPV playback problem

Postby stevepusser » 2018-02-13 18:24

Code: Select all

 |   Doesn't the Broadwell support HEVC decoding for Linux?

Nope. Hybrid decoder in Windows (that even does 10bit, the Haswell hybrid decoder only does 8bit), nothing in Linux.

Braswell and Skylake have 8bit decoders (full fixed-function decoder) supported in Linux. Broxton and Kaby Lake will have 10bit decoders.


From this: https://github.com/mpv-player/mpv/issues/2664
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10008
Joined: 2009-10-06 05:53

Re: MPV playback problem

Postby debiman » 2018-02-14 19:23

my hardware does support hevc decoding, but sill it could hardly keep up with it.
no wonder, 400MB for 1min of video at 3840x1606 pixels...
User avatar
debiman
 
Posts: 2923
Joined: 2013-03-12 07:18

Re: MPV playback problem

Postby stevepusser » 2018-02-15 01:10

A lot seems to depend on the way the video was encoded. This 4k HEVC 60 fps video (Big Buck Bunny) plays just fine with hardware decryption on my Skylake 520: http://www.libde265.org/hevc-bitstreams ... -cfg02.mkv
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10008
Joined: 2009-10-06 05:53

Re: MPV playback problem

Postby debiman » 2018-02-16 05:05

^ that video is very slow to download. will be able to test in an hour or so...

my gpu is intel hd 530, one of many skylake units, built into a fairly low-end quad-core.
hevc decoding usually works just fine, but with the resolution of the previous video there was considerable additional stress on all 4 cpus.
User avatar
debiman
 
Posts: 2923
Joined: 2013-03-12 07:18

Re: MPV playback problem

Postby pendrachken » 2018-02-16 18:36

Do you have something else eating CPU cycles? I'd check with HTOP / TOP to see if the CPU is actually being pegged to the max or not first.

Have you tried using the XV video output? MPV / MPlayer MOST times does pretty decent with OpenGL, but sometimes uses too much CPU to display OGL. You might want to try with OpenGL2 -vo enabled, sometimes that works smoother than just OpenGL.


Seems like something is chewing up your CPU time, software decoding only takes 55-65% CPU in MPV on Windows ( I don't have any machines that run bare-metal Linux, all of my Linux is now Virtualized ) on an i5-4590 here. I can't see the native Linux build being more inefficient, especially to that degree.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1325
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: MPV playback problem

Postby stevepusser » 2018-02-16 19:15

Don't you have to use the openGL output to have hardware decoding work?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 10008
Joined: 2009-10-06 05:53

Re: MPV playback problem

Postby pawRoot » 2018-02-16 19:25

I will check CPU usage once they fix my internet
User avatar
pawRoot
 
Posts: 536
Joined: 2016-12-28 18:26
Location: Poland

Re: MPV playback problem

Postby pendrachken » 2018-02-16 22:35

stevepusser wrote:Don't you have to use the openGL output to have hardware decoding work?



Don't know? I thought it was like the old radeon / intel HW decode where you use VAAPI on the decoder part and then let the Vid Out handle exporting the decoded frames at whatever was needed(pretty sure I used XV out instead of GL on Intel gfx, but haven't messed with HW decoding or bare metal Linux in ages). VDPAU, if I remember correctly, required the vdpau Vid Out to fully utilize hardware decode. That was only for NVidia though.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1325
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.


Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable