Stitch Some AVI’s Together

January 21st, 2010

So you have that video of your cat doing that thing and that other video of your brother getting startled by the can of joke peanuts, and now you’re thinking “I’m such a wicked director I’m going to edit these films together and put them on the Interwebz.”  Ok.  That sounds important.

In Ubuntu there is a little utility called avimerge which (wait for it) merges avi files.

avimerge -c -o [WhatYouWantItCalled].avi -i [a].avi [b].avi

I know; you’re thinking “dude, that looks like something you type into the terminal window; how am I supposed to do this?”.  Fear not, little tomato.  You just want to replace the stuff in the square brackets with your stuff.  A and B are the two files you are wanting to merge and WhatYouWantItCalled is, well, I think you can manage that one.  Yours might look like this:

avimerge -c -o ScorseseMe.avi -i CuteKitty.avi BroJumps.avi

If your file names have spaces you’ll have to tell the shell (the terminal) how to interpret them:

avimerge -c -o Scorsese\ Me.avi -i Cute\ Kitty.avi Bro\ Jumps.avi

Could it be any easier?

Have fun with that.

  • Share/Bookmark

Little Apes to FLAC files

January 18th, 2010

You may come across individual APE files which you would like to convert to FLAC files.  This can be especially useful if you have an album FLAC and an accompanying CUE file and you are having trouble getting the APE to burn correctly.

There is a fairly simple tool for dealing with this conversion.  As fortune would have it this tool will also manage conversions to and from ALAC, SHN, TTN, and WAVE files.  How can they pack so much fun into such a small package?  Now it’ll be that much easier to clean your collection up and keep everything tidy: flacflacflac.

Ok, so you’ll need—and if you’ve been following along here you already have—the MAC (Monkey Audio Codec).

Next you’ll need to get something called apeinfo.   There exist both 32 and 64 bit versions so be sure you get the proper version for whichever Ubuntu you are running.  You will find them here.  You will want to change the name of the file you download to merely apeinfo (so remove the _32 or _64) or it won’t work when called up by the next tool.

The next tool being known as convtoflac.  You may find that here.

Download both of your files and they all gets stuck into /usr/local/bin.

I downloaded each of these to my desktop and then used sudo to copy them into /usr/local/bin.  Make certain you have given them execute permissions (set the execute bit).  By storing them in /usr/local/bin I am sure they are in my command path (basically those places your system looks when you type a command) and they are ready to use.  Here is the command you need to move the apeinfo file from the Desktop to /usr/local/bin:

sudo mv /home/[usename]/Desktop/apeinfo /usr/local/bin/apeinfo

You can copy and paste that line and make the necessary substitutions for your system, download location, and specific file.

Once you have these installed correctly you are ready to use the tools to make conversions.  I have written a small simple script for making all of this work together.  If you make my script executable and place it  in your /usr/local/bin you can merely call the whole thing up by typing the name of the command (whatever you decide to name your version of my script) in your terminal.  I named my script Ape2Flac.sh.


#  Ape2Flac.sh

#  also requires apeinfo and convtoflac
#  http://www.soundunreason.com/InkWell/?p=1335

for i in *.ape
do convtoflac.sh "$i"
done

This method will preserve any existing tags.

To fire it up, navigate into the folder in which you have the APE files and run my script (by typing its name into the command line).  It’s that easy.

See, nothing to fear from the command line.

Happy hunting.

  • Share/Bookmark

Bye-bye Inane non-Drive Drive Letters

December 27th, 2009

It’s so easy to poke fun at Windows.  They seem to halt the design process about midway between a great idea and a full implementation—then hand things over to a committee for unrefinement.

(What’s a camel?  A horse designed by committee: loaded with great features but would you look at the thing!)

One such design bumble is that if you have a card reader connected to your machine, Windows likes to assign a drive letter for each slot.  Windows will do this even if the slots are empty.  As an example, my studio machine has an internal card reader (four slots) and I have an external card reader attached most of the time because I can keep it close at hand (four slots); this gives me drives lettered E through L.  All of these drives are of course empty (or more accurately are not drives at all, more below) and so are merely clutter in Explorer (My Computer, &c).  Fortunately I have found a solution for this problem.

Unix systems (Linux, Mac, &c) don’t bother with this.  It’s not simply because they don’t assign drive letters either.  When mounted each drive does receive a designation, but empty card reader slots are not mountable and as such are not assigned any designation.  The device (the card reader) is treated like an adapter and any necessary drivers are loaded upon connection (ie, when you attach the card reader using a USB cable).

Let me explain how the card reader is neither one nor many drives.  In the case of memory cards (like SD cards for a camera) it is the card itself which is the drive.  The reader device is more akin to the IDE controller and cable(s) in your machine by which your hard drive might be connected.  As an example of how it ought to be done, Windows does not assign a drive letter to an unconnected end of an IDE cable where it dangles alone in your box (nor to an IDE channel without a cable).  It’s not a drive until you actually connect a drive to it; the same should hold true for the card reader.

Now, there are those who will assert that the card reader ought to be considered as a CD or DVD drive is considered.  However, this is a false line of reasoning.  There is at least one action which can be performed on a CD drive without any media inserted: you can eject the drive tray (or close it) by right-clicking on the drive letter.  There is no action which can be performed on an empty card reader slot.

The thrust here is that card readers don’t need assigned drive letters if they are empty.  In my example above I display eight (8) alleged drives in My Computer.  If I insert one card I have to guess as to which of those I have loaded a drive.

Now Microsoft has apparently finally seen fit to include a feature in Windows 7 (off by default) which allows users to disable this inanity, but you may not yet be using Windows 7.  (I’m content to wait for the first service pack.)

You can rid yourself of those annoying empty drive letters (and allow inserted cards to auto-assign) using a small service application called USB Drive Letter Manager.  It has other functionality, but I was content using the included sample configuration.

Installation and deployment is easy.

  • Download it from the above link (it’s near the bottom in a section called “Conditions and Download”)
  • Unzip the files into a folder on your root (maybe C:/Tools)
  • Rename “USBDLM_sample.INI” as “USBDLM.INI” (or create your own “USBDLM.INI” file)
  • Right-click on “_install.cmd” and run (you will likely need administrator privileges)

That’s it.  It’s now running as a service.  No more empty card reader slots, and when you insert a card it is auto-mounted (auto-assigned a drive letter).

Thanks to the cats over at LifeHacker for some of this information.

Happy hunting.

  • Share/Bookmark

Decco Goes Ubu-Crazy

December 16th, 2009

Not so long ago I wrote an article about my new tube pre-amp, the Decco.  It’s from this company called Peachtree Audio.  They make a new version called the Nova which is even cooler.  How I wish I was being paid for my talents…

Anyway, I really like the Decco.  The only thing is I was having some trouble figuring out how to get my Ubuntu systems to send the signal to the Decco via USB.  Until now.

Open the PulseAudio Volume Control (located at Applications —> Sound & Video).  Navigate to the Output Devices tab.  I had two entries here: Internal Audio and 0000 Analog Stereo.  I’m not clear why it’s called analog, but the 0000 is the one we are after.

Navigate to the Configuration tab.  Under Internal Audio change the Profile: drop-down to Off.  Make sure 0000 shows as stereo.

You’re done.

Rock out.

(If you are having troubles with PulseAudio in Ubuntu, you will want to take a look at this wonderful post.  If you are experiencing other audio/video issues in Ubuntu, here is an excellent and comprehensive post.)

  • Share/Bookmark

Digital Copy Coasters Cost More

December 14th, 2009

You may have noticed that a lot of movies are offering a second or third disc in their multi-disc offerings which include what they are calling Digital Copy. But, really, what the fuck is Digital Copy?

I mean, for starters, the DVD or Blu-ray is already a digital copy of the film.  What’s so special about the capital letter version?  I read a good article that goes into a modest level of detail for being about a page long, and I encourage the curious to follow that link.

In a nut shell, you are paying around $10 for an extra disc which contains a version of the film you are purchasing which you can then play on your computer or portable device.

“But, Jimbo, I can already play DVD’s (or Blu-rays) on my computer.”

Mostly everyone can play DVD’s on their computers, and certainly anyone can rip a DVD into a format that can be transfered to a portable device (avi, mov, mpg, &c).  So now you can ask yourself what you or anyone else might need with Digital Copy.  I mean beyond the obvious “I’m lazy and someone already did it for me” route.

But suppose you really are lazy and would like to simplify this shrinking and portability problem.  Then you should certainly steer clear of Digital Copy.

They are using a scheme of digital rights management that will restrict you to use your purchased movie on one device (iTunes or Windows Media Player or your portable device—not all three).  Further, if you have a problem (like a hard drive failure) you are likely to lose your precious Digital Copy and have no reasonable recourse to reclaim it.

(The article I linked to above has some great personal stories of lost Digital Copy in the comments.)

What I find rather irksome is that with many of the new Blu-ray discs coming out, your only choice is a version which includes Digital Copy.  You cannot opt out of that Digital Copy tax in your purchase negotiations.

It’s these damned marketers at it again.  They tout Digital Copy like it’s the greatest thing since chapter selection, but then they hand you a spoonful of honey to which all the flies have already adhered.

Yum.

Oh, and if you’ve already purchased some Digital Copy, you can use them as a nice set of movie themed coasters at your New Year’s party.  I am.

  • Share/Bookmark

Make a Big APE into Several Small, Tagged FLAC Files

December 8th, 2009

You may recall with great excitement my post on splitting and tagging album length FLAC files into track length FLAC files.  It may come to pass that you find yourself staring at an album length APE file.

What?  What the hell is an APE file?

In short, some folks decided “hey, what the world needs is another media player and it’s very own lossless codec”.  In their defense, MediaMonkey looks like a pretty cool application (say “iTunes killer”), and it does support FLAC and OGG so I don’t dispise it.  Nonetheless, it is my advice to avoid specialized and proprietary codices wherever possible.  Unfortunately Monkeys, this means no APE files.

As fate would have it, if you are already set up to split and tag an album FLAC, you are nearly ready to do the same for an album APE.  You just need the MAC (monkey audio codec).

You have two choices.  This codec isn’t part of what Canonical normally provides, so you can either add a repository which includes it or you can download the codec directly.  I tend to prefer adding a repository, but the codec can be downloaded in this package.

http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb

(If you choose to download the .deb package, double-clicking on it once you have downloaded it and your system will run the installation.)

For those of you, like me, who prefer to add a repository, the Eudoxos repositories include MAC, so we can add this one.

http://ppa.launchpad.net/eudoxos/ubuntu yourubuntuversion main

Once you have added that repository Monkey Audio will appear in Synaptic.  To install the Monkey Shite open Synaptic and look for Monkey Audio.

Now let’s get to the meat of it.  I have grown lazy and tend to rename my FLAC, APE, and cue files to the letter a, so my commands look like this:

shnsplit -o flac -f a.cue -t “%n – %t” a.ape

cuetag a.cue *.flac

(Please note there may be a copy and paste problem here.  The quotation marks are different.  So when you grab the part -t “%n – %t” you will have to replace the quotation marks by typing them afresh.  Failure to do so will yield an error—shnsplit: error: need exactly one file to process.  Alternatively you may copy from the  code section.)

shnsplit -o flac -f a.cue -t "%n - %t" a.flac

[Note: you may substitute "%n - %a - %t" if you want artist names in your file names]

[now you may move or remove the album FLAC]

cuetag a.cue *.flac

Unlike splitting a FLAC file into smaller flac files, you don’t necessarily have to send the album length FLAC to the trash (or remove it’s file extension) between performing these two commands.  But you can.

If this isn’t strait forward, you may want to read through my previous post to sort out the details of the conversion process and then come to this post for the APE specific information.

Thanks to this post for some information.

  • Share/Bookmark

Text Message Spam Spank

November 30th, 2009

I just got this exciting text message opportunity to learn more about home owner related financial something or other.  And I’m not a homeowner.  Shocking, I know.

Here is the text:

Dear homeowner, if you are struggling to make your mortgage payment or have a recent hardship, a modification can help.  Would you like to learn more about this?

A modification?  Really?  Like maybe a sex-change operation?  For reals?

The message came from this number: 1-562-242-9461.

Feel free to give that to every telemarketer with which you speak.

Let them talk to each other if they yearn to speak with someone.

  • Share/Bookmark

What Does a Heart Weigh?

November 23rd, 2009

A lot less than seven pounds. A good hunk of meat, that. You could get seven pounds of beef for maybe twenty bucks.  A human heart comes in at perhaps 10 ounces.

But if your heart is broken, how can you go about getting a new one?

Congenital heart disease is no fun, to be sure.  I have just watched a film that works a cure on many levels.  This is a film not to be missed.  I really can’t tell you much about it as it would only detract from the seeing of it.

So, let me just say go buy or rent your copy of Seven Pounds.  Go.

No regrets.

  • Share/Bookmark

SBS Server Throws SharePoint Version Error

October 29th, 2009

Yeah, my client kept getting this error from their SBS 2003 server whenever they tried to visit their Company Web:

this windows sharepoint services virtual server has not been configured for use with asp.net 2.0.50727.3603. for more information, please refer to knowledge base article 894903 at go.microsoft.com/fwlink/?LinkId=42660.

That suggested link at the end takes you to this knowledge base article.

It lists a command that will allegedly fix the problem.  However, since the file in question (stsadm.exe) is not likely in your path(s) the command they display will fail.  Windows desktop search 4 was not able to locate the file for me, even after I forced it to include c: in it’s scope.  So I poked around and found the file myself.  As such, I was able to construct a proper command for my client’s server:


"c:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\stsadm" -o upgrade -forceupgrade -url http://companyweb

Please also note that “URLOftheVirtualServer” is translated into “companyweb”.  Yours may be different if you are dealing with a related but not identical problem.

Well, that’s the end of that adventure.  I hope this has saved you some time.

I do find it amusing, as an aside, that Microsoft seems to be saying “we have these cool new security features in ASP.net, but our SharePoint software is not compatible with them so you have to turn them off—even though we ship it out this way”.

Go figure.

I have come to accept that Microsoft is not working to torture me with these little blunders and foibles, rather they are trying to entertain me.  Otherwise how could I explain such marvelous notifications as this:

upgrade

  • Share/Bookmark

The Power of Misinformation

October 23rd, 2009

Nobody wants to kill their own children.  I mean, that may seem like a good solution at tantrum time, but all kidding aside parents for the most part really want to see their children survive them.

However, the desire to feel good about protecting your children can lead down a path where feelings outweigh reasoned arguments.  Thanks to my friend Eric for sending me this great article on one facet of the crisis in this country concerning the irrational, wish-dream advocates attack on all intellectual and rational pursuits.

This article at Wired (“An Epidemic of Fear: How Panicked Parents Skipping Shots Endangers Us All”) does a good job of summing up the current information about immunization and the alarming trend to ignore the body of science supporting it.  Definitely a good read.

What is interesting to me (and to a number of friends with whom I have discussed it) is this willful embrace of ignorance.  It’s not just present here in this immunization issue.  Anytime truth comes into conflict with emotion there will arise a faction who cling to untruth for the sake of the heart-strings.

While I am certainly capable of sympathy with those many positions which feeling leads us towards, an important part of growing up is recognizing that the world is rarely as we wish it.

It’s time to grow up, everybody.

Though it is likely true what this article posits in its final paragraph: “There will always be more illogic and confusion than science can fend off.”  Nonetheless, we can and should raise our rational voices against the gale of emotive blabbering.

It is no longer enough to rest assured that the truth will prevail in time.  Yes, the Catholic Church did finally pardon Galileo.  But he died blind and separated from his daughters under house arrest in Rome.

Raise up your rational voices.

  • Share/Bookmark