You are not logged in.
Hey
How can I make mplayer display a video in the shell?
I tried watching a video in Xorg using xterm and mplayer and it worked just fine.
But after quitting Xorg and being in the 'real' shell I tried it again, this time mplayer doesn't display anything beside some weird letters appearing randomly. (The sound of the video is there, so just the video itself is not displayed)
Is this a bug, or does mplayer need Xorg to display videos?
If it's not the case, how can I make mplayer display videos in the shell without any X-Server?
Thanks in advance.
Last edited by azerty (2007-08-30 16:51:51)
Why are we here? What is the sense of life?
INVITATION TO THE TRUTH
Offline
It's not a bug. It's a feature! (tm)
Mplayer by default selects the video output it finds most suitable. What you've seen was libaa oder libcaca (coloured libaa) as video output.
No help for you actual problem, though. Sorry.
Last edited by harlekin (2007-08-30 14:51:23)
Hail to the thief!
Offline
It's not a bug. It's a feature! (tm)
Mplayer by default selects the video output it finds most suitable. What you've seen was libaa oder libcaca (coloured libaa) as video output.
No help for you actual problem, though. Sorry.
Ok if it's a feature, fine. I'll stay with that.
Maybe there's a possibility the force a certain video output, I'll take a look at the manual.
Thanks.
Why are we here? What is the sense of life?
INVITATION TO THE TRUTH
Offline
It is possible to force certain video output.
Try:
mplayer -vo help
And you'll get list of possible video output options.
Offline
Really nice that mplayer is capable of playing in a framebuffer.
mplayer -vo fbdev2 file
Is there a way to obtain fullscreen output even out of X?
Hail to the thief!
Offline
Really nice that mplayer is capable of playing in a framebuffer.
mplayer -vo fbdev2 file
Is there a way to obtain fullscreen output even out of X?
Yeah, I finally managed to get mplayer working without X too. Mplayer is really an amazing piece of code.
If you want to have at least the video centered in the screen, try 'mplayer -vo fbdev2 file -fs'.
I tried fullscreen by pushing the key 'f' during playback, but it don't works.
Any ideas about fullscreen mode? I'm sure it is possible, I must have overseen it in the manual..
Last edited by azerty (2007-08-30 20:28:08)
Why are we here? What is the sense of life?
INVITATION TO THE TRUTH
Offline
It is possible:
mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768 FILENAME.avi
You can adjust -x and -y according to your resolution. Yes mplayer is realy amazing!
Offline
Being able to play video in the console sounds very interesting!
But when I try
mplayer -vo fbdev2 file
it gives an error something like :
/dev/fb0: No such device
I even tried
mknod /dev/fb0 c 29 0
to create /dev/fb0, but still no help!!
What else do I need to do?? (I am already googling to find an answer, but still any help will be appreciated!)
March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)
Offline
Try
mplayer -vo fbdev file
On my system I'm able to use both fbdev and fbdev2. But as far as I know, the mplayer manual states that not every system is able to use both framebuffers. So just try it out without the '2'.
Why are we here? What is the sense of life?
INVITATION TO THE TRUTH
Offline
Try
mplayer -vo fbdev file
On my system I'm able to use both fbdev and fbdev2. But as far as I know, the mplayer manual states that not every system is able to use both framebuffers. So just try it out without the '2'.
Thank you, but I've already tried it!! (After reading 'mplayer -vo help' & man mplayer)
But even that doesn't work!!
March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)
Offline
You have to configure framebuffer in grub. Add vga=0x317 at the end of kernel line in /boot/grub/menu.lst. This will set you framebuffer with 1024x768@16K.
Something like this:
title Arch fb
root (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro lapic acpi nmi_watchdog=0 vga=0x317
initrd /boot/kernel26.img
boot
If you'd like other resolutions you can choose from one of theese:
# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
Offline
Nice, but how does one get fullscreen with correct AR ?
and is there away so you dont have to write mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768 FILENAME.avi everytime?
Last edited by Tigertailz (2007-09-11 20:37:01)
Offline
Nice, but how does one get fullscreen with correct AR ?
and is there away so you dont have to write mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768 FILENAME.avi everytime?
Yeh...I guess you could write a shell script for it!!
March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)
Offline
Tigertailz wrote:Nice, but how does one get fullscreen with correct AR ?
and is there away so you dont have to write mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768 FILENAME.avi everytime?
Yeh...I guess you could write a shell script for it!!
Or maybe an alias :
alias mpfb="mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768"
Or just put these settings in mplayer config if you only use mplayer in the shell.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Yes I created an alias, but I have to use sudo to start the commands, do root have to own /dev/fb0 ?
and correct AR would pwn
Last edited by Tigertailz (2007-09-11 21:07:12)
Offline
I recently tried the cvidix driver on framebuffer, just out of curiosity, and it worked fine - correct AR etc. I needed to set screenw and screenh on the command line, and you can only run the vidix drivers as root.
Offline
Can you plz give an exampkle of your command?
Offline
mplayer -vo cvidix -screenh <blah> -screenw <blah> awesome_video.avi
Offline
Damn didnt work for me, could find working VIDIX driver
Offline
This might help: http://www.mplayerhq.hu/DOCS/HTML/en/vidix.html
Offline
Unfortunaly my graphicscard wasnt supported, any other thought on how to get correct AR ?
Offline
Unfortunaly my graphicscard wasnt supported, any other thought on how to get correct AR ?
If the fbdev output works fine but you just have the wrong aspect ratio, you probably just need to set the right options. I don't think the aspect ratio will be preserved if you manually specify both the x+y resolution on the command line.
Here's some arguments you probably should look into:
-xy (xres) -- sets the x resolution and allows scaling, but determines y res by the aspect ratio
-monitoraspect (ratio) -- sets your display's aspect ratio
-aspect (ratio) -- manually overides the video aspect ratio
I would probably specify these options in the config file, but you can do it manually on the console as well.
References:
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
http://www.mplayerhq.hu/DOCS/HTML/en/index.html
http://forum.doom9.org/showthread.php?t=41057
http://lists.mplayerhq.hu/pipermail/mpl … 52276.html
Offline
Thank you so much, works like a charm !
Offline
Sorry for reopening the thread, but how did you get rid of the console writings?
Using setterm -cursor off I can remove the cursor, using mplayer bla bla &>/dev/null I can remove mplayer output, but I'd like a whole clean screen or the movie seen OVER the console text...
Offline
use clear command before startting, but still it would be nice to see non 100% fullscreen movie in the middle of sreen not on top side.
Offline