LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2003, 05:55 AM   #1
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Rep: Reputation: 30
Question Mplayer in console?!@#????


Read everywhere that mplayer can play in console. Just want to get things really straight, by console, does everybody mean linux without going into X? So is it basically like the DOS of PC?

I am currently using ATI Rage XL AGP video card. I've tried and tried, but nothing worked. I've even used TNT2 and GeForce 2 MX but no dice. Can anyone tell me how to do this?

I compiled mplayer with vesa option on, dga on. The command I issued is mplayer -vo vesa filename.avi but at the end of the output, there is always the "killed" word. It also says -vo device not found or something like that. When trying to show the log file here, the killed word is never displayed in the last line of the log file.

Plese help.
 
Old 03-05-2003, 06:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
is vesa listed when you run "mplayer -vo help"? if so try running it as root. the framebuffer has permissions set on it normally, that do not allow normal users to access it directly.
 
Old 03-05-2003, 07:56 AM   #3
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
yes, vesa is listed. also, I logged in as root.
 
Old 03-05-2003, 09:57 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, give us the full error message:

mplayer -vo vesa file.avi 2>&1 > errorfile

Presuambly you were only saving the stdout stream, which will not contain any actual error messages. normally easist just to copy it from terminal with a mouse drag.
 
Old 03-05-2003, 07:07 PM   #5
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
Here's the output


Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc4-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).

Playing yeey.avi
AVI file format detected.
VIDEO: [DIV3] 352x288 24bpp 29.97 fps 711.5 kbps (86.9 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 8000 Hz, 2 ch, 16 bit (0x10), ratio: 1000->32000 (8.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 8000Hz/2ch/16bit -> 8000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 8000 hz, little endian signed int
AF_pre: 8000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 8000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 8000Hz/2ch/16bit -> 8000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [vesa] 352x288 => 352x288 Planar YV12
Killed
 
Old 03-05-2003, 08:21 PM   #6
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Rep: Reputation: 15
"Read everywhere that mplayer can play in console. Just want to get things really straight, by console, does everybody mean linux without going into X? So is it basically like the DOS of PC? "

to my knowlege its in a terminal (xterm, aterm, Eterm) in X.
i use -vo x11 by the way.
 
Old 03-05-2003, 08:45 PM   #7
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
Hopefully that's not the case. I am really looking forward to seeing this function in console, outside X. I thought this is something that is definitely different from my current Windows setup. Can anyone confirm this? I'm doing ok in mplayer-X setup. Thanks for your reply.
 
Old 03-05-2003, 09:02 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by Schizo265
"Read everywhere that mplayer can play in console. Just want to get things really straight, by console, does everybody mean linux without going into X? So is it basically like the DOS of PC? "

to my knowlege its in a terminal (xterm, aterm, Eterm) in X.
i use -vo x11 by the way.
No you can actually play it on a console.
mplayer -vo vesa /path/to/filename.avi
And it plays on your console (if it's available).



Works great for TV setups.

Cool
 
Old 03-05-2003, 09:19 PM   #9
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
I posted my output above. The command I issued is exactly mplayer -vo vesa filename.avi So what's the problem? How come I can't play it?
 
Old 03-05-2003, 09:34 PM   #10
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Rep: Reputation: 15
woah. thanks, i didnt know. for me, it worked using that command.
 
Old 03-06-2003, 12:03 AM   #11
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
Do you mean console outside X???
 
Old 03-06-2003, 12:18 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes, yes I do...
 
Old 03-06-2003, 01:07 AM   #13
jang
Member
 
Registered: Nov 2002
Location: Manila
Distribution: Fedora core 2 Gnome 2.6
Posts: 156

Original Poster
Rep: Reputation: 30
any suggestions?
 
Old 03-06-2003, 01:58 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I wish I did...

Are you trying to have it go out to a TV or your monitor? Have you tried any other video/movie to see if that's the problem?

Seems a bit odd, it's always worked for me as long as I was root... You are doing this from a Console (CTRL ALT F1-6) and not something like xterm right?

If anyone can pull you through this it'll be the resident expert on MPlayer, Acid. Let's see what he has to say...

Cool
 
Old 03-06-2003, 02:31 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
tried using a different output such as dga, fbdev or SDL?
 
  


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
Background Mplayer from Console paco36 Linux - General 13 02-08-2013 04:48 AM
How to play moviez in console ? (mplayer) OneManArmy Linux - Software 6 05-14-2004 03:57 AM
mplayer in pure console (without X) septanla Linux - Software 2 10-20-2003 08:23 PM
mplayer in Console again septanla Linux - General 8 10-17-2003 10:47 PM
mplayer not playing films in console Sastian Linux - Newbie 4 09-27-2003 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 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