PDA

View Full Version : how can I play mp3 files from terminal ??



zazlox
December 8th, 2010, 08:22 PM
is there any command line or a tip to play mp3 file from terminal.
?????
please

I'mGeorge
December 8th, 2010, 08:37 PM
by installing the following terminal apps xmms2, sox or moc and I believe there are even more out there.

zazlox
December 8th, 2010, 09:59 PM
xmms2, sox, moc

how can i use them .

when i type for example xmms on quick search on synaptic

i see a too many result that look similar

how can i know which one to install. and how to use it on terminal

i mean which command shall i type.

I'mGeorge
December 8th, 2010, 11:34 PM
In your terminal just type



sudo apt-get install xmms2


here's a tutorial for xmms2 http://www.dannybuntu.com/2009/02/howto-play-mp3-on-terminal.html

If you wanna try moc too, install it in the same manner, and just launch it by simply typing moc into your terminal after that, and an interface similar to midnight commander will pop out. For moc your terminal window has to be fullscreen or enough wide.

Sox it's primarely destined for audio files conversion so you shouldn't install it if you just want something to play your audio files. But if you choose to install it in your terminal just do



man sox

and it will tell you everything that's to be known about it.

zazlox
December 9th, 2010, 12:11 AM
I'MGeorge

.............

thanks for helping , i really appreciate that

i'll use just xmms. very useful :)

Sub101
December 9th, 2010, 12:14 AM
MPlayer also has a terminal option.

I have the following alias in my .bashrc


alias progmusic='mplayer -shuffle /$HOME/Music/Programming/*'

zazlox
December 9th, 2010, 12:53 AM
sub101
..........

for the command line to play file

is it the same way as xmms2

mplayer play <the song's name>

or

just : mplayer < the song's name >

rx007
December 9th, 2010, 12:59 AM
hello try to install mpg321

i've been using that for years. :)



sudo apt-get install mpg321


mpg321 mmusic.mp3

zazlox
December 9th, 2010, 01:12 AM
hello try to install mpg321

i've been using that for years. :)



sudo apt-get install mpg321


mpg321 mmusic.mp3



thanks for that. well , we got too many options for playing audio files from terminal

Great. :) I like using or doing most things from terminal that's why I asked this question.

now I'm happy , i can play audio files also from terminal ;)

andrew.46
December 9th, 2010, 10:37 PM
Just to add some confusion there is also my personal favourite mpg123:



andrew@skamandros~/music/ftgws$ mpg123 --long-tag --control Revelation_21.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.12.4; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes


Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: Revelation_21.mp3 ...

Title: A New Heaven
Artist: Lesley Garrett
Album: Lesley Garrett - The Singer
Year: 2005
Genre: Classical
Comment: ABC Classic FM broadcast

MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo

[6:05] Decoding of Revelation_21.mp3 finished.


Andrew

bazita
November 11th, 2011, 07:38 PM
طبعا يمكن تشغيل ملفات الصوتية
mp3
وحتي أي ملف صوتي أو فيديو
أولا يجب تتبيت برنامح
VLC
تم من
terminal
أكتب
vlc أمر
متبوعا ب إسم الملف

eazyigz
January 16th, 2013, 07:26 AM
hello try to install mpg321

i've been using that for years. :)



sudo apt-get install mpg321


mpg321 mmusic.mp3


That is great advice, works perfectly!