[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:software:mplayer [2012/10/20 00:00 (UTC)] – aschyiel | howtos:software:mplayer [2012/10/20 00:58 (UTC)] (current) – Added tags. Do not use quotes in a heading. alienbob | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | == "How to use MPlayer on the command-line" | + | ====== How to use MPlayer on the Command-line ====== |
[[http:// | [[http:// | ||
- | == What is mplayer? == | + | ===== What is mplayer? |
- | Basically, mplayer is a command-line | + | Basically, mplayer is a command-line |
- | Because mplayer doesn' | + | Because mplayer doesn' |
- | == How to invoke mplayer == | + | ===== How to invoke mplayer ===== |
+ | Below are a couple of basic ways of calling mplayer. | ||
< | < | ||
Line 18: | Line 19: | ||
</ | </ | ||
- | == Useful shortcut keys == | + | ==== Useful shortcut keys ==== |
- | While running, mplayer can be controlled additional keyboard input. | + | While running, mplayer can be controlled |
Some simple but memorable shortcuts: | Some simple but memorable shortcuts: | ||
- | spacebar - Toggles pause/ | + | * spacebar - Toggles pause/ |
- | return - Next track. | + | |
+ | * ctrl+c - Escape/Quit. | ||
- | == Gotchas == | + | === Gotchas |
Don't accidentally hit the arrow keys while mplayer is running; It will alter the audio playback speed (quite annoying). | Don't accidentally hit the arrow keys while mplayer is running; It will alter the audio playback speed (quite annoying). | ||
+ | |||
+ | ==== Playlists ==== | ||
+ | You can also tell mplayer to play tracks from a playlist. | ||
+ | |||
+ | First you need to create a playlist file. | ||
+ | < | ||
+ | $ find . -type f -iname *.mp3 > my_list.txt | ||
+ | </ | ||
+ | |||
+ | And then you can take the playlist and feed it into mplayer. | ||
+ | < | ||
+ | $ mplayer -playlist my_list.txt | ||
+ | </ | ||
+ | |||
+ | If you're feeling frisky, you can also tell mplayer to shuffle your playlist as well. | ||
+ | < | ||
+ | $ mplayer -shuffle -playlist my_list.txt | ||
+ | </ | ||
+ | |||
+ | === Example Playlist Demonstration === | ||
+ | |||
+ | The below terminal output demonstrates mplayer playlists in action. | ||
+ | |||
+ | < | ||
+ | [ roach@sepsis: | ||
+ | [ roach@sepsis: | ||
+ | MPlayer 20101218-4.5.1 (C) 2000-2010 MPlayer Team | ||
+ | |||
+ | Playing SchoolyardHeroes/ | ||
+ | Audio only file format detected. | ||
+ | Clip info: | ||
+ | | ||
+ | | ||
+ | | ||
+ | Year: 2007 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ========================================================================== | ||
+ | Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 | ||
+ | AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000-> | ||
+ | Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) | ||
+ | ========================================================================== | ||
+ | AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) | ||
+ | Video: no video | ||
+ | Starting playback... | ||
+ | A: 20.8 (20.8) of 189.0 (03: | ||
+ | |||
+ | </ | ||
+ | |||
+ | Note: The above example' | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ====== Sources ====== | ||
+ | <!-- If you are copying information from another source, then specify that source --> | ||
+ | * Written by [[wiki: | ||
+ | |||
+ | <!-- Please do not modify anything below, except tags.--> | ||
+ | {{tag> |