You are not logged in.

#1 2014-08-01 18:11:57

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

[workaround] No video in mplayer after resume on Intel GPU

I have Intel GM45 GPU running on standard mesa drivers and xorg.

I noticed that since about a week (I do regular daily updates), I no longer have video in mplayer after the system has been suspended and then resumed. Sound plays just fine, but instead of video, I only have either a black box (mplayer, VLC), or a transparent box (smplayer).

Here's mplayer's output:

$ mplayer xyz.mp4 
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing xyz.mp4.
libavformat version 55.33.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
[lavf] stream 2: subtitle (mov_text), -sid 0, -slang eng
VIDEO:  [H264]  720x404  24bpp  29.970 fps  951.2 kbps (116.1 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2014-08-01 02:42:35
Load subtitles in ./
Could not find a UTF-8 locale,
character keys beyond Latin-1 will not be handled.
do_winsys_init: DRM version is 1.6.0 but this driver is only compatible with 2.3.x (kernel 2.6.34) or later.
[vdpau] Error when calling vdp_device_create_x11: 23
do_winsys_init: DRM version is 1.6.0 but this driver is only compatible with 2.3.x (kernel 2.6.34) or later.
[vdpau] Error when calling vdp_device_create_x11: 23
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.52.102 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 132.4 kbit/4.31% (ratio: 16554->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x404 => 720x404 Planar YV12 
A:   0.1 V:   0.1 A-V:  0.024 ct:  0.000   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.1 V:   0.1 A-V: -0.006 ct: -0.003   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.1 V:   0.1 A-V: -0.030 ct: -0.006   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.1 V:   0.2 A-V: -0.027 ct: -0.009   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.2 V:   0.2 A-V: -0.024 ct: -0.011   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.2 V:   0.2 A-V: -0.022 ct: -0.014   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.2 V:   0.3 A-V: -0.020 ct: -0.016   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.3 V:   0.3 A-V: -0.018 ct: -0.017   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.3 V:   0.3 A-V: -0.016 ct: -0.019   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.4 V:   0.4 A-V: -0.014 ct: -0.020   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.4 V:   0.4 A-V: -0.013 ct: -0.022   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.4 V:   0.4 A-V: -0.012 ct: -0.023   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.5 V:   0.5 A-V: -0.010 ct: -0.024   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.5 V:   0.5 A-V: -0.009 ct: -0.025   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.5 V:   0.5 A-V: -0.008 ct: -0.026   0/  0 13% 10%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.6 V:   0.6 A-V: -0.007 ct: -0.026   0/  0 13%  9%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.6 V:   0.6 A-V: -0.007 ct: -0.027   0/  0 13%  9%  0.6% 0 0 
No bind found for key 'CTRL-v'.
X11 error: BadRequest (invalid request code or no such operation)
A:   0.6 V:   0.6 A-V: -0.006 ct: -0.028   0/  0 12%  8%  0.6% 0 0 
No bind found for key 'CTRL-c'.
X11 error: BadRequest (invalid request code or no such operation)
A:   0.7 V:   0.7 A-V: -0.005 ct: -0.028   0/  0 12%  8%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.7 V:   0.7 A-V: -0.005 ct: -0.029   0/  0 12%  8%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.7 V:   0.7 A-V: -0.004 ct: -0.029   0/  0 12%  7%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.8 V:   0.8 A-V: -0.004 ct: -0.030   0/  0 12%  7%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.8 V:   0.8 A-V: -0.003 ct: -0.030   0/  0 12%  7%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.8 V:   0.8 A-V: -0.003 ct: -0.030   0/  0 12%  7%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.9 V:   0.9 A-V: -0.003 ct: -0.031   0/  0 13%  6%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.9 V:   0.9 A-V: -0.003 ct: -0.031   0/  0 13%  6%  0.6% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   0.9 V:   0.9 A-V: -0.002 ct: -0.031   0/  0 13%  6%  0.5% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   1.0 V:   1.0 A-V: -0.002 ct: -0.031   0/  0 12%  6%  0.5% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   1.0 V:   1.0 A-V: -0.001 ct: -0.032   0/  0 12%  6%  0.5% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   1.0 V:   1.0 A-V: -0.002 ct: -0.032   0/  0 12%  6%  0.5% 0 0 
X11 error: BadRequest (invalid request code or no such operation)
A:   1.1 V:   1.1 A-V: -0.002 ct: -0.032   0/  0 12%  5%  0.5% 0 0 
X11 error: BadRequest (invalid request code or no such operation)

Exiting... (Quit)

This problem starts only after resume. Running films after fresh boot works just fine.

Last edited by Lockheed (2014-08-26 23:20:41)

Offline

#2 2014-08-05 02:21:27

psyke
Member
Registered: 2014-07-28
Posts: 4

Re: [workaround] No video in mplayer after resume on Intel GPU

I have the exact same problem with my Thinkpad and same GPU.  I didn't look further into it, but restarting X will also solve the problem until the next suspend.

Offline

#3 2014-08-05 04:30:28

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: [workaround] No video in mplayer after resume on Intel GPU

Try with other video outputs:

mplayer -vo gl <other options here>

Offline

#4 2014-08-05 05:14:13

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

Using gl output works, but it is terribly slow. It is like watching slow-motion.

Offline

#5 2014-08-05 05:50:39

psyke
Member
Registered: 2014-07-28
Posts: 4

Re: [workaround] No video in mplayer after resume on Intel GPU

For me if I use "mplayer -vo gl" it exits with

intel_do_flush_locked failed: Invalid argument

Playing video over the framebuffer device works.

Offline

#6 2014-08-05 05:52:21

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

psyke wrote:

For me if I use "mplayer -vo gl" it exits with

intel_do_flush_locked failed: Invalid argument

Try setting it in SMPlayer instead.

Offline

#7 2014-08-05 06:13:57

psyke
Member
Registered: 2014-07-28
Posts: 4

Re: [workaround] No video in mplayer after resume on Intel GPU

Lockheed wrote:

Try setting it in SMPlayer instead.

smplayer is just a GUI frontend for mplayer the error was the same.

Offline

#8 2014-08-05 06:23:57

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

psyke wrote:

smplayer is just a GUI frontend for mplayer the error was the same.

When I tried using various vo gl options in SMplayer yesterday, they all worked (just slow).
But today when I tried it again to confirm it, it crashes. Strange...

Offline

#9 2014-08-05 15:47:38

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: [workaround] No video in mplayer after resume on Intel GPU

Other outputs to try:

-vo gl_tiled
-vo x11
-vo sdl

Offline

#10 2014-08-06 17:36:04

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

Pse wrote:

Other outputs to try:

-vo gl_tiled
-vo x11
-vo sdl

Thanks, but this is beside the point. Even if they worked (and they don't), the fact remains that this is just a workaround and something remains broken.

Offline

#11 2014-08-08 06:38:45

psyke
Member
Registered: 2014-07-28
Posts: 4

Re: [workaround] No video in mplayer after resume on Intel GPU

Lockheed wrote:

Thanks, but this is beside the point. Even if they worked (and they don't), the fact remains that this is just a workaround and something remains broken.

This can still help indentifying the real problem. x11 worked for me always, sdl and gl_tiled has the same error with black video output. Btw there was a xf86-video-intel update so im not shure if that has changed something. Anyway I have the feeling that this problem is somewhat more complex because the error changes after a reboot and suspend. Sometimes I did several times suspend without that the video playback was affected but if I would suspend while the video was being played or I had used video playback in my browser before, the error would show up. One time even my browser (firefox 31) crashed with the same error as mentioned before

intel_do_flush_locked failed: Invalid argument

Chromium showed the error but did not crash.  Maybe its some kind of memory corruption? If you search for "memory corruption suspend" you will see that there were problems with the intel driver before.

Offline

#12 2014-08-08 07:05:24

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

psyke wrote:

x11 worked for me always

For me it also displays the video, but the framerate is low and it is like watching slow-motion.

psyke wrote:

there was a xf86-video-intel update so im not shure if that has changed something.

I checked. It didn't.

Apart from Intel, do you also have an ATI card on your laptop? I do, and I might enable it to see if it produces the same issue.

Last edited by Lockheed (2014-08-08 07:05:45)

Offline

#13 2014-08-15 17:06:51

plam
Member
From: Bulgaria
Registered: 2010-03-16
Posts: 37

Re: [workaround] No video in mplayer after resume on Intel GPU

Same problem here on thinkpad x200s with Intel GMA 4500MHD. This is really annoying. I haven't searched for a solution since I barely use my laptop in the summer(lots of work, no time), and I hoped that an update would solve it, but I really hate the fact that I have to reboot every time I want to watch something.
Any success so far?

Offline

#14 2014-08-24 17:59:54

manzdagratiano
Member
From: New Jersey, USA
Registered: 2010-10-08
Posts: 137

Re: [workaround] No video in mplayer after resume on Intel GPU

This thread:
https://bbs.archlinux.org/viewtopic.php?pid=1447805
solves the problem by switching from sna to uxa. Fixed it for me w.r.t. mplayer.


Be formless, shapeless... like water. Now you put water into a cup, it becomes the cup; you put water into a bottle it becomes the bottle; if you put it in a teapot it becomes the teapot... Now water can flow, or it can crash... Be water my friend

Offline

#15 2014-08-25 11:36:31

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

I can confirm it works. I did that some time ago, but was unsure whether this was what solved it.

Now, however, I have another problem. And it affects every video player I tried.

When the playback is switched to full-screen mode, the first time I do it - it works fine. But from the second one onwards, the "full-screen" video is not being centred, i.e. it does take the dimensions of the full screen, but it is not aligned with the screen, and so its top left corner may (at random) be in the centre of the screen, or anywhere else.

Here's the example of what I'm talking about:
http://postimg.org/gallery/62nqtz9m/13c23a45/
The first image is in playback in windowed mode, the second is after going full-screen.

Offline

#16 2014-08-26 23:19:58

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [workaround] No video in mplayer after resume on Intel GPU

I found the problem. It was cairo-compmgr. I went back to compton and all is well again.

Offline

Board footer

Powered by FluxBB