The Wiki has moved to new hardware, and the old server died.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:software:mplayer [2012/10/20 00:23 (UTC)]
aschyiel Updating the mplayer article to include playlist usage.
howtos:software:mplayer [2012/10/20 00:58 (UTC)] (current)
alienbob Added tags. Do not use quotes in a heading.
Line 1: Line 1:
  
  
-== "How to use MPlayer on the command-line" ​==+====== How to use MPlayer on the Command-line ======
 [[http://​www.linuxquestions.org/​questions/​slackware-14/​slackware-documentation-project-4175422561/​|As suggested by kikinovak as a slackdoc topic]]. [[http://​www.linuxquestions.org/​questions/​slackware-14/​slackware-documentation-project-4175422561/​|As suggested by kikinovak as a slackdoc topic]].
  
-== What is mplayer? == +===== What is mplayer? ​===== 
-Basically, mplayer is a command-line movie player packaged into most slackware installations ​that happens to work great with music files in addition to watching movies.+Basically, mplayer is a command-line movie player packaged into most slackware installations; It happens to work like a champ with music files in addition to watching movies.
 Because mplayer doesn'​t strictly require a desktop environment to be running while playing music, it is quite light and is ideal for wimpier machines such as netbooks. Because mplayer doesn'​t strictly require a desktop environment to be running while playing music, it is quite light and is ideal for wimpier machines such as netbooks.
  
-== How to invoke mplayer ==+===== How to invoke mplayer ​=====
 Below are a couple of basic ways of calling mplayer. Below are a couple of basic ways of calling mplayer.
  
Line 19: Line 19:
 </​code>​ </​code>​
  
-== Useful shortcut keys ==+==== Useful shortcut keys ====
 While running, mplayer can be controlled by additional keyboard input. While running, mplayer can be controlled by additional keyboard input.
  
Line 27: Line 27:
   * ctrl+c - Escape/​Quit.   * 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 ==+==== Playlists ​====
 You can also tell mplayer to play tracks from a playlist. You can also tell mplayer to play tracks from a playlist.
  
Line 48: Line 48:
 </​code>​ </​code>​
  
-=== Playlist ​Example Demonstration ===+=== Example ​Playlist ​Demonstration ===
  
 The below terminal output demonstrates mplayer playlists in action. The below terminal output demonstrates mplayer playlists in action.
Line 83: Line 83:
 [[http://​zuttobenkyou.wordpress.com/​2009/​01/​17/​how-to-quickly-make-a-playlist-for-mplayer/​|Here'​s a nifty article on creating sorted playlists and then some.]] [[http://​zuttobenkyou.wordpress.com/​2009/​01/​17/​how-to-quickly-make-a-playlist-for-mplayer/​|Here'​s a nifty article on creating sorted playlists and then some.]]
  
 +====== Sources ======
 +<!-- If you are copying information from another source, then specify that source -->
 +  * Written by [[wiki:​user:​aschyiel | aschyiel]]
  
- +<!-- Please do not modify anything belowexcept tags.--> 
- +{{tag>howtos software work_in_progress author_aschyiel}}
- +
-== "How to use MPlayer on the command-line"​ == +
-[[http://​www.linuxquestions.org/​questions/​slackware-14/​slackware-documentation-project-4175422561/​|As suggested by kikinovak as a slackdoc topic]]. +
- +
-== What is mplayer? == +
-Basically, mplayer is a command-line movie player packaged into most slackware installations that happens to work great with music files in addition to watching movies. +
-Because mplayer doesn'​t strictly require a desktop environment to be running while playing music, it is quite light and is ideal for wimpier machines such as netbooks. +
- +
-== How to invoke mplayer == +
-Below are a couple of basic ways of calling mplayer. +
- +
-<code> +
-$ mplayer ~/​music/​foo.mp3 # Tell mplayer to play your favourite song. +
-</​code>​ +
- +
-<​code>​ +
-$ mplayer ~/​music/​*.mp3 ​ # Tell mplayer to play all of your mp3 files under your music directory. +
-</​code>​ +
- +
-== Useful shortcut keys == +
-While running, mplayer can be controlled by additional keyboard input. +
- +
-Some simple but memorable shortcuts:​ +
-  * spacebar ​Toggles pause/​play. +
-  * return ​Next track. +
-  * ctrl+c - Escape/​Quit. +
- +
-== Gotchas == +
-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. +
-<​code>​ +
-$ find . -type f -iname *.mp3 > my_list.txt +
-</​code>​ +
- +
-And then you can take the playlist and feed it into mplayer. +
-<​code>​ +
-$ mplayer -playlist my_list.txt +
-</​code>​ +
- +
-If you're feeling friskyyou can also tell mplayer to shuffle your playlist as well. +
-<​code>​ +
-$ mplayer ​-shuffle ​-playlist my_list.txt +
-</code+
- +
-=== Playlist Example Demonstration === +
- +
-The below terminal output demonstrates mplayer playlists in action. +
- +
-<code> +
-[ roach@sepsis:​msk ]$ find SchoolyardHeroes/​Abominations/​ -type f -iname *.mp3 > abominations.txt ​     +
-[ roach@sepsis:​msk ]$ mplayer -playlist abominations.txt  +
-MPlayer 20101218-4.5.1 (C) 2000-2010 MPlayer Team +
- +
-Playing SchoolyardHeroes/​Abominations/​04 - Violence Is All The Rage.mp3. +
-Audio only file format detected. +
-Clip info: +
- ​Title:​ Violence Is All The Rage +
- ​Artist:​ Schoolyard Heroes +
- ​Album:​ Abominations +
- Year: 2007 +
- ​Comment:​ Amazon.com Song ID: 20884756 +
- ​Track:​ 4 +
- ​Genre:​ Unknown +
-========================================================================== +
-Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 +
-AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000->​176400) +
-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:​09.0) ​ 0.3%  +
- +
-</​code>​ +
- +
-Note: The above example'​s find command creates an unsorted playlist (which might not be what you're after). +
- +
-[[http://​zuttobenkyou.wordpress.com/​2009/​01/​17/​how-to-quickly-make-a-playlist-for-mplayer/​|Here'​s a nifty article on creating sorted playlists and then some.]] +
- +
- +

In Other Languages
QR Code
QR Code howtos:software:mplayer (generated for current page)