Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded a 3.9MB song (.mp3) and converted it to (.ogg) with this command

ffmpeg -i desktop-login.mp3 desktop-login.ogg

The file size of the converted file was 23.1MB then I copied it to /usr/share/sounds/ubuntu/stereoand i opened it to check if it got copied (replaced with the original) properly, and it was. But when i start the computer the login sound doesn't play. now what?

share|improve this question
up vote 2 down vote accepted

I would check if the file actually plays in vlc, smplayer, banshee or what ever you use. With smplayer it would be...

smplayer desktop-login.ogg

A 3.9 Mb mp3 converted to ogg should be a little bit smaller than the mp3 if it is the same bitrate so it might not be a sound file.

And I would also expect to see the bitrate in the command. Example:

ffmpeg -i desktop-login.mp3 -ab 6400 desktop-login.ogg

But the main problem will probably be the size: the original filesize is 100 kB. I would expect your filesize to have to be around that size. You can use audacity to quickly cut a smaller piece and try that!

Also make sure if the owner is root that the permissions need to be 644 (sudo chmod 644 /usr/share/sounds/ubuntu/stereo/*)

share|improve this answer
Checked the sound and it works, Permission is root. only thing left is to try with a smaller file. will tell the results after I try. – Mohd Arafat Hossain May 19 '12 at 7:49
I can not find any limit for the file size though :P – Rinzwind May 19 '12 at 7:51
It was the file size, I shortened it with Audacity and then it worked :D – Mohd Arafat Hossain May 19 '12 at 9:25
512 kB or 1 mB? >:D – Rinzwind May 19 '12 at 10:51
ripped it to 312 kB xD – Mohd Arafat Hossain May 19 '12 at 10:54

Make sure that the permission for group and other is set to read only, and see if that helps. Also see if you can reduce the file size.

share|improve this answer
It is set to 'read only' for both, about your point about reducing file size, do u know whats the limit? – Mohd Arafat Hossain May 19 '12 at 7:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.