Page 1 of 6 123 ... LastLast
Results 1 to 10 of 51

Thread: Abour ripping music CD to mp3 files

  1. #1
    Join Date
    Apr 2006
    Beans
    3,937

    Abour ripping music CD to mp3 files

    Hi all.

    Ubuntu 22.04 desktop

    Please advise an ease and reliable way ripping music CD to mp3 files?

    Thanks

    Regards

    Edit
    ====

    Just found;
    How to Rip CDs From the Linux Command Line
    https://linuxconfig.org/how-to-rip-c...x-command-line

    Can I use it to rip all music tracks on music CD to .mp3 files

    $ apt policy abcde
    Code:
    abcde:
      Installed: (none)
      Candidate: 2.9.3-1
      Version table:
         2.9.3-1 500
            500 http://hk.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
            500 http://hk.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
    The package "abcde" is on repo
    Last edited by satimis; March 14th, 2024 at 07:00 AM.

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Abour ripping music CD to mp3 files

    Yes, abcde is the package to use.
    Once set up with the configuration to suit the output you want, it is simply a case of putting a CD in the drive and then using terminal command abcde.
    It will then create your mp3, flac, or whatever else you chose, and do several filetype outputs simultaneously if you need more than just mp3.

  3. #3
    Join Date
    Apr 2006
    Beans
    3,937

    Re: Abour ripping music CD to mp3 files

    Quote Originally Posted by ajgreeny View Post
    Yes, abcde is the package to use.
    Once set up with the configuration to suit the output you want, it is simply a case of putting a CD in the drive and then using terminal command abcde.
    It will then create your mp3, flac, or whatever else you chose, and do several filetype outputs simultaneously if you need more than just mp3.
    Hi@ajgreeny,

    Thanks for your advice.

    Is it possible to rip the whole music CD with one click?

    Regards

  4. #4
    Join Date
    Apr 2006
    Beans
    3,937

    Re: Abour ripping music CD to mp3 files

    Hi all,

    The story behind my intention ripping music CD is below;

    I have more than 500 music CDs and >90% are classical music, including Opera, from famous composers such as Beethoven, Mozart, Schubert, Tschaikowsky, Paganini, Rossini, Brahms etc. The CDs can play in my home HiFi system without problem and with excellant sound quality.

    The CDs are already not on the market. If damaged they are not easy to replace even with money therefore I must make some precaution. I can clone (burn) another 500 CD copies but storage may be my headache.

    Another thought comes to my head is ripping all 500 CDs to computer. Then I can burn them again on a new CD if any old CD damaged.

    Comment and suggestion would be appreciated.


    Edit
    ====

    Just found following article which is quite interesting;

    How to Rip CDs From the Linux Command Line
    https://linuxconfig.org/how-to-rip-c...x-command-line
    Last edited by satimis; March 14th, 2024 at 02:37 PM.

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,743

    Re: Abour ripping music CD to mp3 files

    Comment and suggestion would be appreciated.
    Definitely you want to back them up to computer files. I did it maybe 20 years ago for my large CD collection.

    I would use a GUI application. I think it's much easier to set up the encoding parameters. No need to spend time consulting a man page. All distros have one or more applications of the GUI type that handle the ripping and encoding. The underlying ripping and encoding libraries are the same.

    Ubuntu has several GUI applications in the Software Store that handle the ripping and encoding. I only have used Brasero. No problems with it.

    My go-to application in the past was grip, but there no longer is a .deb for it - only .rpm packages (Fedora, Red Hat, OpenSuse). So if you have Fedora installed, you can get that as well.

    if you are an audiophile and/or want best quality, use flac when encoding instead of mp3 or ogg. But the file sizes for flac will be larger. Many (me included) find mp3 or ogg with high-enough quality settings to be quite acceptable. For recording speech, lower quality settings in mp3 and ogg are good enough and save space.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Abour ripping music CD to mp3 files

    I use this:

    Code:
    #!/bin/bash
    
    abcde -a cddb,read,encode,tag,move,clean -d /dev/cdrom \
          -j 4  -o flac,vorbis:"-q 6" -V -x
    YMMV.

  7. #7
    Join Date
    Apr 2006
    Beans
    3,937

    Re: Abour ripping music CD to mp3 files

    Quote Originally Posted by TheFu View Post
    I use this:

    Code:
    #!/bin/bash
    
    abcde -a cddb,read,encode,tag,move,clean -d /dev/cdrom \
          -j 4  -o flac,vorbis:"-q 6" -V -x
    Hi@TheFu,

    1)
    Is it the command line will rip the whole music CD to .mp3 files?

    2)
    If I create following folders for ripping my music CD;

    ~/MP3_ripped_on_CDs
    ~/MP3_ripped_on_CDs/CD-1
    ~/MP3_ripped_on_CDs/CD-2
    ~/MP3_ripped_on_CDs/CD-3
    etc.

    Then on Terminal, how to run your code? Thanks

    Regards

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Abour ripping music CD to mp3 files

    1) Try it. What does it do?

    2) explainshell.com - check it out. It will help greatly.

    YMMV. That means it works for my needs, but may not work for yours. I think it is close to what you want, but only you can decide BY TRYING IT.

  9. #9
    Join Date
    Apr 2006
    Beans
    3,937

    Re: Abour ripping music CD to mp3 files

    Quote Originally Posted by TheFu View Post
    1) Try it. What does it do?

    2) explainshell.com - check it out. It will help greatly.

    YMMV. That means it works for my needs, but may not work for yours. I think it is close to what you want, but only you can decide BY TRYING IT.
    HI@TheFu
    Performed following steps;

    1) create following folders
    ~/Music/MP3_ripped_on_CDs/CD-1

    2) on Terminal run
    $ cd ~/MP3_ripped_on_CDs/CD-1/

    3)
    $ abcde -a cddb,read,encode,tag,move,clean -d /dev/cdrom \
    > -j 4 -o flac,vorbis:"-q 6" -V -x
    Code:
    [ERROR] abcde: flac is not in your path.
    [INFO] Define the full path to the executable if it exists on your system.
    [INFO] Hint: sudo apt-get install flac
    4)
    $ sudo apt install flac

    5)
    Ran the command lines again

    This time it worked, converting all tracks on the CD to .flac and .ogg files
    Code:
    01.Track_1-Track_1.flac
    01.Track_1-Track_1.ogg
    02.Track_1-Track_1.flac
    02.Track_1-Track_1.ogg
    03.Track_1-Track_1.flac
    03.Track_1-Track_1.ogg
    .....
    ......
    There are 99 tracks on the CD. After finished the CD was ejected automatically.

    01.Track_1-Track_1.flac
    and
    01.Track_1-Track_1.ogg
    are same files

    Is there any way to convert all tracks to .mp3 files only.

    Thanks

    Regards

    Edit
    ===

    Following command line can convert all .ogg files to .mp3 files
    Code:
    for i in *.ogg; do ffmpeg -i "$i" -acodec libmp3lame "${i%.*}.mp3"; done
    Following solution is NOT an ideal one

    Code:
    for i in *.ogg; do ffmpeg -i "$i" -acodec libmp3lame "${i%.*}.mp3"; done
    | rm *.ogg | rm *.flac
    Last edited by satimis; March 16th, 2024 at 09:45 AM.

  10. #10
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Abour ripping music CD to mp3 files

    You need to either add mp3 to the listed output in that command or if you don't need the flac or ogg files, just replace flac ,vorbis with mp3.
    There will be a different quality reference needed for the mp3 files as a think that -q 6 does not work for mp3s but I can't recall how it is done. A search should find that easily enough!

Page 1 of 6 123 ... LastLast

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
  •