Posts Tagged ‘media’

Besides moving to the Unity interface, one of Ubuntu‘s other big moves in 11.04 Natty Narwhal will be the replacement of the default music player, Rhythmbox, with another popular media player, Banshee. This is actually because the Rhythmbox development team has announced that while they might push out one more version, it’s the end of the road for this popular music player (PLEASE NOTE: This situation only lasted a couple of Ubuntu versions, and Rhythmbox is again being developed, and is once again the default music player).

We’ll have a general look around the new default player, as well as cover everything you’ll need to know if migrating from Rhythmbox.

Those upgrading won’t have to worry about Rhythmbox being uninstalled, and any installing a new system can always install Rhythmbox as well, and even uninstall Banshee if so desired. But Banshee is a worthy successor, and is very much like Rhythmbox anyway, just with more bells and whistles. Not just that, if you’re planning on trying it out on your current system, it can import all your Rhythmbox playlists to make the transition less painful.

At first glance, Banshee is almost identical to Rhythmbox, except that it displays album covers in the browser. But besides having all of the features of Rhythmbox and some of its plugins, Banshee is a full media player, able to play video as well as all sorts of audio.

Setting it up is easy, as it will automatically scan your ~/Music folder’s contents (you can of course change it to wherever you store your music via Banshee‘s preferences; whenever you want to force a scan, go to Tools > Rescan Music Library).

Importing Rhythmbox Playlists

You can then import your Rhythmbox playlists via Media > Import Media… (if you also have Rhythmbox installed); the Import Playlist… option you’ll also see is for importing individual playlists you may have saved, which would be the case if you’re migrating settings into a fresh install.

When you import your Rhythmbox playlists, you might find the tracks listed in alphabetical order (by band), instead of the order you previously had.

Just click above the track names (on “Name“) and it will cycle through different methods of arrangement, including the original setup you had saved in Rhythmbox. Actually, you can do it with “Artist” and “Album” as well, with it arranging tracks alphanumerically by artist or album, then the reverse order, followed by the original custom layout.

Importing Your Rhythmbox Covers

Your Rhythmbox covers may be something else you wish to import. For many, it won’t matter at all, as the covers Banshee fetches are quite adequate. But if you find some of your old covers are better, or you went to some effort to find better covers than Rhythmbox offered (or couldn’t find at all), and don’t want to waste those, you will find all your covers in /home/yourusername/.cache/rhythmbox/covers. (Note that the period (.) before “cache” denotes it is a hidden folder, so you will need to enable viewing of hidden files and folders if you haven’t already done so).

Simply locate the desired cover – which is easy, since they are named in alphanumerical order by band, followed by album title – and drag it on the cover you see in the bottom-left while a song is playing. If you don’t see a cover, you’ll just have to go to View > Show Cover Art to enable it (currently the default is to have it off, but I imagine that will soon change).

You’ll probably want to know where your covers will be from now on, so the location is nearby at /home/yourusername/.cache/media-art. Note that your covers will no longer be listed in the logical order you’re used to.

While there currently doesn’t seem to be a way to import Rhythmbox‘s album art easily, you might find many are better than what Rhythmbox found anyway, so you’ll probably only need to replace a few covers, notably those Banshee can’t find either. Also, if your music folders contain cover art with names like cover.jpg, then Banshee will probably use those instead of looking for them.

When Banshee can’t find a cover for you, or you just want a better one than the one that’s offered, simply search online, save the picture, then drag it onto the cover in Banshee‘s bottom-left, and it will save a copy in its art folder.

Where’s the Shuffle Button?

Banshee might at first glance seem devoid of a shuffle button for mixing up the order of tracks played, but it actually has a much better one than what you’re used to in Rhythmbox. In fact, you can look at it more as a shuffle menu, as you can not only enable it, but chose the method of shuffling.

All you need to do is click the little down-arrow at the end of the Next button, and a menu will drop down. From there, pick anything other than Shuffle Off.

You will notice the Next button is now a Shuffle button (actually, it’s a Next button that shuffles), and you can choose to shuffle by song, artist, album, rating and score via the menu.

And Where’s… ???

As you can see with the seemingly hidden shuffle button, all you need to do is look around a bit, and you’ll soon find your way around. If you’re migrating from Rhythmbox, some things might be named different, and found in different menus than you’re used to, but you’ll get there. Banshee will probably surprise you with a few cool features, and you should find you can do everything you did in Rhythmbox. If there’s still something missing in comparison, then it was probably a Rhythmbox extension that gave it to you, and you’ll probably be able to find the same as an add-on for Banshee.

Installing Plugins

To install additional features, you can just search for “banshee” in Synaptic. You’ll be presented with a bunch of extensions, including support for visualisations (banshee-extension-openvp), an alarm with variable volumes (banshee-extension-alarm), a radio stream recorder (banshee-extension-streamrecorder), support for displaying lyrics (banshee-extension-lyrics), and much more. There is even a plugin that changes your desktop wallpaper to the album art of the currently playing track (banshee-extension-coverwallpaper).

The Context Pane

One cool feature of Banshee is the Context Pane, which basically adds a section at the bottom that lets you view other data, like lyrics, YouTube videos, and even the Wikipedia page! You can be forgiven for thinking it is overkill, but it actually comes in handy, though you might not want it visible the whole time.

Obviously it will show you lyrics (if it finds them, though it looks to more sources than Rhythmbox, which is a pleasant surprise), but the Wikipedia option is actually quite neat, as it will automatically look up the band currently playing.

The initial viewing area isn’t that huge, and can’t be customised by dragging any borders (more on that in a second), but most of the time, this will do fine for a quick bit of info.

The YouTube plugin is another that is a great feature, yet also appears limited in its appeal due to the size, however the pane can actually be expanded via a hidden button. In the seemingly blank area above the plugin icons/buttons on the right side of the context pane, if you hover your mouse cursor there, you will see a small button appear with the tooltip “Make the context pane larger or smaller“.

Use that toggle button to enlarge the context pane, and shrink it back again.

When you find a clip you want to play, click it to play it in the context pane, or click the down-arrow to the right of it and choose either to “Play in Banshee…” or “Play in Web Browser…“.

Now, there is one more way to expand your viewing area, which makes playing it in Banshee even more valid an option, and that is by selecting “Now Playing” in the top-left, instead of “Music” or one of your playlists. The context pane will then take up the bulk of Banshee.

And you can then go one better by clicking the Simplify button that will now be present above the context pane. This will hide the menu bar, as well as the left-hand pane. Click the button again to toggle back to the previous made.

(At the time of writing, playing YouTube clips inside Banshee doesn’t seem to work, so unfortunately I can’t illustrate what that would look like, but the size seems adequate, and for now at least the option to play the selected vid in a web browser works).

To hide the context pane, next to that little hidden toggle button you’ll find another that will “Hide context pane“. To show the Context Pane again, simply go to the View menu and click Context Pane.

You might not be impressed, especially if you just want a music player, but you have to admit it will catch on with those used to doing it all (ie: looking up info and YouTube vids while playing music) in the one place, namely their smart phone.

And don’t forget to keep an eye out for extensions for the context pane, as there are already a couple out there, and soon there should be a whole heap to choose from.

(Note: to enable or disable any plugins, go to Edit > Preferences, and in the Extensions tab scroll down to Context Pane and either tick or untick the desired add-on).


As you can see, Banshee is quite a full-featured media player, and will be even more so as more extensions are developed. And if you’re making the move from Rhythmbox, the transition should be a lot easier than you imagined.


Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

If you’re scratching your head wondering why your launchers for folders and drives are opening with something other than the default file manager, Nautilus, then hopefully the answer you’re looking for is here.

If you’re experiencing this, you might find your desktop launchers to be fine, but those you’ve custom made for your panel, and even those in the Places menu, will be opening with the wrong program.

In my case, I had right-clicked a DVD’s VIDEO_TS folder and used Open With to open the title with SMPlayer (since the folder was on my hard drive), and all was well – until I clicked a location launcher on my panel. I had done this before without issue, but suddenly all my location launchers started opening SMPlayer, which then tried to find anything to play in the folder Nautilus was supposed to open. It might be a coincidence, but I saw others complaining of this strangeness occurring with another media player – the popular VLC.

If something similar is happening to you, you don’t need me to tell you that something has changed the default app for the task. And while you may have done similar to me in opening a folder with a program like a media player, there is no way you could have accidentally set it to be the default task. But there is a way to fix this, and you don’t even need root privileges for it.

Simply run the following command in a terminal or via Alt+F2:

gedit ~/.local/share/applications/mimeapps.list

When the file opens, look for the line starting with inode/directory= and you should see the offending app listed at the beginning, ahead of Nautilus. All you have to do is either remove it or put it on the end of the line, making sure that nautilus-folder-handler.desktop is directly after inode/directory=.

Once you save and exit the file, your location launchers should be back to normal.


Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

If you’ve come across some commands that require the actual device name of your CD/DVD drive (eg: /dev/dvd), rather than the mount point (eg: /media/cdrom0), it pays to know what it is, as commands won’t work if they’re looking in the wrong place. There are a couple of ways of doing this, and you’ll probably find they give conflicting outputs, but where one is not useful to you, the other will be; for example, if your drive is both /dev/scd0 and /dev/sr0, you might find /dev/sr0 works for most commands, and where it fails /dev/scd0 won’t.

Method 1:

To find out the name of the block device file representing your optical disc drive, enter the following into a terminal, without a disc in the drive:

wodim --devices

The information will be displayed as follows:

wodim: Overview of accessible drives (1 found) :
0 dev=’/dev/scd0‘ rwrw-- : ‘ASUS’ ‘DRW-24B1ST’

If there is a disc in the tray, you will see the following error, so just eject the disc and run the command again:

wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try ‘wodim --devices’
or ‘wodim -scanbus’.
For possible transport specifiers try ‘wodim
For IDE/ATAPI devices configuration,
see the file README.ATAPI.setup from
the wodim documentation.

Method 2:

To find out the name of the block device file representing your optical disc drive, as well as its mount point, enter the following into a terminal:

mount|grep ^'/dev'

The output will look as follows:

/dev/sda3 on / type ext4 (rw)
/dev/sda1 on /media/Windows XP type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,unhide,user=ozzman)



Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

You’ve got to love Linux. There are so many things you can do with it that you could only dream of in Windows. What I’ll show you here is how to set up a button (or launcher actually) that will erase a rewritable disc with one click, with no further action needed on your part.

The command that will do the task is:

cdrecord -v dev=/dev/cdrom blank=fast

If you enter it into a terminal, you will see output similar to:

Starting to write CD/DVD at speed 2.0 in real BLANK mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Performing OPC…
Blanking PMA, TOC, pregap
Blanking time: 48.879s

But you don’t have to open a terminal, as this command runs fine from a launcher. So for one-click erasing of CD-RW and DVD-RW media, make a panel launcher for that command, and it’s done. Just insert a disc that needs to be blanked, click the button/launcher, and when the optical drive’s light finishes flashing, your media is now empty and ready for use.

Note: You may need to substitute the correct device path if it differs from /dev/cdrom, as the command will not work if it is looking to an address that doesn’t exist. It will likely be something like /dev/scd0 or /dev/sr0; to find out exactly what it is, read this guide.

Another error you may encounter may be that the operation cannot proceed because the disc is mounted (which can happen if you stick in a RW with data on it), and will end with something like:

Error trying to open /dev/cdrom exclusively (Device or resource busy)… retrying in 1 second.
Error trying to open /dev/cdrom exclusively (Device or resource busy)… giving up.
WARNING: /dev/cdrom seems to be mounted!
wodim: Device or resource busy.

Simply unmount the disc drive by right-clicking it in the left pane of Nautilus and choosing Unmount, then try the command again.

Note: If you can find no Unmount option, only Eject, you can do it via the terminal (replacing /dev/scd0 with the correct path if need be):

umount /dev/scd0

You can of course also run both commands at once (note this will not work as a launcher, as it will only run the first command):

umount /dev/scd0 && cdrecord -v dev=/dev/scd0 blank=fast


Can’t Blank a Disc?

Unfortunately, while this command works great with some media, on other discs you might see it end with the following error:

Error: this media does not support blanking, ignoring.
This drive or media does not support the ‘BLANK media’ command
wodim: Cannot blank disk, aborting.

You can try adding the options -force and blank=all to the end of the command, but don’t get your hopes up. In my case, old 2x RW DVDs get blanked fine, but the 4x RWs I just bought simply refuse to be blanked in this way.

You will need to erase such discs with a burning app such as K3b (which will let you pick an alternate method if the default blanking option doesn’t work).



Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »