You are not logged in.

#1 2013-12-15 09:52:00

grine
Member
Registered: 2010-02-09
Posts: 38

mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

When I play any video using mpv or mplayer my laptop heats up and fan maxes out. If I check powertop my GPU is at 100% in Powered On. If I use vlc to play the same video it's in RC6 60% of the time.

My config for mplayer looks like:

 #Write your default config options here!                                                                                                          
 vo=xv                                                                                                                                              
 ao=alsa                                                                                                                                            
                                                                                                                                                    
 #Threading                                                                                                                                         
 lavdopts=threads=2                                                                                                                                 
                                                                                                                                                    
 softvol=yes                                                                                                                                        
 softvol-max=600                                                                                                                                    
                                                                                                                                                     
 #Cache                                                                                                                                             
cache=4096                                                                                                                                         
cache-min=10                                                                                                                                       
cache-seek-min=10                                                                                                                                  
                                                                                                                               
 fixed-vo=yes 

Offline

#2 2013-12-15 11:32:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

Any interesting things in mpv / mplayer terminal output?
How does vlc behave o Arch?

Offline

#3 2013-12-15 12:43:11

grine
Member
Registered: 2010-02-09
Posts: 38

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

Outputs of mpv and vlc (mpv and mplayer are identical).

[user@comp ~]$ mpv /mnt/storage/video/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
.mkv 
Playing: /mnt/storage/video/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv
Detected file format: Matroska
[stream] Video (+) --vid=1 'H.264' (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) 'DD5.1' (ac3)
[stream] Audio     --aid=2 --alang=eng 'AAC2.0' (aac)
[stream] Subs      --sid=1 --slang=eng 'CC' (subrip)
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: ATSC A/52A (AC-3) [lavc:ac3]
AO: [alsa] 48000Hz stereo 2ch floatle
VO: [xv] 1280x534 => 1280x534 420p 
AV: 00:00:17 / 01:41:16 (0%) A-V: -0.000


Exiting... (Quit)
[user@comp ~]$ vlc /mnt/storage/video/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN/Wreck-It.Ralph.2012.720p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
.mkv                                                                                                                                                   
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x12c5f48] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x11f71c8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
No accelerated IMDCT transform found
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7ff8a4001248] main vout display error: Failed to resize display
[0x7ff8c40009b8] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 300 ms)
[0x7ff8c40009b8] main input error: ES_OUT_RESET_PCR called

Offline

#4 2013-12-15 13:56:14

andy123
Member
Registered: 2011-11-04
Posts: 169
Website

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

Is there a reason, for using "vo=xv"?

I'd use vo=vaapi or vo=opengl with an intel apu.


i'm sorry for my poor english wirting skills…

Offline

#5 2013-12-15 14:01:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

andy123 wrote:

Is there a reason, for using "vo=xv"?

I'd use vo=vaapi or vo=opengl with an intel apu.

+1

I meant is vlc in Arch using 100% of GPU?

Offline

#6 2013-12-15 14:05:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

Better yet, remove that entirely.  Mplayer is smart enough to select the best one for your hardware.  I too have an ivybridge CPU:

cat ~/.mplayer/config
subfont-autoscale=1
font=/usr/share/mplayer/subfont.ttf
osdlevel=3
nosub=1

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2013-12-15 17:38:12

grine
Member
Registered: 2010-02-09
Posts: 38

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

I get the same behavior with no mplayer config file. VLC on Arch is fine. I installed an older kernel (3.11.4) and mplayer is back to normal  GPU usage.

Offline

#8 2013-12-15 17:54:31

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: mplayer/mpv cause excessive heat while playing videos on Sandy Bridge

What CPU?  Mine is an i7-3770k.  How again are you reading out the gpu usage?  Powertop?  I am currently playing a 1080p vid (approx 4000 kbps V_MPEG4/ISO/AVC) looking at powertop>device stats and all I can see for GPU core is ops/s (around 180).  Other utils like htop do not offer a GPU read.

EDIT: I found intel_gpu_top in community/intel-gpu-tools.  When I run it, I'm seeing render busy of 8-13 % playing the aforementioned clip.

                   render busy:  13%: ██▋                                    render space: 7/131072
                bitstream busy:   0%:                                     bitstream space: 0/131072
                  blitter busy:   1%: ▎                                     blitter space: 0/131072

                          task  percent busy
                           GAM:  12%: ██▌                     vert fetch: 0 (0/sec)
                          GAFS:   5%: █                       prim fetch: 0 (0/sec)
                            SF:   0%:                      VS invocations: 431718656 (0/sec)
                            VS:   0%:                      GS invocations: 0 (0/sec)
                            VF:   0%:                           GS prims: 0 (0/sec)
                            CL:   0%:                      CL invocations: 215859306 (0/sec)
                                                                CL prims: 215459850 (0/sec)
                                                           PS invocations: 1341830240168 (0/sec)
                                                           PS depth pass: 1133510361470 (0/sec)

Last edited by graysky (2013-12-15 19:07:05)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB