Archives For November 30, 1999

Install MPD Client Cantata 2.0 via PPA in Ubuntu

Last updated: January 29, 2016

MPD Client Cantata 2.0

Cantata, an open source MPD client for Linux (Qt/KDE), reached the new major 2.0 release a few days ago with lots of changes.

Cantata 2.0.0 brings some UI changes, various fixes and improvements, and now it uses Qt5 version as default build.

  • Use SQLite to cache MPD listing
  • Combine Artists and Albums into Library tab
  • Allow grouping by Genre
  • Merge Online and Streams into Internet tab
  • Merge Playlists and Dynamc Playlists tabs
  • Use ‘Composer’ tag to group albums of specified genres
  • Use mix of icon themes for flatter icon style – and use mono icons where appropriate
  • And more changes in ChangeLog file

How to Install Cantata 2.0.0 in ubuntu:

Since there’s no easy way to install the software, I’ve uploaded both KDE and Qt5 version into PPA, available for Ubuntu 16.04, Ubuntu 15.10, Ubuntu 14.04, and their derivatives.

1. Add PPA.

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T key. When it opens, select paste ONE of below command to add PPA:

For Qt5 version:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata-qt

Type in your password (no visual feedback just type in mind) when it asks and hit enter to continue.

For Kubuntu KDE version:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

2. After that, either install Cantata 2.0 via Synaptic, or upgrade it through Software Updater, or run below commands in terminal:

sudo apt-get update

sudo apt-get install cantata

For those who don’t want to add PPA, grab the .deb packages from this page for KDE version, or this page for qt version.

3. (Optional) Just in case you want to remove this software and downgrade to the stock version available in Ubuntu repositories, install ppa-purge and purge the PPAs via 2 commands:

sudo apt-get install ppa-purge

sudo ppa-purge ppa:ubuntuhandbook1/cantata-qt

You may change the PPA name depends on which version you installed.

Cantata, a graphical MPD client for KDE and QT, has reached the 1.5.2 release. Both Qt and KDE build available for Ubuntu 14.04, Ubuntu 14.10, Ubuntu 15.04 and Linux Mint 17 users.

Cantata started off as a fork of QtMPC, mainly to provide better KDE integration – by using KDE libraries/classes wherever possible. However, the code (and user interface) is now very different to that of QtMPC, and both KDE and Qt (Linux) builds have the same feature set.

The first stable release in 2015, Cantata 1.5.2, was released a few hours ago with below changes:

  • Fix Ubuntu Touch builds.
  • When refreshing search menu, clear items first!
  • Fix setting of cover when existing cover is embedded in music file.
  • Fix OSX executable name for case-sensitive filesystems.
  • Hide ratings widgets, etc, in tag editor for devices and Mopidy, etc.
  • Use Control+Alt+Number as shortcut to toggle an output.
  • Don’t allow to set short-cuts for actions that are menus.
  • Add high-dpi support to Linux and Windows Qt5.4 builds.
  • When calculating ReplayGain, if peak value is less than 0.00001 then assume the calculation is invalid.
  • When parsing podcast RSS, if episode is marked as video (e.g. video/mp4) but the url ends in an audio extension then it is proably an audio podcast.
  • Correctly initialise search category.
  • Fix potential crashes on refresh.
  • Fix duplicate notification when Cantata is started whilst playing, or when ‘Replace Play Queue’ is used.
  • Only show output change notification if outputs menu was not previously empty.
  • Construct a new config object, rather than changing group, to avoid any race conditions.
  • If fading volume on stop, then reset volume just before stopping. Some outputs (e.g. pulse audio) only allow setting a volume whilst playing.
  • If ‘url’ entry is empty in ‘enclosure’ section of podcast RSS file, then use ‘guid’ text as url – if possible.
  • Fix copying of covers to UMS, etc, devices if song is transcoded.
  • Add an option for 64 bit non KDE linux builds to install helper apps to lib64 instead of just lib. Pass -DCANTATA_HELPERS_LIB_DIR=lib64 to cmake.
  • In tag editor, only mark rating as changed if it has been.
  • For Linux non-KDE builds, use login1 interface to detect system resuming.
  • Enable scrobble ‘love’ button even if scrobbling is disabled.
  • Don’t crash when detecting an audio CD with no tracks.
  • When playing a digitally imported (or JazzRadiom, etc) stream from the favourites section, then modify the URL if the user has a premium account (to match what existing behaviour is stream is played from the station list)
  • Workaround build issues with SpeexDSP 1.2rc2
  • Use correct stream icon in playqueue for streams with no song details.
  • Fix FreeBSD build.
  • Respect carriage returns when displaying comments in context view.
  • Fix replaygain calculation when ffmpeg is using planar formats.
  • Enable ‘save’ button when reading ratings from multiple files.
  • Fix cantata-remote script (used for Unity launcher integration) when this uses qdbus.
  • Fix display of rating in tag dialog when only 1 file is being edited.
  • Fix fetching of ratings in table style playqueue.
  • Don’t convert -ve track, disc, or years to unsigned – set to 0.
  • Bundle openSSL libs with windows builds.

How to Install Cantata 1.5.2 in Ubuntu:

Open terminal from the Dash/Menu or by pressing Ctrl+Alt+T on keyboard. When it opens, run below commands one by one:

For KDE users, run commands one by one to install Cantata from PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

For Qt built without KDE libraries, install Cantata from another PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata-qt

sudo apt-get update

sudo apt-get install cantata

Cantata, yet another client for the music player daemon (MPD), now is at version 1.5.0 which brings lots of new features, improvements and fixes.

Cantata is a MPD client originally started as a fork of QtMPC, it can be compiled with KDE support, or as a pure Qt4 application.

Cantata works on Linux and Windows. Since 1.5.0 release, it adds support for Mac OS X.

According to the changelog, The 1.5.0 release brings below changes:

  • Remove cover size setting, set automatically.
  • Artist images only shown in grid view.
  • No images, or icons, shown in basic tree view.
  • Remove GUI option to control saving of scaled covers. This is enabled by default, and can be toggled via the config file.
  • Don’t re-load view when sort changes.
  • Simplify view config pages.
  • Use QUrl with server details to build HTTP address used to compare MPD http file paths against.
  • Store song ratings in MPD’s sticker DB. Ratings stored using ‘rating’ key and values 0 to 10. In the UI, ratings are show as 5 stars.
  • If we fail to download a cover, don’t keep trying next time song is played.
  • Simplify toolbar cover widget, no border.
  • Allow preference dialog to shrink smaller. If screen size is less than 800px, then views page is re-arranged to allow much smaller dialog, category selector uses smaller icons, and headers are removed.. You can check this setting by calling cantata as follows: CANTATA_NETBOOK=1 cantata
  • Support MPDs “find modified-since” with MPD 0.19 and newer. If a number is entered it is taken to be ‘modified since X days in past’, otherwise a date should be entered (e.g. 01/12/2001 to find all tracks since 1st Dec 2001) Cantata will first try to convert from your locale date format, default date format, and then ISO date format.
  • Show covers in search results.
  • Show performer in cover tooltip if this is set and different to album artist.
  • Always large action icons for grid view.
  • Increase gap between add and play icons in grid view.
  • Disable volume fade on stop by default – this is really something MPD itself should implement.
  • Remove ‘Add albums in random order’ from view context menus.
  • Reorganize playqueue context menu.
  • Use ‘Metadata’ and not ‘Tags’ as metadata/tags view in context song pane.
  • Minor changes to song progress slider.
  • Show covers in playlist tree and list views.
  • Use read-only editable combo for filename in tag editor, so that text can be selected.
  • Also read /com/canonical/desktop/interface/scrollbar-mode to determine if overlay scrollbars have been disabled.
  • Add note about ‘AlbumArtist’ tag to initial settings wizard.
  • Use QDesktopWidget::logicalDpiX()/96.0 to set DPI scale factor.
  • Expand ~/ to QDir::homePath() when read from UI.
  • Save QDir::homePath()/ as ~ in config file, and convert when read.
  • Allow all bar title and artist columns to be hidden in playqueue.
  • Add option to disable song info tooltips.
  • Only show icons in message widget buttons if style uses icons for dialog buttons.
  • Add option to have separate play queue search action – enabled by default.
  • Revert back to storing scaled covers as JPG. PNG is taking too much space, especially with retina displays.
  • Read ArtistSort, AlbumArtistSort, and AlbumSort from MPD. If found, use these to sort items.
  • Add ‘Full Refresh’ action – cuases caches to be removed, and models to be completely refreshed.
  • Add actions to mark podcast as episode as listened or new.
  • Add action to cancel podcast downloads.
  • Download podcasts sequentially.
  • Configurable limit to auto podcast downloading.
  • When starting, remove any previous partial podcast downloads.
  • Don’t make media keys backend configurable, auto detect the best one.
  • Remove Gtk combo popup size hack.
  • Fix Qt5 translations.
  • Add button to status bar to eanble/disable playback of MPD HTTP output stream.
  • Show notification when outputs changed.
  • Connect MPRIS stopAfterCurrent signal to correct action.
  • Add prev/play/pause/etc actions to Unity launcher, and to windows taskbar entry.
  • Fix current track highlight in grouped view under windows for header item.
  • Use same selection drawing for all views.
  • Fix size of collapsed window in windows builds.
  • If run under Unity or OSX, then place close buttons on left.
  • Fix auto-marking of played downloaded podcasts when connected via a local socket.
  • Fix playback of local files by inbuilt HTTP server.
  • In catata-tags.exe set unhandled exception handler, to prevent windows crash dialog appearing.
  • If a command fails to be sent to MPD, and the socket is in an error state, then reconnect and update status and playqueue.
  • For windows builds, when window is not focused, draw sidebar selection as a darkened background.
  • If MPD supports https, then there is no need to convert SoundCould URLs.
  • If playlist is loaded and replaces playqueue, then start playback of first track.
  • Custom/thin scrollbars for context view.
  • If fail to read a Gtk setting from DConf then try GSettings.
  • Send a message (default to ‘status’) at least once every 30 seconds to keep command connection alive.
  • Fix inconsistent default cover sizes.
  • French translation – thanks to Jaussoin Timothée.
  • Seek 5seconds when control (or command for Mac) and lef/right arrow keys are pressed. (Seek setting may be changed via config file – refer to README for more details.)

Install / Upgrade Cantata in Ubuntu:

The latest binaries of KDE build have been made into PPA, available for Ubuntu 14.10, Ubuntu 14.04 and derivatives.

If you have already added the PPA and installed a previous version, just run system update via Software Updater will bring you to Cantata 1.5.0.

If not, press Ctrl+Alt+T to open terminal, run commands below one by one to add the PPA and install the MPD client:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

Or you can grab the .deb installer directly from the Launchpad page.

That’s it. Enjoy!

Cantata, a (yet another) client for the music player daemon (MPD), just reached v1.4 with new features and many improvements.

Cantata started off as a fork of QtMPC, mainly to provide better KDE integration – by using KDE libraries/classes wherever possible. However, the code (and user interface) is now very different to that of QtMPC, and both KDE and Qt (Linux) builds have the same feature set.

Features:

  • Library – sorted as Album Artist (or Artist if Album Artist not set), Album, and finally Track.
  • Albums – displays albums as icons, sorted by their title.
  • Folders – displays MPDs virtual filesystem. (This view is hidden by default)
  • Playlists
  • Dynamic – dynamic playlists
  • Streams – allows saving of internet radio URLs, searching for stations via TuneIn or ShoutCast, station listings from; Digitally Imported (+Sky, JazzRadio, RockRadio), TuneIn, IceCast, ShoutCast, SomaFM, etc.
  • Online – Jamendo, Magnatune, SoundCloud, and Podcasts
  • Devices – enables copying from/to USB-Mass-Storage (UMS) and MTP devices, and ripping AudioCDs
  • The sidebar has a context menu, allowing you to control its style and what items are shown.

The latest Cantata 1.4.0 was released on July 22, 2014 with below new features:

  • Use external helper app to read/write tags. Isolates Cantata from TagLib crashes.
  • Lyrics auto-scroll.
  • Option to auto-switch to context view.
  • Toolbar reorganisation.
  • Comment tag support for tag-editor and dynamic playlists.
  • Attempt to respect menubar usage of current DE.
  • Reduce memory used by covers.
  • Artists and albums with new tracks shown in bold.
  • ‘Touch Friendly’ option – increases button widths, and makes views flickable.
  • Multiple genre support.
  • Streams now stored in ‘[Radio Streams]’ MPD playlist. Compatible with MPDroid development version.
  • Use MusicBrainz AlbumId (if set) to differentiate albums. This helps if you have multiple releases of the same album.
  • Search for streams via dirble.
  • Reduce supplied stream providers to IceCast, ShoutCast, Drible, and TuneIn. Provide dialog to download others from Google drive.
  • Qt-only by default.
  • Scrobbling.
  • Show song lyrics, information, and tags, in context view.

Install Cantata 1.4 in Ubuntu:

Besides building from source, Ubuntu 14.10, Ubuntu 14.04 and Linux Mint 17 users can install this release from PPA.

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

The above will add my personal PPA and install cantata packages from it. Don’t forget to install MPD daemon (available in Software Center) if you don’t have it.

If you don’t like Ubuntu PPAs, grab the .deb package from HERE.

This simple tutorial is going to show you how to install the latest release of MPD client cantata in Ubuntu 14.04 Trusty Tahr via PPA.

Cantata is yet another client for the music player daemon (MPD), which was originally started as a fork of QtMPC, the code is now very different. It can be compiled with KDE support, or as a pure Qt4 application. The interface is very configurable – most views can be shown as either a list or tree structure.

Changes in Cantata 1.3.4:

  • Fix adding songs to playqueue with priority when playqueue is not empty.
  • When loading covers, if load fails, check to see if this is because of an incorrect extension. e.g. load a .jpg file with PNG type, and vice versa.
  • Fix showing of time-slider when Cantata is started minimized to system tray and MPD is playing.
  • Remove unused ‘Back’ action.
  • Don’t treat albums with artists such as ‘AlbumArtist ft Other’ as multiple artist albums.
  • Fix updating of playqueue sidebar tooltip and icon.
  • Add playqueue action to main window, so that shortcut works.
  • When using track organizer, also try to move artist images, backdrop images, and playlist files.
  • After altering filename scheme from track organizer, save settings.
  • Don’t set year or disc in tag editor for ‘All Tracks’ unless they are non zero.
  • In tag-editor, when obtaining values to use for ‘All Tracks’ entry, don’t ignore empty fields.
  • When determining album year, ignore playlist files!
  • If MPD database is refreshed whilst listview is not at top level, then reset view to top level.
  • When TrackOrganizer is called after TagEditor, only perform MPD update once.
  • When editing filename scheme, after inserting a variable set cursor position to after newly inserted text and give focus back to line edit.

Install Cantata:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, copy and paste the commands below and run one by one:

sudo apt-add-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

That’s it. Enjoy!

Cantata, yet another client for the music player daemon (MPD), has recently updated to version 1.3.3 with improvements and bug fixes.

As you may know, cantata was originally started as a fork of QtMPC, the code is now very different. It can be compiled with KDE support, or as a pure Qt4 application. The interface is very configurable – most views can be shown as either a list or tree structure.

Changes in Cantata 1.3.3:

  • If Cantata is started whilst an instance is also running, raise window of current instance. (Linux only fix)
  • Add song to playqueue from albums page when double-clicked.
  • Fix display of online-service track album-artist in copy dialog.
  • Ensure library is loaded the very first time Cantata is run (ie. after connected to MPD via initial settings wizard).
  • When song is updated in context view, abort any current network jobs.
  • Fix expand all / collapse all actions. Expand all will only expand 1 level for main browsers.
  • When reading lines from user mpd.conf file, read as utf-8.
  • Reset devices and online-services models when artist-view cover size changes.
  • If downloading online-service track listing fails, then stop loader and show error.
  • Use new location of Jamendo DB listing.

Install Cantata in Ubuntu:

I’ve uploaded the latest build of this MPD client to my PPA. It’s available for Ubuntu 14.04 Trusy, Ubuntu 13.10 Saucy and their derivatives.

To install it, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the commands below one by one:

sudo apt-add-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

For source tarball and Windows EXE, go to:

code.google.com/p/cantata/wiki/Downloads

Cantata, yet another client for the music player daemon (MPD) has reached release 1.3.2 with improvements and various bug fixes.

As you may know, Cantata is one of the most feature packed MPD clients, excelling at common use cases (playlists, streams, library management, lyrics) and including many features found in advanced media players (dynamic playlists, synchronization with external media players, transcoding, replaygain scanning, support for multiple MPD servers).

Changes in Cantata 1.3.2:

  • In cover/artist dialog, when attempting to save an image into Cantata’s cache folder – ensure the ‘covers’ sub-folder is created.
  • When saving artist image from cover dialog, if set to save in MPD folder and song’s path does not have 2 folder elements then save in cache folder. Cantata will only save artist images, and backdrops, in MPD folder if the folder structure is (e.g.) Artist/Album/Track.mp3
  • Use case-insensitive sort of folder view items when adding to playqueue.
  • When determining the ‘basic’ artist of a track, if albumartist is set and artist is not, then use albumartist.
  • For the web-links in the context view, replace ampersand and question mark characters in artist names with the relevant URL encoding.
  • Use CMake to locate X11 libraries and headers.
  • Set minimum size for initial settings wizard.
  • If buddy of a checkbox or radio is clicked, then toggle check or radio.
  • Disable context-view cancel actions until a job is created.
  • When searching models, also search composer field.
  • Fix enabling of “Initially collapse albums” in playlists settings tab.
  • Fix grouped playlist view initial state when set to initially collapse albums.
  • Fix calculating size of song files when copying off a device that has been previously scanned, and its contents cached.
  • When copying from a CD, check that we have enough space for track that was encoded with a 1:18 ratio. Just a sanity check really.
  • Fix song notification mem-leak (Linux only).
  • When transitioning between backdrops in cover view, draw old at correct position.
  • Dont load library twice at start-up when cache has been deleted current tab is artists or albums.

Install or Upgrade Cantata:

To install or upgrade from PPA, press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install cantata

You can also build it from the source tarball which is available in kde-apps.org.

The MPD (music player daemon) client 1.3.1 has been released a few hours ago. This release mainly contains bugs, compile, and translation fixes, including the fix of MPD HTTP Stream Playback issue.

Detailed changes, see:

  • Fix collapsed context-view selector buttons text when using a dark background.
  • Apply some Fedora patches.
  • Fix MPD HTTP stream playback.
  • Fix painting of Gtk thin scrollbar style on comboboxes.
  • When waiting for replies from MPD, use Qt’s standard timeout value of 30s. While the socket is still connected, Cantata will wait up to 4 times the timeout value. Therefore, the actual timeout has increased to 2minutes!
  • If a sidebar view has focus, but sidebar is collapsed, then find action should activate playqueue search widget.
  • FreeBSD 10 compile fixes.
  • Fix scaling of context view background when size of view changes.
  • Elide text of context view selector buttons, if insufficient space.
  • Only show mopidy note in copy/remove dialog if connected to mopidy.
  • Fix broken en_GB translation.
  • Fix folder-view path parsing. If two folders only differed in the last character then Cantata would have placed the contents of the second into the listing of the first.
  • Explicitly link to pthread.
  • Do not allow ‘auto-hide sidebar’ and ‘playqueue in sidebar’ to be active at the same time.

Install Cantata:

For Ubuntu 13.10 and Ubuntu 14.04, you can install it from PPA. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update 

sudo apt-get install cantata

For other Linux and Windows EXE file, go to the official download page.

The KDE music player daemon (MPD) client cantata has reached version 1.3.0 with new features and improvements. This tutorial will show you how to install or upgrade in Ubuntu 14.04, Ubuntu 13.10 via PPA.

As you may know, Cantata is yet another client for the music player daemon (MPD). Originally started as a fork of QtMPC, the code is now very different. Cantata 1.3.0 was released on February 20 with following changes:

  • Basic undo/redo for playqueue.
  • Search tab – searches performed via MPD. This tab is hidden by default.
  • Optionally cache scaled covers, to improve loading of albums view. (Displaying of covers should be faster after 1st run, when the scaled contents are saved)
  • Only start internal HTTP server when required, and stop after last non-MPD track removed from playqueue.
  • If listallinfo fails then use lsinfo recursively to retrieve the music collection. listallinfo requires more memory with MPD 0.18, and has been reported to fail for large collections.
  • Cache folder listing (as per music collection), if folders view is used.
  • Better support for Mopidy (requires Mopidy 0.18, or newer)
  • More details check the changelog file in the source tarball.

Install Cantata:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one to install or upgrade Cantata from PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update 

sudo apt-get install cantata

NOTE: Got an error building the source tarball. I’ve asked the developer for help, the PPA will be ready as soon as I solved the error. — fixed by updating to 1.3.0.1.

The music player daemon client Cantata has just released version 1.2.2 with HTTP security improvement and various bugfixes.

As you may know, Cantata is one of the most feature packed MPD clients, excelling at common use cases (playlists, streams, library management, lyrics) and including many features found in advanced media players (dynamic playlists, synchronization with external media players, transcoding, replaygain scanning, support for multiple MPD servers).

This simple tutorial shows how to install the latest Cantata 1.2.2 in Ubuntu 14.04, Ubuntu 13.10, Ubuntu 13.04, Linux Mint and their derivatives via PPA. For Ubuntu 12.04, due to the dependencies problem, it’s not easy to build the package.

Changes in Cantata 1.2.2:

  • Fix British English translation.
  • Improve internal HTTP security – only serve files to MPD host, and only files in playqueue.
  • Also remove CDDA files when Cantata exits.
  • Improve error message if ‘playlist_directory’ does not exist.
  • If icon theme does not have network-server, then use audio file icon for HTTP server settings page.
  • Fix truncated files served from internal HTTP server.
  • When adding songs to an existing play lists, dont allow play list files to be added.
  • If Ctrl-F is activated again whilst search widget is visible, then select all current text.
  • When MPD seeks a Cantata HTTP stream, set the Content-Range header field. This fixes seeking of FLAC files.
  • Fix toggling of checkboxes via short-cut.
  • Fix short-cuts in preferences dialog.
  • Dont clear the playqueue when Cantata is passed a song as a commandline at start-up.
  • Fix broken spinboxes in some dialogs with Gtk style.
  • Correctly style treeview in CD details dialog.
  • Only show artist name of CD track if it does not start with main CD artist.
  • Show track numbers in CD listing.

Install Cantata:

I’ve updated this release to PPA, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below to install from PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/cantata

sudo apt-get update

sudo apt-get install mpd cantata

If you would like to build from source code, go to google code page for source tarball.