LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2004, 04:58 PM   #1
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
How to play moviez in console ? (mplayer)


Hello eveybody,
I am trying to play movies using mplayer in the console using the command

mplayer -vo fbdev moviefile

but The video size is small (at the top left of the screen) and there is no audio.
my questions is how to get the audio to work (it works fine using the mplayer GUI under KDE) and how to play it in full screen mode??

Someone might wonder why I am trying to play the movies in the console if its already
working under KDE? well, the answer is that its not quite working. I am having a Trident Microsystems CyberBlade video card, running Debian sarge (kernel 2.6.3) and KDE 3.2. Using mplayer (I tried other players and got the same result) when tryin to play a movie a get a completely green screen (green lines) , audio is ok. Note that this behavior is completely random. sometimes it occurs,sometimes not.sometimes I close mplayer and open it once again and it works.sometime it dont.sometimes just rebooting gets it to work.
At the beginning I thought may it is a problem with the player (.deb file) itself,so I complied
mplayer myself and got the same result.
I have googled for that problem,and found somebody having the same exact problem and saying that it might be a problem with the trident driver.

Any suggestions would be really appreciated.
 
Old 05-10-2004, 05:39 PM   #2
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
try this:

mplayer -fs movilefile

let me know if this works.
 
Old 05-10-2004, 06:33 PM   #3
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
I used the command:

mplayer -vo fbdev -fs moviefile

and it did work in the whole screen. but still the resolution of the movie
is very small.just a small rectangle in the middle of the screen. And still no
sound .

thanx for your reply.
 
Old 05-10-2004, 07:44 PM   #4
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
are you using the right sound output driver? do this:
mplayer -ao help
 
Old 05-10-2004, 08:11 PM   #5
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
Thanx LavaDevil94 for ur addition. Sound now is working as well.
The full command I used:

mplayer -vo fbdev -ao oss -fs moviefile

Now remains the problem of the size which I mentioned earlier.The movie
played just appears as a small rectangle (not its original resolution) in the
middle of the screen.

Any suggestions?
 
Old 05-13-2004, 11:31 PM   #6
mikeevans
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Angry

I have been struggling with the exact same problem. It appears that mplayer is trying to use hardware scaling (when you use the -fs flag) which isn't supported by the hardware.

I've got my mine to work (finally) by using resorting to the vesa video driver!! The same but with framebuffer causes garbage on screen



mplayer -vo vesa -zoom -xy 1024 -double -sws 2 filename

where:
-zoom tells mplayer to use software zooming
-xy tells mplayer to scale keeping aspect to 1024 wide
-double tells mplayer to use page swapping to reduce flickering
-sws 2 tells mplayer to use a slightly better scaling algorithm (but needs CPU)

Take a look here for more info / options:
http://www.mplayerhq.hu/DOCS/HTML/en...html#yuv-cards


Mike
 
Old 05-14-2004, 03:57 AM   #7
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Original Poster
Rep: Reputation: 30
Man It worked, however I have to add that u need to login as su to use the vesa.
many thanx once again for your help .

this forum rocks
 
  


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
mplayer doesn't play thelonius Linux - Software 1 08-19-2005 01:30 PM
how do i play videos in the console? Necronomicom Slackware 8 11-15-2004 12:55 PM
JAVA: how to play wav file from a console application randomx Programming 5 10-12-2004 02:34 PM
how do i play VCD using mplayer? jogurt666 Linux - General 2 04-12-2004 09:28 AM
can't play anything on mplayer!! blaze_wk Linux - Software 1 01-17-2004 04:49 PM

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

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