Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
i am using RHEL 5.3
I cannot subscribe to RHEL repo because I don't have registration number but people say cent OS is similiar.
I tried to install mplayer from tarball (i have copied essential codecs files to /usr/local/lib/codecs)with
./configure --enable-gui
I got error
Error: X11 support required for GUI compilation.
In ubuntu I used to do "#apt-get install xorg-dev" but it seems I cannot find any such alternative in repository though I am subscribed to atrpms,rpmfusion,epel.
if I run just
./configure
for mplayer then everything goes fine (including make & make install) but when I play video using mplayer I get sound but no window displaying the frame.
Actually my totem did not play mkv video even after gstreamer0.10-ffmpeg , gstreamer0.10-plugins-bad , ugly installation(also libmatroska and libmatroska-devel).
Another thing you might say do "#yum install mplayer" but I get
--> Missing Dependency: libXvMC.so.1 is needed by package 4:mplayer-1.0-72_snap20091120.el5.i386 (atrpms)
Error: Missing Dependency: libXvMC.so.1 is needed by package 4:mplayer-1.0-72_snap20091120.el5.i386 (atrpms)
One more thing-i am using totem version is 2.16.7.
what do you suggest ?
(1)You can tell me viewing video without gui in mplayer.
(2)resolving dependency in mplayer installation using yum
(3)What totem needs to play mkv ?
Thank you for your patience in reading this.
i have tried to be technical & explanatory for your convenience.
Last edited by sumeet inani; 02-24-2010 at 12:01 AM.
Reason: added info about totem
You should get yourself a copy of CentOS5.4 rather than RHEL if you are not paying for the subscription. That will give you the power to use yum. You can use mplayer to watch videos on shell but you need X to be running for that most probably. I remember doing that on F7. But that was definitely with X server running.
Okay I ran
$mplayer -vo help
fbdev Framebuffer Device
fbdev2 Framebuffer Device
cvidix console VIDIX
null Null video output
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
I tried all of the above but I get
DVB card number must be between 1 and 4
Video: no video
except in yuv4mpeg where I get stream.yuv file and tga,pnm,md5sum where I get list of files.
Is there a hardware requirement for fbdev or cvidix.My CPU is powerful enough 2GB DDR2 RAM,3GHz core2duo ?
Last edited by sumeet inani; 02-17-2010 at 12:24 AM.
I am not familiar with RHEL like Linux but I can explain little bit about Mplayer.
Default mplayer is command line oriented video player which uses available graphical libraries to actually display the video. So in extreme case you dont need X11 at all and can use AAlib to watch video entirely in console http://oreilly.com/pub/h/4441
Most of the graphical libraries are usually already presented in system and does not pose much a problem.
But most people are not happy about using command line to start their videos. So Mplayer have available graphical front end (GUI). But to actually compile mplayer with gui, you need to have dev packages of GTK which in turn needs dev package of X11.
So you have two options. Either find Mplayer in some repository and install it. Or compile it yourself but then you need all dev packages. Some hints what you need can be found here: http://www.linuxfromscratch.org/blfs...a/mplayer.html bBut be aware that it expect all packages to be build from source codes and hence have all dev parts already installed.
you need to specify -vo cvidix or -vo xvidix according to where you want to rum your video (console, X). But to do so you also need to run mplayer as root or SUID which mean security risk. Alternatively you can use kernel module.
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
Error opening/initializing the selected video_out (-vo) device.
Video: no video
#mplayer -v help
Code:
MPlayer SVN-r29963-snapshot-4.1.2 (C) 2000-2009 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 13
CPU: Intel(R) Core(TM)2 CPU E8400 @ 3.00GHz (Family: 6, Model: 23, Stepping: 10)
extended cpuid-level: 8
extended cache-info: 402686016
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/abhiluv/.mplayer/codecs.conf'
Reading /home/abhiluv/.mplayer/codecs.conf: Can't open '/home/abhiluv/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration:
CommandLine: '-v' 'option'
get_path('font/font.desc') -> '/home/abhiluv/.mplayer/font/font.desc'
font: can't open file: /home/abhiluv/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/abhiluv/.mplayer/input.conf'
Can't open input config file /home/abhiluv/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
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.
get_path('option.conf') -> '/home/abhiluv/.mplayer/option.conf'
Playing option.
get_path('sub/') -> '/home/abhiluv/.mplayer/sub/'
File not found: 'option'
Failed to open option.
Exiting... (End of file)
I am not much familiar with vidix driver so i cant provide much informations. It's configuration depends highly on what graphic card you have (as indicated in link i posted previously).
For mplayer to run you need a working video driver, in a text-only environment that'd be ascii art, via aalib, luck seeing a movie using that though.
Mplayer has a fair number of video output drivers available, that range from those depending on X (x11, xvideo, opengl and a few others) to those depending on some kind of framebuffer device (that can be through sdl, directfb, 3dfx and probably many others like svgalib, not sure). So, the first thing you should check is whether you have enabled the framebuffer or you are using pure text mode. In the first case you might have some hope, in the second one, ascii art is all you'll get no matter how hard you try, until you configure a proper framebuffer.
In any case, you are having greater problem with your distro than just getting mplayer to run. You should really check the suggestions above and use a distro that you can handle properly without using all kind of external repos and packages that you have no idea whether they work or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.