Page 9 of 9 FirstFirst ... 789
Results 81 to 83 of 83

Thread: [HOWTO] abcde

  1. #81
    Join Date
    Nov 2005
    Location
    Huntsville, Al
    Beans
    92
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: [HOWTO] abcde

    I am trying to get some post encoding commands to run -- specifically I am running two commands. The first is running avconv to convert the FLAC files to ALAC. The second then changes ownership from root to my user. The files belong to root as I have a udev rule to automatically run abcde on the insertion of a cd.

    However, neither of these are working. I attempted to put in echo commands; I don't get any output from post_encode(). Not sure what I'm doing wrong.

    I've looked through the original/full abcde.conf file, and I can see nothing about enable post_encode() other than uncomment and replace the ':' with my commands. Here's what I have in post_encode (in my /etc/abcde.conf)

    Code:
    # post_encode
    # By default it does nothing.
    # You can set some things to get abcde function in better ways:
    # * Move the resulting directory over the network
    # * Compare results with a previously made run, for tests
    # KEEP IN MIND that executables included in post_encode must be in 
    # your $PATH or you have to define them with full /path/to/binary
    #
    # Convert from FLAC to ALAC in .m4a format for ipod, then set owner 
    # privledge's for user.
    post_encode ()
    {
      cd "$OUTPUTDIR/$ARTISTFILE/$ALBUMFILE"
      for FILE in *.flac;
        /bin/echo "Converting $FILE to ALAC ..."
        do /usr/bin/avconv -i "$FILE" -c:a alac "${FILE%.flac}.m4a";
      done
      
      cd "$OUTPUTDIR"
      
      echo "Setting priveledges to $ARTISTFILE ..."
      /bin/chown -R at:at $ARTISTFILE
      
    }
    “We are all atheists about most of the gods ... Some of us just go one god further.”
    ― Richard Dawkins, The God Delusion

    www.cuberootent.com

  2. #82
    Join Date
    Nov 2005
    Location
    Huntsville, Al
    Beans
    92
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: [HOWTO] abcde

    Okay -- after much tinkering I figured out what needed to be done to make my post_encode portion work.

    I first had to edit the /usr/bin/abcde file and add these parts after the call to post_encode:
    Code:
    line 4451 /usr/bin/abcde version 2.5.4
    
    post_encode $(mungefilename $TRACKARTIST) $(mungefilename $DALBUM) $OUTPUTDIR
    Then, my abcde.conf file changed thusly:
    Code:
    abcde.conf file
    
    post_encode()
    {
      BASEDIR="$3"
      ARTIST="$1"
      ALBUM="$2"
    
      cd "$BASEDIR/$ARTIST/$ALBUM"
      pwd
    
      for FILE in *.flac; do
        echo "Converting $FLAC to ALAC ..."
        avconv -i "$FILE" -c:a alac "${FILE%.flac}.m4a";
      done
    
      rm *.flac
    
      cd "$BASEDIR"
      pwd
    
      echo "Setting privledges to $ARTIST ..."
      chown -R at:at "$ARTIAT"
    
    }
    “We are all atheists about most of the gods ... Some of us just go one god further.”
    ― Richard Dawkins, The God Delusion

    www.cuberootent.com

  3. #83
    Join Date
    Apr 2007
    Beans
    17

    Re: [HOWTO] abcde

    Is ABCDE ripping secure and can it handle drive's read offset? I am under the impression that RubyRipper is the way to go on Ubuntu/Linux, or Exact Audio Copy but that needs Wine.
    Article on RubyRipper: http://www.bitburners.com/blogs/2

Page 9 of 9 FirstFirst ... 789

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
  •