2

I Have a bunch (~31GB) of mp3 files encoded at 320kbps/cbr and I want to convert them all to mp3 320kbps/vbr keeping it's tags and folder structure but in another master path.

I Would like to use avconv, but any another idea will be welcome.

  • Why do you specifically want to use avconv instead of ffmpeg? Why do you want to re-encode in the first place? – llogan Mar 11 '16 at 2:01
  • Can you give the old folder location as well as the new? This will make examples a little easier... – andrew.46 Mar 11 '16 at 2:36
  • /mnt/storage/media/music to /mnt/storage/media/music_vbr – André M. Faria Mar 14 '16 at 13:04
  • The use of avconv is optional, I used it more for example than for the real usage, I want to convert them to vbr to save space because my smartphone dont have such space to alocate everything. – André M. Faria Mar 14 '16 at 13:05
3

There is a scriptable method that may be useful:

#!/bin/bash

# Define the old location and the new:
OLD_PATH="$HOME/test"
NEW_PATH="$HOME/alt_location"  

# Create the directory structure in a new location:
find "$OLD_PATH" -type d -exec mkdir -pv "$NEW_PATH{}" \;

# Make the conversion and create the output filename and
# correct path. The cut '-f' setting matches the path
# structure and may need adjustment for your own needs:
find "$OLD_PATH" -type f -iname *.mp3 \
      -exec avconv -i {} -threads 0 -c:a libmp3lame -q:a 0 -vn \
      $NEW_PATH$(readlink -f {} | cut -d"/" -f 5-)/{} \;

This gives the highest vbr available, some more reading on mp3 settings in my references:

References:

| improve this answer | |
1

I do that installing TAudioConverter(is Free Software, GPL2) in wine. This program have the option "Add Folder Tree":

enter image description here

you only need Add the main folder where you have all your collections:

carpeta principal

next you chose mp3 in "Presets":

chose mp3

next chose Codec Options

escojer el codec ejem vbr

next Start

iniciar

the place where all files are saved are in HOME in a folder called "TAC":

place for mp3

Working fine in UbuntuStudio, new mp3 are created in this TAC folder keeping folder structure with the options that you put.

(If you wish convert to other format you can)

The wine version is 1.6

CAUTION:

Do not use the option Browse (for the output folders) because not working

No use the option Browse

| improve this answer | |
  • 1
    unfortunately its not a option, I am running ubuntu server, just terminal. – André M. Faria Mar 14 '16 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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