I have a folder of .mp3 files . Now I want to open these
files through media player from the command line itself
without going to the folder through gui and then clicking
on the song. How to do this??
I have a folder of .mp3 files . Now I want to open these
files through media player from the command line itself
without going to the folder through gui and then clicking
on the song. How to do this??
Supposing you use vlc
Code:vlc /path-to-folder/*.mp3
Last edited by Johnb0y; August 22nd, 2011 at 06:58 PM.
Johnb0y
Linux box is better than a woman because when you screw up with it, at least you get an error message!
There is a MP3 player out there for the command line too - if that's what you are looking for.
Dang, I forget the name though.
Check this thread too: http://ubuntuforums.org/showthread.php?t=1573685
Disclaimer: I'm still a bit of a Linux/Ubuntu noob myself!
hey
thanks you for this , but
my system saying its not available , what i've to do now ?
sudo apt-get install mplayer-nogui ubuntu-restricted-extras
Code:[sudo] password for assassin: Reading package lists... Done Building dependency tree Reading state information... Done Package mplayer-nogui is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mplayer E: Package 'mplayer-nogui' has no installation candidate
Dont miss anything even it is small. one small pin is enough to bring down a man.
aah good news is mplayer is doing the job as you mentioned ,.
i think sudo apt-get install mplayer-nogui ubuntu-restricted-extras no need . now i am playing through terminal it self .
how can i control volume through terminal ?
Dont miss anything even it is small. one small pin is enough to bring down a man.
Should do it for you.Code:alsamixer
gnome-open is also very useful. it'll use the default application settings. also, if you close the terminal, the application will stay open. it'll also work on things other than a mp3s.
Code:gnome-open file
here's a little wrapper script i use sometimes to change the master volume and post a notification. its not much, but it'll give you the basics for using amixer to set the master volume.
Code:./volume.sh up # increase volume by 3% ./volume.sh down # decrease volume by 3% ./volume.sh mute # mute/unmute volume
Bookmarks