How to watch videos in Linux console with the help of MPlayer
Linux console is something really special: someone is afraid of it, someone can’t work without it, and someone listens to the radio and watches videos with the help of it. Agree, it may sound strange, but you may watch videos without GUI. And MPlayer will be your assistant. MPlayer is a powerful multimedia player for GNU Linux. You may ask what do we need that for? Well, the first reason is to show Linux capabilities, and then, you never know what you might need. So, here we go.
The first thing we need to do is to set up a framebuffer and add a user (the user which is registered in the system) in the group ‘video’ in order for MPlayer to be able to show media on your screen without asking for administrative right every time. In order to do this we install MPlayer and fbi image viewer (for viewing images in the terminal):
sudo apt-get install mplayer fbi
Then we go on with the settings.
Framebuffer
Open the file blacklist-framebuffer with any text editor
sudo nano /etc/modprobe.d/blacklist-framebuffer
look for the line blacklist vesafb and put # symbol in front of it. As a result we get the following line: #blacklist vesafb. Save the changes in the blacklist-framebuffer file. After that open modules file.
sudo nano /etc/initramfs-tools/modules
and add the following lines at the end of the file:
fbcon
vesafb
and save the changes in the modules file. Then we reassemble initramfs image file by typing in the following command in the console:
sudo update-initramfs –u
Now we’re done with framebuffer. Let’s continue with the Grub.
Grub
Again we need to edit files in the text editor:
sudo nano /boot/grub/grub.cfg
and in the core option we add a parameter vga=789 to the following line:
linux /boot/vmlinuz-3.0.3-20-generic root=UUID=hsar4s-7rks-9ee2-ad25-c6a33d5cb234 ro quiet vga=789 splash
That’s it, we’re done with Grub. Don’t forget to save the changes (also, you may reboot your computer). If you have a large-format screen then you need to install hwinfo app:
sudo apt-get install hwinfo
and launch it with –framebuffer key:
sudo hwinfo –framebuffer
Choose the mode for your monitor that you need from the list and add it to the vga=xxx as described above in the core parameters.
Adding current user to the “video” group
It’s important to get system privileges in order not use sudo command every time:
sudo usermode –a –G video user_name
where user_name is your system login.
That’s all about the settings. Now let’s see how to watch videos and images in the console. To do that just launch the following command for video:
mplayer -vo fbdev2 film.avi
and for images:
fbi file.png file_1.png
That’s all. Now you can convert your old PC into a DVD player and enjoy your favorite movies.
2012-09-22 09:58:08
Source: http://www.techiestuffs.com/blog/how-to-watch-videos-in-linux-console-with-the-help-of-mplayer/
Source:
Anyone can join.
Anyone can contribute.
Anyone can become informed about their world.
"United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.
Before It’s News® is a community of individuals who report on what’s going on around them, from all around the world. Anyone can join. Anyone can contribute. Anyone can become informed about their world. "United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.
LION'S MANE PRODUCT
Try Our Lion’s Mane WHOLE MIND Nootropic Blend 60 Capsules
Mushrooms are having a moment. One fabulous fungus in particular, lion’s mane, may help improve memory, depression and anxiety symptoms. They are also an excellent source of nutrients that show promise as a therapy for dementia, and other neurodegenerative diseases. If you’re living with anxiety or depression, you may be curious about all the therapy options out there — including the natural ones.Our Lion’s Mane WHOLE MIND Nootropic Blend has been formulated to utilize the potency of Lion’s mane but also include the benefits of four other Highly Beneficial Mushrooms. Synergistically, they work together to Build your health through improving cognitive function and immunity regardless of your age. Our Nootropic not only improves your Cognitive Function and Activates your Immune System, but it benefits growth of Essential Gut Flora, further enhancing your Vitality.
Our Formula includes: Lion’s Mane Mushrooms which Increase Brain Power through nerve growth, lessen anxiety, reduce depression, and improve concentration. Its an excellent adaptogen, promotes sleep and improves immunity. Shiitake Mushrooms which Fight cancer cells and infectious disease, boost the immune system, promotes brain function, and serves as a source of B vitamins. Maitake Mushrooms which regulate blood sugar levels of diabetics, reduce hypertension and boosts the immune system. Reishi Mushrooms which Fight inflammation, liver disease, fatigue, tumor growth and cancer. They Improve skin disorders and soothes digestive problems, stomach ulcers and leaky gut syndrome. Chaga Mushrooms which have anti-aging effects, boost immune function, improve stamina and athletic performance, even act as a natural aphrodisiac, fighting diabetes and improving liver function. Try Our Lion’s Mane WHOLE MIND Nootropic Blend 60 Capsules Today. Be 100% Satisfied or Receive a Full Money Back Guarantee. Order Yours Today by Following This Link.
