You are not logged in.

#1 2013-01-25 10:11:12

juray
Member
Registered: 2012-01-12
Posts: 26

mplayer mp4 no video

Hi,

after last update, i cannot play mp4 files with mplayer. My desktop is recently up of date and have this problem. My notebook have not been updated for a few days, and it can play this video format in mplayer.

Some of updated packages:

lib32-intel-dri-9.0.2-1  lib32-libgl-9.0.2-1 lib32-libglapi-9.0.2-1  lib32-mesa-9.0.2-1  lib32-pango-1.32.5-1 boost-libs-1.50.0-4  ca-certificates-20130119-1  
cairo-1.12.10-2 harfbuzz-0.9.9-3  icu-50.1.2-1 intel-dri-9.0.2-1  lib32-cairo-1.12.10-1 lib32-harfbuzz-0.9.9-2  lib32 icu-50.1.2-1  
lib32-libxi-1.6.2-1 libgl-9.0.2-1  libglapi-9.0.2-1 libreoffice-writer-3.6.4-5  linux-3.7.4-1  mesa-9.0.2-1 raptor-2.0.8-3  xorg-xsetroot-1.1.1-1

My Desktop:

$ lsmod | grep video
video                  11332  1 i915

Mplayer during play video print to console:

$ mplayer EVE_latest_rotation.mp4 
MPlayer SVN-r35421-4.7.2 (C) 2000-2012 MPlayer Team
199 audio & 415 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 EVE_latest_rotation.mp4.
libavformat version 54.36.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (mpeg4), -vid 0
VIDEO:  [MP4V]  320x240  24bpp  24.000 fps  2506.2 kbps (305.9 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2mp41
 creation_time: 1970-01-01 00:00:00
 encoder: Lavf52.32.0
Load subtitles in ./
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.71.100 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 320x240 => 320x240 Planar YV12 
V:   0.0   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.0   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.1   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.1   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.2   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.2   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
V:   0.2   0/  0 ??% ??% ??,?% 0 0 
X11 error: BadAlloc (insufficient resources for operation)

But my notebook has two graphic cards:

$ lsmod | grep video
uvcvideo               73462  0 
videobuf2_vmalloc       2789  1 uvcvideo
videobuf2_memops        2827  1 videobuf2_vmalloc
videobuf2_core         24073  1 uvcvideo
videodev              104777  2 uvcvideo,videobuf2_core
media                  10438  2 uvcvideo,videodev
usbcore               173914  6 btusb,uvcvideo,ums_realtek,usb_storage,ehci_hcd,usbhid
video                  11332  3 i915,acer_wmi,nouveau
i2c_core               23076  7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau,videodev

Thank for help.

... and is there any way to use only Intel graphic card in my notebook? Or better, is there any way to switch between GPU, for better power saving or performance?

Thaks a lot.

Regards, Juray.

Offline

#2 2013-01-25 14:08:42

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: mplayer mp4 no video

Have you seen this?

Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

Have you been googling for "BadAlloc (insufficient resources for operation)"?

Might help to show us your ~/.mplayer/config

Last edited by Army (2013-01-25 14:09:42)

Offline

#3 2013-01-25 18:18:43

juray
Member
Registered: 2012-01-12
Posts: 26

Re: mplayer mp4 no video

Yes, That is the problem! MPlayer tries to open mp4 videos with VDAPU which works only with nVidia cards (like ive read on wiki). But I dont have nVidia in my desktop, only Intel. Before last maybe two updates mplayer works correctly with mp4. I dont see any reason of that behavior now. Any other video format runs without any problem.

Fortunately, i have found workaround in mplayer man page, and i have to play mp4 videos with x11 video output driver, for example:

mplayer -vo x11 EVE_latest_rotation.mp4

i can live with this, but my question stays - why mplayer uses VDAPU as default video output for mp4 also on architecture without any nvidia gpu? What caused this behavior from day to day?

In my notebook everything goes fine, because i have two graphic adapters: nVidia and Intel.

Offline

#4 2013-01-26 12:52:59

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: mplayer mp4 no video

Just put

vo=x11

into ~/.mplayer/config, then you don't have to do this "-vo x11" with every command.

By the way, the better driver is xv, so vo=xv should give a better performance!

Offline

#5 2013-01-26 13:43:18

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: mplayer mp4 no video

Army wrote:

By the way, the better driver is xv, so vo=xv should give a better performance!

Yeah, but xv is giving him that BadAlloc error!

@juray: Which graphic card exactly do you have? And do you use SNA or UXA? One of the recent intel drivers gave me issues on my netbook, similar to yours. Switching to UXA fixed it, which means there's a bug in the intel driver. I haven't yet tested the newest intel driver to see if the bug is fixed.

Offline

#6 2013-01-29 11:27:56

juray
Member
Registered: 2012-01-12
Posts: 26

Re: mplayer mp4 no video

My graphic card is:

$ lspci -vmm -s 00:02.0
Slot:	00:02.0
Class:	VGA compatible controller
Vendor:	Intel Corporation
Device:	2nd Generation Core Processor Family Integrated Graphics Controller
SVendor:	Hewlett-Packard Company
SDevice:	Device 2ab5
Rev:	09

And section from xorg config:

Section "Device"
	Identifier	"Intel Graphics"
	Driver		"intel"
	Option		"AccelMethod"	"sna"
EndSection

I apped my mplayer config file with this line:

vo=x11

... and now mp4 videos play without error (only with some "Unsupported PixelFormat ..." messages).. Thank you!

$ mplayer EVE_latest_rotation.mp4 
MPlayer SVN-r35421-4.7.2 (C) 2000-2012 MPlayer Team
199 audio & 415 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 EVE_latest_rotation.mp4.
libavformat version 54.36.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (mpeg4), -vid 0
VIDEO:  [MP4V]  320x240  24bpp  24.000 fps  2506.2 kbps (305.9 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2mp41
 creation_time: 1970-01-01 00:00:00
 encoder: Lavf52.32.0
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.71.100 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [x11] 320x240 => 320x240 Planar YV12 
[swscaler @ 0x10ee920]using unscaled yuv420p -> bgra special converter
V:  48.6   0/  0  2%  0%  0.0% 0 0 


Exiting... (End of file)

Offline

Board footer

Powered by FluxBB