Video acceleration gone after update

Players, codecs, and video acceleration
Post Reply
snowman
Posts: 13
Joined: Thu Jun 25, 2009 8:46 pm

Video acceleration gone after update

Post by snowman »

I received my new fit-pc2, and it worked smoothly. Mplayer did play the included sample videos.
After I did an update and installed some SW, mplayer stopped working. Playing the matrix.avi gives the following messages:

Code: Select all

snowman@ubuntu-fitpc2:~$ mplayer /home/fit/Videos/matrix.avi 
MPlayer SVN-r28469-4.2.4 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Atom(TM) CPU Z530   @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
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 /home/fit/Videos/matrix.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x480  24bpp  24.000 fps  1478.8 kbps (180.5 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffmpeg4vaapi] vfm: ffmpeg (FFmpeg MPEG-4 (VA API))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: MPEG-4 VA API Acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Unexpected init_vo error.
Glxinfo produces the following output (note the warnings directly on top):

Code: Select all

snowman@ubuntu-fitpc2:~$ glxinfo
name of display: :0.0
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) GMA500 20080421 - 2.2.0.32L.0020 x86/MMX/SSE2
OpenGL version string: 2.0 Mesa 7.0.3
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program, 
    GL_ARB_fragment_shader, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object, 
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shader_objects, 
    GL_ARB_shading_language_100, GL_ARB_shadow, GL_ARB_texture_border_clamp, 
    GL_ARB_texture_compression, GL_ARB_texture_cube_map, 
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine, 
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, 
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, 
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, 
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader, 
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, 
    GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, 
    GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, GL_EXT_fog_coord, 
    GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, 
    GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, 
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color, 
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, 
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, 
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, 
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array, 
    GL_APPLE_client_storage, GL_APPLE_packed_pixels, 
    GL_ATI_blend_equation_separate, GL_ATI_separate_stencil, 
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, 
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_window_pos, 
    GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_point_sprite, 
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_OES_read_format, 
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, 
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture, 
    GL_SUN_multi_draw_arrays

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x28 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x2b 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2d 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2e 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2f 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x31 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x32 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x5c 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon
Any ideas what could be wrong, or do I have to reinstall? Is ubuntu's update mechanism supported?

Thanks in advance

snowman
Posts: 13
Joined: Thu Jun 25, 2009 8:46 pm

Re: Video acceleration gone after update

Post by snowman »

OK, some news on this one: Somehow it's connected to the user logged in. Using the original user "fit" seems to work OK (HW acc. is working).
Creating a new user (System - > Admin -> Users and Groups) and logging in with that new user is breaking the HW acceleration with output described above.

Hmm. I can anyone maybe help out what am I doing wrong?

ender
Posts: 58
Joined: Mon Apr 27, 2009 12:29 pm

Re: Video acceleration gone after update

Post by ender »

I haven't tried Linux on my Fit-PC2 yet, but in your place, I'd check if the user "fit" is member of any special groups (which gives him the access to hardware), and then add your user to those groups, too.

oldie
Posts: 5
Joined: Thu Apr 02, 2009 7:12 pm

Re: Video acceleration gone after update

Post by oldie »

Try to duplicate fit's mplayer config folder to the new user:
# cp -r /home/fit/.mplayer /home/newuser/

Worked for me ;)

funzoneq
Posts: 6
Joined: Tue Apr 28, 2009 11:35 am

Re: Video acceleration gone after update

Post by funzoneq »

Try this:

cp -r /home/fit/.mplayer/ /home/newuser/
chown -R newuser:newuser /home/newuser/.mplayer/

Replace 'newuser' with the username of your new account. This copies the settings of mplayer to the home directory of your new user.

snowman
Posts: 13
Joined: Thu Jun 25, 2009 8:46 pm

Re: Video acceleration gone after update

Post by snowman »

Thanks! Copying .mplayer has solved the problem.

OT1: GUIs are feeling slow sometimes (especially when some animations are going on, e.g. firefox wants to save passwords).

OT2: I'm still seeing warnings whenever glx is used (glxinfo, glxgears). Is this "normal"?

Code: Select all

do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.

Timon_and_Pumba
Posts: 26
Joined: Wed May 27, 2009 5:59 pm

Re: Video acceleration gone after update

Post by Timon_and_Pumba »

funzoneq wrote:Try this:

cp -r /home/fit/.mplayer/ /home/newuser/
chown -R newuser:newuser /home/newuser/.mplayer/

Replace 'newuser' with the username of your new account. This copies the settings of mplayer to the home directory of your new user.
Maybe a better approach (and should have been done by CompuLab) is to make the mplayer configuration global:

Code: Select all

sudo cp /home/fit/.mplayer/config /etc/mplayer/mplayer.conf
Then it will work for every new user you add to the system.

The "normal" per-user configuration does not make much sense in this case, as without acceleration playing more complex files is problematic.

enterz
Posts: 5
Joined: Mon Jul 06, 2009 4:22 pm

Re: Video acceleration gone after update

Post by enterz »

I'm getting this message saying it couldn't open display alv1.
This is after I copied the fit .mplayer directory.

Anyone has an idea what's going wrong here?

If I switchback to 'xv' output I can see the movie playing, but without the hardware acceleration, so it's very slow.
marco@ubuntu-fitpc2:~$ mplayer /home/fit/Videos/300-tlr1b_h1080p.mov
MPlayer 1.0rc2-4.2.4 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 /home/fit/Videos/300-tlr1b_h1080p.mov.
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
MOV: version 2 sound atom may not parse correctly!
MOV: unable to determine audio samplerate, assuming 44.1kHz (got 0)
VIDEO: [avc1] 1920x800 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
comments: Encoded and delivered by apple.com/trailers/
copyright: � 2005/6 Warner Bros. Pictures. All Rights Reserved
name: 300
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 16.2 (16.1) of 106.2 (01:46.1) 10.5%

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: Video acceleration gone after update

Post by Denis »

MPlayer 1.0rc2-4.2.4 (C) 2000-2007 MPlayer Team
Seems you have explicitly installed official mplayer, mplayer-vaapi was erased during installation.
At the current moment we have no .deb in ppa, you can follow instuctions on http://www.splitted-desktop.com/~gbeauc ... yer-vaapi/ and install it manually. Another option is to reinstall ubuntu from backup usb...
Compulab's Linux support

enterz
Posts: 5
Joined: Mon Jul 06, 2009 4:22 pm

Re: Video acceleration gone after update

Post by enterz »

Ahz, that's why it stopped working hehe. I indeed re-installed mplayer when the hardware decoding stopped working.

I rebuilded the mplayer-vaapi from scratch now, and it seems to be working again!

Took me some time to figure out how to actually do this, but in the end it was quite easy.

Post Reply

Return to “Multimedia in Linux”