Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

MPV playback problem

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

MPV playback problem

#1 Post by pawRoot »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: MPV playback problem

#2 Post by debiman »

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
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: MPV playback problem

#3 Post by pawRoot »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: MPV playback problem

#4 Post by stevepusser »

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
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: MPV playback problem

#5 Post by debiman »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: MPV playback problem

#6 Post by stevepusser »

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
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: MPV playback problem

#7 Post by debiman »

^ 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.

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: MPV playback problem

#8 Post by pendrachken »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: MPV playback problem

#9 Post by stevepusser »

Don't you have to use the openGL output to have hardware decoding work?
MX Linux packager and developer

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: MPV playback problem

#10 Post by pawRoot »

I will check CPU usage once they fix my internet

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: MPV playback problem

#11 Post by pendrachken »

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

Post Reply