How to play music in terminal?
up vote
11
down vote
favorite
I want a command line to play a specific music file in terminal (or script) from my hard-disk. It would be better to do it without installing extra packages.
command-line
add a comment |
up vote
11
down vote
favorite
I want a command line to play a specific music file in terminal (or script) from my hard-disk. It would be better to do it without installing extra packages.
command-line
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58
add a comment |
up vote
11
down vote
favorite
up vote
11
down vote
favorite
I want a command line to play a specific music file in terminal (or script) from my hard-disk. It would be better to do it without installing extra packages.
command-line
I want a command line to play a specific music file in terminal (or script) from my hard-disk. It would be better to do it without installing extra packages.
command-line
command-line
edited Apr 3 '14 at 5:13
Braiam
51.2k20134219
51.2k20134219
asked Nov 25 '11 at 14:41
Black Block
2,393174064
2,393174064
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58
add a comment |
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58
add a comment |
4 Answers
4
active
oldest
votes
up vote
8
down vote
accepted
I think the default installation has no way to play audio files from command line, other than using aplay
on WAV files (aplay
also support other formats, but the man page is not clear in this regard).
To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras
, and a player like mplayer
or cvlc
, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missedSox
!
– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
add a comment |
up vote
8
down vote
There are players such as cmus
, mpg321
, ogg123
, etc.
add a comment |
up vote
3
down vote
There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.
(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)
Have a look at http://kmandla.wikispaces.com/search/view/music.
Worthy of special mention are moc and cmus.
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
add a comment |
up vote
3
down vote
Try sudo apt-get install moc
and then mocp
in a new terminal window.
This will let you play the selected audio from the terminal.
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
I think the default installation has no way to play audio files from command line, other than using aplay
on WAV files (aplay
also support other formats, but the man page is not clear in this regard).
To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras
, and a player like mplayer
or cvlc
, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missedSox
!
– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
add a comment |
up vote
8
down vote
accepted
I think the default installation has no way to play audio files from command line, other than using aplay
on WAV files (aplay
also support other formats, but the man page is not clear in this regard).
To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras
, and a player like mplayer
or cvlc
, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missedSox
!
– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
add a comment |
up vote
8
down vote
accepted
up vote
8
down vote
accepted
I think the default installation has no way to play audio files from command line, other than using aplay
on WAV files (aplay
also support other formats, but the man page is not clear in this regard).
To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras
, and a player like mplayer
or cvlc
, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.
I think the default installation has no way to play audio files from command line, other than using aplay
on WAV files (aplay
also support other formats, but the man page is not clear in this regard).
To play, for example, MP3 files, you need restricted codecs available through ubuntu-restricted-extras
, and a player like mplayer
or cvlc
, but there are many other: see What Media Players Are there? where text based and GUI based audio players are listed.
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Nov 25 '11 at 14:56
enzotib
62.2k6131153
62.2k6131153
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missedSox
!
– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
add a comment |
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missedSox
!
– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
ubuntu-restricted-extras is considered as default in Ubuntu(as all have to install it with installation or after)i always install them when setting-up Ubuntu.
– Black Block
Nov 25 '11 at 18:02
The missed
Sox
!– Vorac
Nov 25 '13 at 12:45
The missed
Sox
!– Vorac
Nov 25 '13 at 12:45
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
APlay does not play m4a files... or it does, but it sounds like a dialup connection.
– Akiva
Apr 16 '14 at 7:18
add a comment |
up vote
8
down vote
There are players such as cmus
, mpg321
, ogg123
, etc.
add a comment |
up vote
8
down vote
There are players such as cmus
, mpg321
, ogg123
, etc.
add a comment |
up vote
8
down vote
up vote
8
down vote
There are players such as cmus
, mpg321
, ogg123
, etc.
There are players such as cmus
, mpg321
, ogg123
, etc.
answered Nov 25 '11 at 18:18
Anonymous
8,20452731
8,20452731
add a comment |
add a comment |
up vote
3
down vote
There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.
(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)
Have a look at http://kmandla.wikispaces.com/search/view/music.
Worthy of special mention are moc and cmus.
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
add a comment |
up vote
3
down vote
There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.
(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)
Have a look at http://kmandla.wikispaces.com/search/view/music.
Worthy of special mention are moc and cmus.
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
add a comment |
up vote
3
down vote
up vote
3
down vote
There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.
(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)
Have a look at http://kmandla.wikispaces.com/search/view/music.
Worthy of special mention are moc and cmus.
There are several text based Media Players which play in the Terminal, which are not mentioned in "What Media Players Are There?" ---but they will all involve some download.
(You do say "It would be better to do it without installing extra packages" but you do not say it is a definite no-no)
Have a look at http://kmandla.wikispaces.com/search/view/music.
Worthy of special mention are moc and cmus.
answered Nov 25 '11 at 16:19
arochester
1,99411114
1,99411114
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
add a comment |
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
A very good collection, thanks.
– Black Block
Nov 25 '11 at 17:57
add a comment |
up vote
3
down vote
Try sudo apt-get install moc
and then mocp
in a new terminal window.
This will let you play the selected audio from the terminal.
add a comment |
up vote
3
down vote
Try sudo apt-get install moc
and then mocp
in a new terminal window.
This will let you play the selected audio from the terminal.
add a comment |
up vote
3
down vote
up vote
3
down vote
Try sudo apt-get install moc
and then mocp
in a new terminal window.
This will let you play the selected audio from the terminal.
Try sudo apt-get install moc
and then mocp
in a new terminal window.
This will let you play the selected audio from the terminal.
edited Sep 30 '15 at 18:24
kos
25.1k869118
25.1k869118
answered Sep 30 '15 at 9:23
Seshu Paturu
314
314
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f82605%2fhow-to-play-music-in-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
MoC (Music on Console) is another option worth exploring. Here's a guide to set this up.
– legends2k
Feb 27 '14 at 16:58