Hot answers tagged

130

You can also download the mp3 directly from youtube without converting using ffmpeg youtube-dl --extract-audio --audio-format mp3 <video URL> From the online help: -x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe) Bear in mind as well that youtube-dl ...


105

You can do the same in 12.04 by using several software. Using WinFF Install winff and libavcodec-extra first sudo apt-get install winff libavcodec-extra Open Winff from dash Then in Winff window, do these Add file Select what catagory to convert (select Audio) Select Audio file format (mp3) Type the output folder for converted file Then click ...


46

you can do it using ffmpeg. Install ffmpeg using following command: sudo apt-get install ffmpeg libavcodec-unstripped-52 The package libavcodec-unstripped-52 is available in Multiverse repo, so you will need to enable it. After installing these packages, you can use a command like the one below to extract the audio as mp3: ffmpeg -i video.mp4 -f mp3 -ab ...


36

You can try easytag , a nice graphical editor for tags in mp3 and aac files.


36

sudo apt-get install ffmpeg libavcodec-extra-52 If package not found try: sudo apt-get install ffmpeg libavcodec-extra-53 you can also try to install the libmp3lame0 package: sudo apt-get install libmp3lame0


35

I would recommend Sound Converter. It is extremely simple to use for what you want. You can find it in the Software Center, or install it from the terminal: sudo apt-get install soundconverter Ubuntu Repo: soundconverter Apt Link: Install soundconverter All you need to do is open it up, change your preferences (Edit -> Preferences) then click the "Add ...


33

Very simple CLI solution: ffmpeg -i VIDEOFILE -acodec libmp3lame -metadata TITLE="Name of Song" OUTPUTFILE.mp3 In case you don't have ffmpeg installed: sudo apt-get install ffmpeg


28

SoundConverter can do this without having to mess around on the command-line, and it's available in the Ubuntu Software Center:


28

Searching for packages matching ogg, I found dir2ogg which seems to be exactly what you want. Just sudo apt-get install dir2ogg dir2ogg -r /path/to/mp3s/ And it recursively finds and converts all mp3 files under /path/to/mp3s/ to ogg (assuming I read the manual correctly).


28

Downloading from youTube Install youtube-dl from the official repository in Ubuntu: sudo apt-get install youtube-dl To download a video execute the following: youtube-dl <url> E.g youtube-dl http://www.youtube.com/watch?v=_z-hEyVQDRA You can also specify other options -b Best quality -m Mobile version -d High ...


28

youtube-dl has a command line option to extract the audio into an mp3 and discard the video downloaded: youtube-dl --extract-audio --audio-format mp3 -l [YOUTUBE VIDEO LINK] This works in my version of youtube-dl, which is 2012.09.27. Download youtube-dl from its website.


28

This is a known bug: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1294877 There are several workarounds but the one that worked for me was to right click on the .iso in the file explorer and select 'Open With Disk Image Writer' and then 'restore' the ISO image to the selected USB device.


26

apt-cache search --names-only k3b shows a codec package I don't have. I installed it via apt-get to solve: sudo apt-get install libk3b6-extracodecs


26

Install Soundconverter and run Soundconverter from launcher or terminal The default conversion is .ogg change this to mp3 going to edit-> preferences under type of results. Format to MP3 as follow: Click on add folder and then select your music folder. You may select the output folder on the above preference configuration before you clicking on ...


26

For MP3, I strongly suggest using Lame , considered by many (including me) THE best MP3 encoder, specially for VBR. sudo apt-get install lame And to encode: lame -V 5 file.wav file.mp3 This will create a high-quality MP3 VBR file around ~130kbps, which is great for casual listening. Use -V 3 for average bitrates around ~200kbps If you want to create ...


25

You can do this in VLC. Once you have started VLC: select "Media" --> "Convert/Save" Click "Add..." and select the file you want Click "Convert / Save" (on the bottom) Provide a "Destination file:" Select the "Profile" (i.e. "Audio - MP3", "Audio - Vorbis (OGG)", etc.) Click "Start" Relax and enjoy your shoes You can install VLC from Synaptic or the ...


25

The simple way to do it is: ffmpeg -v 5 -y -i input.m4a -acodec libmp3lame -ac 2 -ab 192k output.mp3 If you want a script to wrap that, try aac2mp3, which should work for you. (The syntax for that last statement was pulled from there.) Inline code included below: #!/bin/bash # # $Id: aac2mp3,v 1.2 03/30/2008 10:00 Daniel Tavares (dantavares@gmail.com) - ...


21

As Denilson Sá says, ffmpeg is deprecated. This worked for me on Ubuntu 14.04: avconv -i input.m4a ouptut.mp3 To obtain the avconv command, install libav-tools : sudo apt-get install libav-tools


21

Use a combination of FFMPEG and String Manipulation. Change into the folder where your mp3's are located: cd mp3folder One example is to use a simple "for" loop: for file in *.mp3 do ffmpeg -i "${file}" "${file/%mp3/ogg}" done The double quotes prevent spaces in the filenames being treated as 'newlines'. ffmpeg has several options to include in the ...


19

Ok, I found a program by myself. It is called mp3info and installed by sudo apt-get install mp3info To get single mp3 tags from a file, one has to call mp3info -p %a file.mp3 which gives the artist of the file. The %a means that one want to get the artist and there are some other keys for the other tags.


18

Be careful with conversions from MP3, M4A, etc. to OGG because the result may sound poor! Warning: Both MP3 and OGG are lossy formats, unlike say WAV or FLAC. This means that they achieve their compression in great part by throwing away bits of audio information that are imperceptible to the human ear (called psychoacoustics [wikipedia]) When you encode (...


18

Simply put: file song.mp3 Note: file is included with Ubuntu. For alias lovers, insert this at the end of your ~/.bashrc file: bitrate () { echo `basename "$1"`: `file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " ` kbps } Open a new Terminal window. You may now run the following command: bitrate song.mp3


18

Take a look @ mp3gain which for me is even better than normalize-audio mp3gain -r *.mp3 another useful version could be the -c which prevent to ask if you want to do the changes for many files: mp3gain -c -r *.mp3 as said in the man page: mp3gain does not just do peak normalization, as many normalizers do. Instead, it does some statistical ...


17

Right-click an MP3 file, and from the menu select “Properties”. In the window that appears, go to the “Open With” tab and select VLC. Click the “Set As Default” button to set VLC as the default player. You might also want to set the default player in the sound menu: How do I change the Sound Menu's default music player?


17

Terminal way: lame is in Universe repository. So you have to first enable universe repository. See this question → How do I enable the "Universe" repository? Then install lame by the below using commands in a terminal. To open a terminal press Ctrl + Alt + T. sudo apt-get update sudo apt-get install lame Then navigate to the directory by ...


17

Install mp3info package sudo apt-get install mp3info To find the bitrate use mp3info -r a -p "%f %r\n" *.mp3 will give the info you need, also has some other useful functions man mp3info for more info


17

Audacity Audacity has many good audio processing tools suitable to improve the sound of poor audio recordings. Noise reduction Amplifying without distortion of loud parts Removal of peaks Noise reduction/removal Load audio file into Audacity for processing Select an area containing background noise only Open Effect > Noise Removal... Choose Get ...


16

There's no software in Linux like the current Winamp. If you want something almost similar, try Audacious, BUT the skined interface ONLY supports winamp 2.x skins. I came from a Winamp environment so I can say this, forget about skins and use the default GTK interface and you'll like it, I know I did :)


16

There is a good soundconverter called "soundconverter" in the Softwarecenter. I made the test, tags are maintained when converting from .mp3 to .ogg.



Only top voted, non community-wiki answers of a minimum length are eligible