Results 1 to 6 of 6

Thread: adding .mp3 extension to my music

  1. #1
    Join Date
    Dec 2008
    Location
    Batavia, IL
    Beans
    93
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    adding .mp3 extension to my music

    Hello,

    Just made the upgrade to 10.04 and after copying my /home/ directory to my external and back over to my hard drive, the .mp3 extensions have all disappeared. Dolphin still identifies the files as mp3 audio files, but without the extension, Amarok, Banshee or VLC will not play them. Is there anyway to get the media players to play those files, or anyway to add the .mp3 extension onto all of those files at once?

    Thanks for any help you can provide.
    Last edited by Jguy; May 1st, 2010 at 02:01 PM. Reason: Typos.
    Look, there's nothing here yet.

  2. #2
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: adding .mp3 extension to my music

    need ubuntu-restricted-extras package

  3. #3
    Join Date
    Feb 2008
    Location
    United States
    Beans
    328
    Distro
    Lubuntu 18.04 Bionic Beaver

    Re: adding .mp3 extension to my music

    I sincerely hope that your mp3s are in a separate directory, as that will make everything easier.

    I'm certain there's an easy one step process to do this, but here's what I can do with my limited knowledge.

    Assuming you have mp3s and only mp3s in ~/music start with
    Code:
    ls ~/music/ >~/Desktop/mp3list.txt
    Open the mp3list.txt on your desktop, copy and paste into Open Office Calc in column A. Some clean up may be required; you want to end up with only a listing of file names.
    In cell B1, use the following formula
    Code:
    ="mv '~/music/"&A1&"' "'~/music "&A1&".mp3'
    Transpose this down to cover all the files.

    Copy the B column into the terminal.

  4. #4
    Join Date
    May 2007
    Location
    the Netherlands
    Beans
    647
    Distro
    Ubuntu Development Release

    Re: adding .mp3 extension to my music

    A nice (gui) way to bulk rename stuff is using a program like pyrenamer (which is a standalone application) or, in case you're using the thunar file-manager, there's a bulk-rename extension (it's part of the package thunar-media-tags-plugin). Good luck.

  5. #5
    Join Date
    Dec 2008
    Location
    Batavia, IL
    Beans
    93
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: adding .mp3 extension to my music

    dino99: That was not the problem, but thanks anyway.
    eriktheblu: I never would have thought of doing that and thanks. Although it doesn't work for this scenerio, I bet I can find a use for it elsewhere.
    happyhamster: Thanks, albeit slow since I have all my music in seperate folders, it still worked. Thanks!
    Look, there's nothing here yet.

  6. #6
    Join Date
    Aug 2006
    Beans
    276

    Re: adding .mp3 extension to my music

    for future reference, open a command window, go to the directory containing the music and type

    find . -type f -exec mv {} {}.mp3 \;

    command lines may seem arcane but they can be very fast. Note that this command will affect all files in directories under the current directory and so is suitable if you have a tree of music folders.

    Beware that it will rename ALL files. Don't use it if your music is scattered through other folders.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •