Skip to content

Instantly share code, notes, and snippets.

@GlassGhost
Created August 20, 2012 03:26
Show Gist options
  • Save GlassGhost/3400163 to your computer and use it in GitHub Desktop.
Save GlassGhost/3400163 to your computer and use it in GitHub Desktop.
audex bash script to use the neroAacEnc AND neroAacTag programs to rip cds
#!/bin/bash
# Kibibit/s bit/s
# 96 98304
# 128 131072
# 160 163840
# 192 196608
# 224 229376
# 256 262144
#audex command: neroaacAudex.sh $i $o $artist $cdno $cover $date $genre $tartist $title $trackno $ttitle
i="$1"
o="$2"
artist="$3"
cdno="$4"
cover="$5"
date="$6"
genre="$7"
tartist="$8"
title="$9"
trackno="$10"
ttitle="$11"
neroAacEnc -br 262144 -if "$i" -of "$o"
neroAacTag "$i" -meta:album artist="$artist" -meta:disc="$cdno" -add-cover:front:"$cover" -meta:year="$date" -meta:genre="$genre" -meta:artist="$tartist" -meta:album="$title" -meta:track="$trackno" -meta:title="$ttitle"
exit
# 1st download neroaacodec from http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php
#save this text file file to /path/to/NeroAACCodec-version/linux/neroAac.sh then run:
sudo chmod +x /path/to/NeroAACCodec-version/linux/neroAac*
sudo cp /path/to/NeroAACCodec-1.5.1/linux/neroAac* /usr/bin
#audex command: neroaacAudex.sh $i $o $artist $cdno $cover $date $genre $tartist $title $trackno $ttitle
#neroAacEnc -br 262144 -if "$1" -of "$2"
#neroAacTag "$1" -meta:album artist="$3" -meta:disc="$" -add-cover:front:"$" -meta:year="$" -meta:genre="$" -meta:artist="$" -meta:album="$" -meta:track="$" -meta:title="$"
#-meta:<name>=
Audex variables:
$i=input_file
$o=output_file
$artist=album_artist
$cdno=cd#
$cover=cover_file
$date=date
$genre=genre
$tartist=track_artist=
$title=album_title
$trackno=track#
$ttitle=track_title
List of standard iTunes metadata field names:
title
artist
writer
album
year
track
totaltracks
disc
totaldiscs
genre
comment
contentgroup
lyrics
album artist
description
network
show
season
episode
episodename
sorttitle
sortalbum
sortartist
sortband
sortwriter
sortshow
tempo
itunescompilation
itunespodcast
End of metadata field name list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment