Posts tagged ‘mplayer’

Increase mplayer’s volume by 300%

mplayer.png

Some videos you download might not have such a high audio volume, even with alsamixer set to 100%. There’s a trick for this. Start your video with

mplayer -softvol -softvol-max 300 video_file.avi

or

mplayer some.avi -aop volume:volume=300

to boost your volume 300%. Substitute 300 with any number ranging from 10 to 10000. Be careful not to break your speakers.

Source

MPlayer play music recursively in a directory.

mplayer.png

It’s quite often I have directories full of media files (specifically music) and subdirectories within them also with music files, and though the manual for MPlayer is thicker than the Chinese phonebook I have not been able to find any option for it.

I did however find a method which isn’t exactly the guru one-liner, but here it is anyway. It’s broken into two steps, the first to create a playlist:

find -maxdepth 1 -type f -name \*.\* > playlist

Then finally play the playlist:

mplayer -playlist playlist

Just add a -loop 0 suffix if you want to loop

Watch movies in the commandline

mplayer.png

If you have been on the Internet for any amount of time, chances are that you have come across ASCII art (drawings made with the ASCII text characters) either in an email signature, a web site, or some other place. Good ASCII art can take time and talent to look just right, but you can skip through that effort with AAlib (http://aa-project.sourceforge.net/aalib), a library devoted to converting any image into an ASCII art equivalent. Since a movie is basically a system of moving images, MPlayer has added support for AAlib as a video output option. This means that each frame in the movie is converted to an ASCII equivalent and displayed on the screen. This hack describes the basic options needed to convert a video into ASCII art.To MPlayer, AAlib is yet another output format that it can support. Like with other output options, if you have compiled mplayer yourself, you will need to compile in support for AAlib. Many of the MPlayer packages out there already support AAlib, so if you use one of those, you should be fine.

Continue reading ‘Watch movies in the commandline’ »