split.sh – batch split of ape, wav, flac images

I wrote a script that splits ape, wav or flac files based on a cuesheet, transcodes them to flac (at compression level 8), adds tags based on the metadata in the cuesheet and renames them based on the tags (in the form %tracknumber% %tracktitle%).

Usage
Usage of split follows the form split -ext “top-level directory” where ext is one of ape, wav or flac and corresponds to the extension of the image you wish to split. The top-level directory can be either a folder containing numerous folders [of folders of folders, etc.] of images you wish to split or a single folder, and must be the absolute path (no using . either; ~ is fine though). If it is the former, and contains mixed folders with ape and flac images, you should run split with the -flac option first or you’ll wind up with a lot of empty ‘converted’ folders and a lot of complaints on the command-line (although nothing bad will happen).

Requirements
To use split, you must have, at minimum, shntool, flac and cuetools installed. In addition, you must have the script cuetag installed as /usr/bin/cuetag.sh. Some distributions install it as /usr/bin/cuetag; if your distribution does this, you must run ln -s /usr/bin/cuetag /usr/bin/cuetag.sh as root or adjust the script appropriately (sed -i ‘s/cuetag.sh/cuetag/’ split.sh. If you want to split ape images, you must have mac installed.

split.sh requires one cue file and one image file per folder. The cue file must be in the same folder as the image file you wish to split, but can be called anything.

Notes
The accuracy of the title for each track in the cuesheet is critical to split.sh’s operation. For this reason, you should make sure the titles are accurate and correspond to your (or waffle.fm’s) standards before using split.sh. This will prevent duplication of effort later. You can take care of composer/performer in the cuesheet if you want, but it is much easier to batch fix this in any half decent tagging program.

Be sure your edits don’t violate the cuesheet spec (don’t use ‘&’ for instance)! Also, make sure any characters you use are allowed for filenames–I don’t currently check for that.

Download
You can grab it from github – https://github.com/Theta91/split

Todo (Someday, maybe, as this suits my current needs just fine)

  • Make relative paths work
  • Make sure the image file getting converted has a cue file in the same folder before attempting to convert it.

Use DropBox to Remotely Start Torrents

DropBox is of course an amazing utility. There are endless creative ways to use it to sync different things. Many themes for What.CD are of course hosted on a DropBox. I wrote a quick overview of some fun things for a friend who had just signed up: http://bit.ly/DropBoxtips

This tutorial simply focuses on torrenting & uTorrent.
(The same exact principles apply to any torrent client)

1> Get a Free DropBox account. 2GB is free. (Can add 250 MB for every referral.)
2> In uTorrent: Options > Preferences > Directories

Select: Automatically Load .torrents from & navigate towards your DropBox folder.

You will also need to select where you want the torrents saved to. Select “Always Show Dialog on Manual Add” so you can choose where to save torrents to when you are home.

Also, you can select “Delete Loaded .torrents” to keep you DropBox neat and clean.

3> Download a torrent into your DropBox when you are away from home. (Note: This can be anywhere in your DropBox: does not need to be your public folder)

That’s it!

So in a nutshell:

1.You are away from your home computer & want to DL something so it is ready for you when you get home, it’s a new release and you want to start seeding, you found something you don’t want to forget about, etc. etc.

2. You download a torrent & save it to your DropBox

3. Your home computer constantly scans the DropBox for added torrent files and instantly sees the torrent, adds to uTorrent, and starts downloading to your Default save location, then deletes the torrent file out of your DropBox.

4. Your torrent is waiting for you when you get home!

NOTES:
Do NOT use DropBox as your save location for torrents.

You will likely ultimately want to move your torrents to a different location but you do need to pick a single folder location as there is no way to specify it after you add the .torrent file into you DropBox.

If you don’t have DropBox installed onto the remote computer, you can save the torrent file and use the Web interface or put DropBox on a memory stick (DropBox portable).


Convert FLAC to MP3 w/ standalone app

(Disclaimer: You can do this using Foobar2000 or dbPoweramp easily enough & it works great. I wrote this for those of you who don’t use those apps or can’t be bothered to install them or whatev…)

OK. Here’s a little tutorial for those of you who would like to convert Flac to mp3 using a simple little freeware app.

First, if you don’t have them yet, download & install the Flac (FLAC for Windows with installer) and Lame mp3 codecs. Next, download & install this small & simple app called All2Lame. Make a note of where you save these codecs as well.
*You may also need Tag (by Case), which is used for adding ID3 tags to files. It can be found on the All2Lame homepage.

**Always use the latest recommended stable version of Lame/Flac: check (top right panel) Lame :: Flac

Now that you’ve done all that, open up the program. You’ll need to point it to the codecs that you just downloaded. Do this by clicking on “Locations” and then browsing to each one.

Next, you’ll want to add a command line (or a bunch or ‘em) to the “Switches” box at the bottom. Click the “+” button beside it to add new ones. Later on you can just click the arrow button there to bring up whatever command line you choose, for different bitrate encodings. Here’s the ones I use:

-b 320 –add-id3v2 –ignore-tag-errors
-V 0 –vbr-new –add-id3v2 –ignore-tag-errors
-V 2 –vbr-new –add-id3v2 –ignore-tag-errors

You will want the “Add ID3 tags” box checked, and you can configure that option how you want. (I just use “Copy tags from source files”)

Now you just add the files you want converted, choose a command line, set the “Output folder” location, and then click “Encode”. A DOS window will appear, showing the process in action. It doesn’t take too long.

That’s it! After that initial setup, it’s a very quick & simple job whenever you want to encode Flac to mp3. Also, if you like, you can click “Decode” to decode to .wav files.

Cheers!


  • Sponsors

  • Twitter Feed

  • Comments

  • Copyright © 2009-2011 SK3TCHY. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress