LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using mplayer without gui (https://www.linuxquestions.org/questions/linux-newbie-8/using-mplayer-without-gui-691137/)

sumeet inani 12-17-2008 02:05 AM

using mplayer without gui
 
i am using open suse 10.3.
I installed tarball of mplayer but used ./configure without enabling option of gui.When i execute mplayer <movie file>.The file is played but screen is not visible anywhere though sound is heard.Actually I wanted to use mplayer with minimum configuration.

sycamorex 12-17-2008 02:16 AM

you probably didn't copy the necessary codecs. They can be downloaded on the mplayer's website. Just extract them to a folder. There's a readme file in the codecs pack which will tell you where to copy them to.

sumeet inani 12-17-2008 11:19 PM

dear sycamorex
I read the README file that came with mplayer tarball which first asked to create a particular folder and copy codecs into it.Then it asked to use ./configure & it is optional to add enable gui which I did not do then as usual 'make' followed by 'make install' & no error occured.Actually previously I had installed mplayer with gui enabled then added skin & everything had worked fine but I just want to install mplayer without gui then play file using simple command 'mplayer <filepath>'.Is it possible.

nflenz 12-17-2008 11:36 PM

You need to add the -vo option.

Code:

$ mplayer -vo help
MPlayer dev-SVN-rUNKNOWN-4.2.4 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (Family: 15, Model: 107, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Available video output drivers:
        xv      X11/Xv
        x11    X11 ( XImage/Shm )
        xover  General X11 driver for overlay capable video output drivers
        gl      X11 (OpenGL)
        gl2    X11 (OpenGL) - multiple textures version
        dga    DGA ( Direct Graphic Access V2.0 )
        sdl    SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        fbdev  Framebuffer Device
        fbdev2  Framebuffer Device
        aa      AAlib
        v4l2    V4L2 MPEG Video Decoder Output
        xvidix  X11 (VIDIX)
        cvidix  console VIDIX
        null    Null video output
        mpegpes MPEG-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png    PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        tga    Targa output
        pnm    PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame

On my system, I use sdl for video. Try all of the available drivers and pick the one that works best for you.

sumeet inani 12-18-2008 01:03 AM

Thanks to nflenz.I will try all video output options & report in this thread if I got any problem.

sycamorex 12-18-2008 05:23 AM

If you compiled mplayer without any errors and copied the codecs to the appropriate folder than you should be ready to go. If not, then as nflenz advised, you need to specify the -vo (video output, I guess) eg.
Quote:

mplayer -vo xv yourfilm.avi
Once you've found out which vo works on your system, you can save it in mplayer's config file:
~/.mplayer/config

You can store there any config options: eg.
Quote:

vo="xv"
load_fullscreen = "yes"
good luck

sumeet inani 12-19-2008 01:36 AM

fbdev Framebuffer DeviceVideo
fbdev2 Framebuffer Device
v4l2 V4L2 MPEG Video Decoder Output
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


tried all of them but none of them showed the video window.
NOTE:there is no graphic card in my CPU just embedded intel 82810E graphic controller.Does that help.Any other sugestion?

sycamorex 12-19-2008 03:18 AM

have you tried 'xv'?
What's the exact error that you get after eg. mplayer -vo xv film.avi

sumeet inani 12-21-2008 11:11 PM

To sycamorex
As mentioned above there is no option of xv.Also I think without gui window will not appear.Have you installed without enabling gui during ./configure?

liuguobiao 12-21-2008 11:31 PM

hi

I have the same problem ,and I finaly find what is the problem is:
I do './configure' without any setting, so mplayer will find decoder in default path:
/usr/local/lib/codecs
/usr/lib/win32

but my system have no such directory. then I create these directorys and mv my decoder to these directory ,finaly ,It works !

so you can try to check your directory ,if that like me,do it like me !

sumeet inani 12-25-2008 10:06 PM

To liuguobiao,
What you have said is already mentioned in mplayer readme & it is actually the first step before ./configure.To quote:

Unpack the codecs archives and put the contents in a directory where MPlayer will find them. The default directory is /usr/local/lib/codecs/ (it used to be /usr/local/lib/win32 in the past, this also works)

John VV 12-25-2008 10:50 PM

you will like the QT frontend to mplayer called SMPlayer
http://smplayer.sourceforge.net/


All times are GMT -5. The time now is 11:43 PM.