LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-16-2010, 10:34 PM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
How can I watch video without gui in mplayer


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
 
Old 02-16-2010, 10:54 PM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 02-16-2010, 11:28 PM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I thought gui in OS is present on ctrl+alt+f7.
Quote:
You can use mplayer to watch videos on shell
Can you explain more ?
 
Old 02-16-2010, 11:34 PM   #4
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
http://www.mplayerhq.hu/DOCS/HTML/en/commandline.html
 
Old 02-16-2010, 11:57 PM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
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.
 
Old 02-17-2010, 04:29 PM   #6
kenosando
LQ Newbie
 
Registered: Oct 2009
Distribution: Ubuntu 9.11
Posts: 10

Rep: Reputation: 0
You need the package mplayer-nogui
 
Old 02-18-2010, 12:16 AM   #7
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
There is 'mplayer-nogui' in ubuntu
but in RHEL 5.3 Non official repos
Code:
#yum list available | grep -i mplay
gnome-mplayer.i386                           0.9.8-7.el5                atrpms  
mplayer.i386                                 4:1.0-72_snap20091120.el5  atrpms  
mplayer-doc.i386                             1.0-0.101.20080903svn.el5.1
mplayer-docs.i386                            1.0-0.41.svn20090711.el5.rf
mplayer-fonts.noarch                         4:1.0-7.at                 atrpms  
mplayer-gui.i386                             1.0-0.101.20080903svn.el5.1
mplayer-skins.noarch                         4:1.0-16                   atrpms  
mplayerplug-in.i386                          3.55-35.el5                atrpms  
smplayer.i386                                0.6.8-4.el5                atrpms  
xmms-mplayer.i386                            0.5-4.el5                  atrpms  
#
What do you say ?
 
Old 02-18-2010, 05:18 AM   #8
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 99

Rep: Reputation: 21
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.
 
1 members found this post helpful.
Old 02-19-2010, 12:09 AM   #9
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
i installed aalib from tarball then mplayer & got aa as one of video output options.
This ascii art is interesting.


(1)How can I use vidix (video interface for unix) to watch video as it is available in my vo for mplayer.('mplayer -vo vidix File' did not help)

Last edited by sumeet inani; 02-19-2010 at 12:34 AM.
 
Old 02-19-2010, 03:04 PM   #10
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 99

Rep: Reputation: 21
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.

More info here: http://www.mplayerhq.hu/DOCS/HTML/en/vidix.html
 
Old 02-22-2010, 04:00 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I tried
#mplayer -vo cvidix File

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)
What can I conclude ?
 
Old 02-23-2010, 03:00 AM   #12
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 99

Rep: Reputation: 21
you can conclude that you ran
Code:
mplayer -v option
not
Code:
mplayer -v help
as you indicated above.

What you probably wanted to run was
Code:
mplayer -vo help
which will give list of available video outputs.

Or run
Code:
mplayer -v -vo cvidix File
for more information

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).
 
Old 02-23-2010, 03:12 AM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 02-23-2010, 10:13 PM   #14
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
My CPU is core2duo with 256MB video RAM on motherboard but no graphic card in any slot.
how can I configure frame buffer ?
 
Old 02-24-2010, 02:07 AM   #15
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Check this, it might be already enabled. Port the output for this command:

Code:
ls -l /dev/fb*
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to loop or repeat video in MPlayer GUI? Trey2501 Linux - Software 3 08-29-2015 06:46 PM
Xserver failed,not able to watch GUI ravi_chobey Linux - Software 1 08-07-2008 05:30 AM
How to watch movie while recording in Mplayer? linx win Debian 3 01-27-2007 01:05 PM
Watch Commands Execute in GUI within background lennysokol Linux - General 1 05-16-2005 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration