Recently in Audio/Video Category

Feb
09
itunes-logo.png

iTunes automatically creates a backup copy of its library file in a XML format. Manually creating this file from the File->Library menu is also possible. By doing so, the entire iTunes Library metadata is exported to an XML format where it can be further processed. Common requirements may be to import the library into an Excel spreadsheet as a comma-separated-value (CSV) file, or to insert the metadata into a database using SQL statements.

For me, I was working on a audio/video related project and I needed some sample, yet real-life metadata to work with. So I ended up writing a simple and compressive iTunes parsing library, implemented as a single XSL that performs most of the work. This proved to be especially useful since Apple did not implement the iTunes Library as a 'real' schema, but rather a freeform key/value pair whose definition isn't published anywhere.

The iTunes Stylesheet XSL is freely available under a BSD license. Using it can greatly reduce the amount of effort required to parse and use iTunes Library metadata. The library has been developed and tested against iTunes version 9.

Now on to the code... The following example shows how easy it is to iterate through every title and output the name and artist.


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    
<xsl:include href="iTunes.xsl">
    
<xsl:template match="/">
    <xsl:for-each select="plist/dict/dict/dict">

        <xsl:call-template name="name">,
        <xsl:call-template name="artist">

    </xsl:for-each>
</xsl:call-template>

Now suppose the requirement was to insert the library into a SQL database; no problem. The iTunes Stylesheet XSL has a built-in template for escaping when the output is SQL, specifically, it escapes singles quotes.


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    
<xsl:include href="iTunes.xsl">
    
<xsl:template match="/">
    <xsl:for-each select="plist/dict/dict/dict"> 

        <xsl:call-template name="sql_escape">
            <xsl:with-param name="arg1">
                <xsl:call-template name="name">
            </xsl:call-template>
        </xsl:with-param>,

        <xsl:call-template name="sql_escape">
            <xsl:with-param name="arg1">
                <xsl:call-template name="artist">
            </xsl:call-template>
        </xsl:with-param>

    </xsl:for-each>
</xsl:call-template>

Download iTunes Stylesheet XSL

iTunes Stylesheet XSL contains templates to parse the following:

  • Track ID
  • Name
  • Artist
  • Composer
  • Album Artist
  • Album
  • Genre
  • Kind
  • Size
  • Total Time
  • Disc Number
  • Disc Count
  • Track Number
  • Track Count
  • Year
  • Date Modified
  • Date Added
  • Bit Rate
  • Sample Rate
  • Comments
  • Play Count
  • Play Date
  • Play Date UTC
  • Release Date
  • Artwork Count
  • Rating
  • Rating Computed
  • Album Rating
  • Series
  • Season
  • Episode
  • Episode Order
  • Content Rating
  • Persistent ID
  • Track Type
  • Purchased
  • Podcast
  • Unplayed
  • Has Video
  • HD
  • Movie
  • TV Show
  • Music Video
  • Video Width
  • Video Height
  • Location
  • File Folder Count
  • Library Folder Count

Download iTunes Stylesheet XSL

Jan
22
flash_media_server.pngIn a recent press release, Adobe announced that it would publish the specification for it's Real Time Messaging Protocol (RTMP). The protocol is used to transfer messages between Flash servers and the Flash Player for Rich Internet Applications and high-performance streaming audio and video.

The proprietary protocol has never been published. As a result, third party's have been left to reverse engineer the protocol in an effort to develop alternative yet compatibile solutions to Adobe's own line of Flash Media Servers.

Vendors like Wowza and the open-source project Red5 will benefit greatly from this announcement. I predict that there will also be a slew of alternatives to these as well as a few specialized implementations of the spec.

The announcement comes at an interesting time. Adobe's recent partnership with Intel to bring Flash-based streaming video to the living room means that they need full community support behind Flash and it's messaging technology, RTMP. It also means theres plenty of opportunity to create all kinds of new services that weren't easily achievable because of high server software costs.
Jan
10
SpringPlayer-2.jpgVersion 2.0 of SpringPlayer is now available. This Flash-based video player supports all the latest video standards in the Flash platform including H.264/AAC and HD. The player is available in two editions, Free and Professional. Both are based on the same code, but the Professional Edition includes support for Javascript control of the player, RTMP support and full source code. The Free edition is available under a creative commons license while the Professional edition is available under a commercial license from Flashcomponents.net.

KEY FEATURES

H.264/AAC & HD Support
The player requires Flash 9.0.115 and higher and supports H.264 (including HD material using main or high profiles).

Containers Supported
Can playback video in FLV, F4V, MP4, M4V and MOV containers.

Auto Scaling
Will automatically scale the video to the highest possible resolution while preserving the videos aspect ratio, or can simply scale to fill the dimensions of the player window.

Progressive and RTMP Streaming (Professional Version Only)
Supports both progressive downloads from web servers, and RTMP via Flash Media Server and Red5.

Easy To Use Interface
A symmetrically elegant user interface presents the user with only the most used controls in both windowed and fullscreen modes.

Fullscreen Support With Controls
Users have access to the same easy to use interface while in fullscreen mode.

Javascript Control (Professional Version Only)
Several functions are controllable via Javascript including volume, playing, pause, seek, timing information and loading another video.

Small File Size
The player weighs in at just under 13KB for the exported SWF.

Saves Volume Settings
When a user changes the volume of the player, the settings are saved. The next time they play a video on your site, their settings will be used.

Full Sources  (Professional Version Only)
Separate FLA and AS files included for CS3 and higher. Only two lines of code exist on the FLA's stage making it very easy to modify the look of the player without worrying about code modifications.

Visit the SpringPlayer project page for more details or to watch a demo of the player in action. You can also download the player and use it free of charge on your own personal or commercial site.
Dec
20
SpringPlayer_leftside_interface.jpgI'm beginning to work on a rather large video project and have evaluated close to a hundred different players including both the commercial and open source varieties. Long story short, I didn't find one that met my needs, entirely. With that, I started creating my own. The result is SpringPlayer v1.0.

SpringPlayer is an Adobe Flash-based video player written in Actionscript 3 that targets Flash Player 9.0.115 and higher. There were three design goals of the player:

  • Focus on usability to deliver a player that's functional, elegant and easy to use.
  • Create a player that's small and compact and requires minimal time to download.
  • Make it free for the world to use.
With this simple criteria, I've created a player with the following features:

  • Written in Actionscript 3 targeting Flash Player 9 and higher.
  • Compact filesize of only 13Kb.
  • Supports HTTP progressive download.
  • Fullscreen support with controls.
  • Plays back FLV, F4V, MP4 and some MOV's.
  • Videos can be resized to fill available screen or can maintain aspect ratio.
  • Supports any aspect ratio (4:3, 16:9, 1.85:1, etc).
  • Simple and easy to integrate into virtually any website.
As of this entry, SpringPlayer does not yet support RTMP, but will in early 2009. Support for Flash Media Server 2.x/3.x, Red5 and Wowza are in process as well as a lot of code optimizations. The goal is to add some additional functionality while decreasing the filesize of the SWF. Currently it weighs in at 13Kb which is significanly smaller than players written using Adobe's own FLVPlayer component.

Visit the SpringPlayer project page for more details or to watch a demo of the player in action. You can also download the player and use it free of charge on your own personal or commercial site.

Aug
15
toe_tag.jpg
Wired published a very interesting article entitled 'Fitting Network TV for a Toe Tag'. The article describes the slow-but-sure death of Network TV in its current form. In summary, the article gives many reasons why Network TV will die, but the number one reason is that '...niche is the new normal'.

I couldn't agree more. The days of networks dumbing down content for the masses are numbered. They've been over for quite some time for myself personally. As a consumer of niche television and Internet programming, most of the content I consume is short format video podcasts or medium to long format audio podcasts.

There's a growing number of content producers in various genres of niche programming. Anything from photography, video editing, ruby programming, automobiles, to crochet is available online, and for free.

The issue that will arise however, is how and where do niche content producers publish their content? This is a fitting question because creating the next Revision 3 is not a small task, and publishing content to social/video sites like Youtube doesn't do much for the image of the producer nor does it monetize their content all that well.

All of this leads me to the reason for this posting. In the coming weeks and months, I'll be posting details about a project I have been working on for some time now. Stay tuned...

Aug
06
On July 2nd, 2008, I was interviewed by Karen Greenwood Henke from Nimble Press about the future of Video on Demand in public education. The interview took place at the National Educational Computing Conference in San Antonio, Texas. Here's a link to the article which is posted on the Long Tail Learners Blog.

Get the Flash Player to see this player.
Apr
07
Handbrake is a fantastic application for converting standard definition DVD's to another format. In my case, I use it to encode to AppleTV (H.264/AAC/AC3). I've followed the development of Handbrake for some time now, but until recently, it's been too buggy or incomplete for me to use. That all changed when version 0.9.2 was released.

roswell_intro.jpgUsing Handbrake, I can decrypt, rip and convert to MPEG-4 in one simple step. One of my test videos for encoding applications has been the TV series Roswell, which aired on both the WB and Fox network about eight years ago. One of the reasons I use this as a test is that the content was originally shot on film (23.976 fps) and was telecined resulting in 29.97 frames per second. The shows typically loose cadence quite frequently resulting in a good test for IVTC filters. There are always a lot of both horizontal and vertical movement as well as dark (or black) scenes which can be quite difficult for the encoder to process.

After many tests, I'm posting what I feel like are my ultimate settings. Some people use handbrake to make smaller, transportable files. Others use it for conversion to mobile devices. I use it with the intention of playing back an exact (or very close representative) copy of my DVD's on my Apple TV device. The only things I cared about when creating these presets were:

  • The content was standards-based MP4 (H.264, AAC)
  • Able to play back on Apple TV
  • Introduced little or no visual artifacts
  • Provided a Dolby Digital/5.1 surround track
Currently Handbrake does not have a method to import or export presents. So for the time being, you'll have to locate the UserPresets file (~/Library/Application Support/HandBrake/UserPresets.plist on a Mac) and add the contents of the download after the last </dict> in the file. You can download my custom preset here.
Feb
17
Yesterday, Japan's NHK reported that Toshiba will stop manufacturing HD-DVD equiptment. This comes in light of the recent announcemets during CES by Warner Studios and by the more recent accountments of Netflix, Blockbuster and Wal-Mart to stock only Blu-ray players and titles going forward.

Alas, consumers finally have an easy choice for a physical media format; standard definition or high definition.

But does it really matter? Did Sony win the battle and lose the war?

The proliferation of online movie rental services like XBox Live, iTunes and Netflix allow consumers near instant gratification with the ability to rent both standard-def and high-def content on-demand. Not only does the Blu-ray camp have to compete with these new delivery models, they also have to compete with file sharing networks where users are able to download high-def content for free.

At a time when consumer buy-in is a priority for Sony, the electronics giant faces an uphill battle trying to convince consumers that physical media formats are still relevant.
Oct
10
Converter Studio 2.0 - InterfaceIn the era of YouTube and sub $1000 pro-sumer cameras, the need for video encoding tools is ever increasing. By in-large, the demand for such tools is no longer a job for the professional. Today, literally hundreds of encoding tools exist. Googling "Video Encoding Tools" yields just under 45,000 results. So how do you know which tool to use?

Today, I'm reviewing a product from Elecard, a little known Russian company. The product, Converter Studio 2.0, is the latest version of their not-so-popular-but-should-be encoding tool.

Converter Studio comes in four flavors depending on the features required.
  • Converter Studio (consumer product)
  • Converter Studio AVC HD Edition (consumer product)
  • Converter Studio Pro (professional standard-definition product)
  • Converter Studio ProHD (professional high-definition product)
Most consumers, amateurs and semi-pro encoders will find the features in the first product (Converter Studio) to their liking. My first complaint however is in the names. I wish software companies would standardize on a max of 2-3 versions of a single product. For example, Converter Studio actually has more features, including HD, than the AVC HD edition. The differences in the Professional product offerings is quite obvious; high-def vs. standard-def.

The Interface

Studio Converter 2.0 - Interface
Elecard has re-written the entire UI from scratch. This is a huge improvement from the previous 1.2 product. The interface is clean, well-organized and very intuitive. Elecard has done a good job creating an interface that is equally usable by professionals and beginners. It's Apple-ish styled interface reminds me of Final Cut Studio and Apple Compressor, but far simpler.


The Preview Window

Converter Studio 2.0 - Preview Window
As you would expect, the preview window displays the contents of the original source material being encoded. One of the things that I've always liked about the QuickTime player is that you can use the left and right arrow keys on your keyboard to advance the video frame by frame. So I was thrilled when I tried this in Converter Studio and it worked.


Profiles

Converter Studio 2.0 - Profiles
Converter Studio comes with an assortment of pre-defined profiles for common applications and devices including Blu-ray Disk, DVD, Sony PSP and Apple iPod. Users can also create their own profiles either from scratch or by using one of the included profiles as a template. Unlike most encoding applications, users cannot overwrite or delete predefined profiles. This is a great feature for the beginner who is just starting to learn the interface. Creating profiles is just as impressive. The enhanced Profiles window shows all available profiles and a high-level overview of what specs make up the profile. This not only is an improvement over previous versions, but surpasses the usability of some of the more known encoding applications like Sorenson Squeeze. Likewise, the Task Parameters window shows all of the details about the current profile as well as the content being encoded.

 Converter Studio 2.0 - Task Parameters


The Main (Concept) Attraction

Like it's predecessor, Converter Studio 2.0 uses the most advanced H.264 implementation in existence. MainConcept supplies among other things, the multiplexer and the encoding engines. A household name among video professionals, MainConcept is consistently winning awards for its superior picture quality. The purpose of this article is to highlight the features of Converter Studio, so I won't get geeky with the specifics of the actual codec. Just know that it kicks some serious ass.

Direct from DVD

Converter Studio 2.0 - Open DVD
Finally, I can now rip directly from a DVD into the multiple formats that I require. Although other applications are available that do this, like Handbrake, no other application gives you a better balance of features, ease of use, and output quality than Converter Studio. Previously I would use DVD Decrypter to rip the DVD, store it as a VOB, Remux it to an MPEG-2 Program Stream, and convert it using Converter Studio as an MPEG-4. Version 2.0 automates a lot of this process and saves drive space because I no longer have to store the VOB/MPEG-2. I've tried this feature on multiple unprotected DVD's and it works flawlessly.


Interlacing is Evil

To quote Alex Lindsey from the Pixel Corps, 'Interlacing is Evil'. This statement is so true. However, a lot of the made-for-TV productions available on DVD are either interlaced or telecined. So it's good to know that Converter Studio has the best deinterlace and inverse-telecine filters I've seen. The inverse-telecine filter was extremely impressive as it automatically determined and adjusted for the various pull-down methods. I've tried to inverse-telecine content using Sorenson Squeeze, Apple Compressor and a boat load of open source tools with moderate to awful results. Converter Studio on the other hand has yet to fail me. In fact, every non-progressive title I've thrown at it has worked - flawlessly! This alone is worth the price of admission.


Is Converter Studio For You?

Converter Studio is ideal for anyone looking for an inexpensive ($240 USD), next generation encoding solution. It's perfect for both beginners and professionals who have existing content who want to repurpose it for use on HD-DVD, Blu-ray, DVD, portable devices, media center appliances or for online distribution. It's an ideal solution for someone who just wants a solution that works, without having to cobble together a lot of open source tools or listen to excuses from commercial vendors as to why their product doesn't work as advertised. Although there are plenty of encoding tools, many are free, this is one application that you SHOULD consider buying.
Sep
18
Blue DVDFor the last several years, Blu-ray and HD-DVD have been duking it out. Blu-ray was initially far superior to HD-DVD because of the use of the blue laser whereas HD-DVD initially used red. At the present time however, there isn't much difference between the two. They both use blue lasers, both have high capacity (although Blu-ray Disk still holds more), both support 1080p and interactive features. So what's the difference and why should you care?

The answer: you shouldn't. My prediction is that neither format will win. If consumers actually adopt these high priced formats, all players will support BOTH formats. The last time competing disk formats emerged this very thing happened. Remember DVD+R and DVD-R? After the dust settled, all DVD recorders supported both formats.

Do consumers actually care about high-def? Are they willing to spend more than the $150.00 'magic price' for a high-def disc player? Is downloadable media going to kill discs formats altogether?

As an Apple fanboy, I thouroughly enjoy viewing content on my iPod and AppleTV. I enjoy purchasing media on the iTunes store. It's simplicity and elegant design saves me from searching all over the Internet for online stores that carry a particular publisher or for torrents of questionable quality. It's been over five years since I've purchased one of those 'shiny little discs' (a.k.a' Audio CD), and I'm now starting to demand the same for the video content I'm interested in. (Shame on you, NBC!)

Like most consumers, I'm holding out on purchasing a high-def player. Prices need to fall. Wal-mart needs to be selling them below $150 before you'll see any real impact. But wait! Another disk format is coming to the rescue and it debuting at, you guessed it, $150. It's called HD-VMD and it's a product of New Medium Enterprises.

HD-VMD is based on current red laser technology and relies on the same manufacturing process of traditional DVD's making it quite inexpensive to produce both disks and players. Like DVD's, HD-VMD supports up to 5GB per layer, but unlike DVD which only supports a maximum of two layers, VMD disks support up to eight layers for a total capacity of 40GB per disk. The players support the same video codecs (H.264/AVC, VC-1 and MPEG-2) as Blu-ray and HD-DVD along with Dolby Digital and DTS sound. And yes, the players all support 1080p for true high definition playback. So what's holding this technology back? One word, the Studios. Major studios have yet to release content on this format. Could it be that they're contractually obligated to Blu-ray or HD-DVD? It surely can't be due to piracy concerns as VMD disks also support AACS like their Blu-ray and HD-DVD counterparts.

Although I have not tested one of these units, the technology seems promising, the price point is excellent, and I'd like to buy one. Studios - Help me out!

When Blu-ray was originally designed, I automatically thought of it as an offline data storage medium. However, during the Blu-ray/HD-DVD war, other formats have emerged which make both of these formats look like childs play. This is the era of holographic storage and there are again, two formats looking to win. On July 28, 2007, the Holographic Versitile Disk (HVD) Forum approved and published their initial disk specifications and they're very impressive - 200GB of storage with 1TB coming soon. InPhase, another manufacture of holographic disk technology, has disks that support up to 300GB with 800GB and 1.6TB disks on the way.

With inexpensive HD-VMD players and extremely capable holographic disks on their way, is there any room for expensive and inferior Blu-ray and HD-DVD technology? Will Blu-ray and HD-DVD continue to battle it out until they both die off? Will the current format war be a topic of laughable discussion at the water cooler five years from now? I don't have the answers. But I do know, consumers have choice.
Facebook LinkedIn last.fm Hulu Twitter RSS
Adopt a Pet

Copyright © 2010 Steve Springett