![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Multimedia Production Discussions about Ubuntu Studio and other multimedia production applications. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: May 2007
Beans: 54
|
abcde config file
Hi all,
I would like to rip to flac and mp3 at the same time with abcde but direct the output to separate directories. is this possible? ie: mp3 files goto /home/user/music/MP3/artist/title/song.mp3 flac files goto /home/user/music/FLAC/artist/title/song.flac currently both files goto the same dir. |
|
|
|
|
|
#2 |
|
Loony Lycanthrope
![]() Join Date: Jul 2005
Beans: 6,863
|
Re: abcde config file
I never found a way for it to do that when I was using abcde. What I ended up doing was just ripping to flac and then using a script called flac2mp3 to create a mirrored directory tree with mp3 files. There were two versions of the script that I found. A bash script and a perl script. I don't remember which one I ended up using. For that matter, it shouldn't be too difficult to write a bash script to simply recreate your directory tree and move the existing mp3 files to their new home.
|
|
|
|
|
|
#3 |
|
Still having fun...
![]() Join Date: Dec 2006
Beans: 3,007
Ubuntu 9.10 Karmic Koala
|
Re: abcde config file
Hi,
I have always wondered how to do this myself and I will admit to having spent too much time over the last 2 days trying to figure it out! Good news is I have solved it. I give the example ~/.abcde.conf file below that encodes to both ogg and mp3 and places them in different directories. I have not used flac in thia example as I know nothing of flac encoding / options etc Code:
OGGENCODERSYNTAX=oggenc # Specify encoder for ogg
MP3ENCODERSYNTAX=lame # Specify encoder for mp3
CDROMREADERSYNTAX=cdparanoia # CD reader program to use
OGGENC=/usr/bin/oggenc # Path to ogg encoder
LAME=/usr/bin/lame # Path to lame encoder
ID3=/usr/bin/id3 # Path to id3 editor
ID3V2=/usr/bin/id3v2 # Path to id3v2 editor
CDPARANOIA=/usr/bin/cdparanoia # Path to cdparanoia
CDDISCID=/usr/bin/cd-discid # Path to cd-discid
VORBISCOMMENT=/usr/bin/vorbiscomment # Path to vorbiscomment
OGGENCOPTS='-q 6' # Options for ogg
LAMEOPTS='--preset standard' # Options for mp3
OUTPUTTYPE="ogg,mp3" # mp3 +/- ogg +/- flac ???
OUTPUTDIR="$HOME/music/" # Base directory for the music
# This divides the music into 2 folders:
# mp3 goes to $HOME/music/mp3/
# ogg goes to $HOME/music/ogg/
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}--${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}--${TRACKFILE}'
PADTRACKS=y # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=y # Useful for debugging
EJECTCD=y # Please eject cd when finished :-)
http://people.aapt.net.au/~adjlstron...u_cli.html#mp3 that I was thinking of making a single page and the only missing element is flac about which I know next to nothing ![]() Hope this helps! Andrew
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
#4 |
|
Loony Lycanthrope
![]() Join Date: Jul 2005
Beans: 6,863
|
Re: abcde config file
Cool. I didn't know that the OUTPUT variable was set like that. Granted, I didn't spend much time on it as I had the flac2mp3 script that did what I needed. The only special flac setting I used in my .abcde.conf file was
Code:
FLACOPTS="-f --best" |
|
|
|
|
|
#5 | |
|
Still having fun...
![]() Join Date: Dec 2006
Beans: 3,007
Ubuntu 9.10 Karmic Koala
|
Re: abcde config file
Hi,
Quote:
Andrew
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
|
#6 |
|
Still having fun...
![]() Join Date: Dec 2006
Beans: 3,007
Ubuntu 9.10 Karmic Koala
|
Re: abcde config file
Hi again,
So here for the record is my ~/.abcde.conf file that encodes to ogg, flac and mp3. Each file type will be placed in a seperate directory, tagged or commented, and I have added in the function to give spaces in filenames: Code:
##################################################################
# Andrew's ~/.abcde.conf file to encode to ogg, flac and mp3 at #
# the same time. The 3 filetypes will then be tagged or #
# commented and dispersed to seperate directories. #
# http://people.aapt.net.au/~adjlstrong/ubuntu.html #
##################################################################
# What are the names of the encoding programs?
OGGENCODERSYNTAX=oggenc # Specify encoder for ogg
MP3ENCODERSYNTAX=lame # Specify encoder for mp3
FLACENCODERSYNTAX=flac # Specify encoder for flac
# What program to rip the tracks from CD?
CDROMREADERSYNTAX=cdparanoia # CD reader program to use
# Where are the encoding programs?
OGGENC=/usr/bin/oggenc # Path to ogg encoder
LAME=/usr/bin/lame # Path to lame encoder
FLAC=/usr/bin/flac # Path to flac encoder
# Where are the tagging / commenting programs?
ID3=/usr/bin/id3 # Path to id3 editor
ID3V2=/usr/bin/id3v2 # Path to id3v2 editor
VORBISCOMMENT=/usr/bin/vorbiscomment # Path to vorbiscomment
METAFLAC=/usr/bin/metaflac # Path to metaflac
# Where are the other programs?
CDPARANOIA=/usr/bin/cdparanoia # Path to cdparanoia
CDDISCID=/usr/bin/cd-discid # Path to cd-discid
# What options should be used for encoding?
OGGENCOPTS='-q 6' # Options for ogg
LAMEOPTS='--preset standard' # Options for mp3
FLACOPTS='--best' # Options for flac
OUTPUTTYPE="ogg,mp3,flac" # mp3 +/- ogg +/- flac
# Where do the encoded tracks go to?
OUTPUTDIR="$HOME/music/" # Base directory for the music
# This divides the music into 3 folders:
# mp3 goes to $HOME/music/mp3/
# ogg goes to $HOME/music/ogg/
# flac goes to $HOME/music/flac/
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}--${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}--${TRACKFILE}'
# Put spaces in the filenames.
mungefilename ()
{
echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
}
# What extra options?
PADTRACKS=y # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=y # Useful for debugging
EJECTCD=y # Please eject cd when finished :-)
Andrew
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
#7 |
|
Ubuntu addict and loving it
![]() Join Date: Jun 2006
Beans: 7,419
Ubuntu 8.04 Hardy Heron
|
Re: abcde config file
Can you override the .conf settings for just, say, a single track (or several)?
abcde [tracks] -o [filetype][:filetypeoptions] e.g.: abcde 7 -o mp3:"-b 128" -->rip+encode track 7 only to mp3 only@cbr 128 ?? The man pages and other docs I've seen only show how to do the ENTIRE cd. abcde -o vorbis,flac abcde -o vorbis:"-b 192" etc. EDIT: nevermind--it's 'abcde [options] [tracks]'. (staring at me from the top of the man page.). tracks AFTER options...
__________________
Super Grub Disk | OGG Vorbis, NOT mp3! | Ubuntu User Documentation | Restore Grub from Live CD | Parted Magic CD | Separate /home partition Last edited by logos34; November 12th, 2007 at 06:12 PM.. |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: May 2007
Beans: 54
|
Re: abcde config file
I rip to flac for Archiving/Home listening and to MP3 for the portable player. What would you need ogg for? I know some players support it but mine doesn't. so why mp3 and ogg?
|
|
|
|
|
|
#9 |
|
Just Give Me the Beans!
![]() Join Date: May 2007
Beans: 54
|
SWEET!! thanks for the awesome tip!!
As for flac settings I have not found any. It is lossless so I guess that there are no settings. |
|
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() Join Date: May 2007
Beans: 54
|
Re: abcde config file
ok next question:
Is it possible to get the year that the album was released to appear next to the album folder? ie: / home / user / music / mp3 / Artist / Album [year] / 01.track.mp3 / home / user / music / flac / Artist / Album [year] / 01.track.flac this would be great for me when I need to find something from a particular era |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|