Skip to content

mileto94/MusicPlayer

Repository files navigation

MusicPlayer

This is music player application written in Python for Python course 2015 in FMI.

Using this fancy app you can listen music songs, edit their metadata, get more ingo about them. Only with one click you can create playlists, adding all of your favourite songs to one place.

Behind the scenes this app gets name of file and checks if it exists. If yes, than it gets its metadata such as artist, length, format(mp3, mp4, wav and etc) and alows user to change some of them. Then the app gets abspath of converted file and saves it to* sqllite3 *db called music_player . When starting the player for the first time, it creates new hidden folder in its folder where it saves converted songs to .wav files via pydub lib. When user wants to play song, the song will be played from the hidden folder.

Future plans

This app will be like library - it could be used both as terminal and desktop application. The point is to separate logic from GUI in order to be reusable. GUI will have main sreen with buttons for play, pause, stop, previous, next and repeat song. It will show artist, song's name, song's length and current seconds of playing the file. There will be clock with real time and button for raising up or slowing down the volume. Probably the app will be able to visualize some kind of video files.

MusicPlayer uses pyQt for GUI. ORM in Python via SQLAlchemy. For playing files the app uses PyQt5.

Short links of used libs for music:

  • PyQt5 - play music and create GUI
  • mutagen - get files' metadata

Requires

ffmpeg, which is available after sudo apt-get install libav-tools in OS X.

Installation:

  • sudo apt-get install python3.4-dev
  • sudo apt-get install build-essential
  • unpack sip and pyqt
  • $ cd ~/sip-some-version
  • python3.4 configure.py
  • sudo make # installs sip package
  • sudo make install
  • $ cd ~/pyqt-directory
  • sudo apt-get install qt5-default
  • sudo apt-get install python3-pyqt5.qtmultimedia
  • sudo apt-get install libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediaquick-p5
  • sudo python3.4 configure.py
  • sudo make # installs qt package
  • sudo make install

License

MIT

About

Music Player written in Python for Python course in FMI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages