Hardware Reference
In-Depth Information
his command creates a folder named music .
To move a ile from one directory or folder to another, you use the mv command; for
example:
mv CAP_01_Adventures_In_Pi.mp3 music/
his line moves the MP3 ile from the current directory into the music directory.
To play all the MP3 iles inside a directory or folder, type cvlc followed by the name
of the folder, followed by an asterisk (*); for example:
cvlc music/*.mp3
Figure 9-6 shows the output.
FIGURE 9-6 Playing audio MP3 iles using vlc in LXTerminal. he MP3 ile plays,
despite the error message.
So easy, right?
Writing a Jukebox Python Program
Playing one MP3 at a time is ine, but any real music lover wants to play an entire
directory or playlist, and perhaps shule the songs, or even skip tracks. his is the part
of any big project where you can decide the functionality you wish to add, as you are
going to write a program in Python to interact with the vlc application using its
library.
Search WWH ::




Custom Search