Jan 27

The RealEyes crew has been working long and hard on a new site for and with Beatport.com. As of last week it went live. This is a pretty hefty app with massive customized skins and components. Check it out and a big congrats to all the developers and people involved at RealEyes and Beatport!

picture-3

Jan 26

So just got word that my ugly mug is up on Adobe again. This time its the featured Developer Spotlight.

Check out the links and the posts here:

http://www.adobe.com/devnet/spotlight/spotlight_dhassoun.html

We are promoting it on the ADC home page:
http://www.adobe.com/devnet/ – Community panel towards the bottom

Also here:
http://www.adobe.com/devnet/spotlight/
http://www.adobe.com/devnet/flash/
http://www.adobe.com/devnet/flashmediaserver/
http://www.adobe.com/devnet/flex/

Jan 13

So I had to throw this together real quick yesterday for an upcoming project where we were going to be parsing the batch capture CSV files from Premiere and wanted to know the in, out, and total duration of video clips. It basically takes a video in and out timecode and converts it to seconds. For proper accuracy you need to make sure you alos know the frames per seconds.

//Test values
var inTime:String = “02;00;00;00″;
var outTime:String = “02;10;30;15″;

//————————————-
//CONSTANTS
//————————————-
var _timecodeDelineator:String = “;”;
var _frameRate:Number = 30;

//————————————-
//FUNCTIONS
//————————————-
function convertTimecodeToSeconds( p_code:String, p_frameRate:Number = 30 ):Number
{
     var time:Number = 0;
     var splitArray:Array = p_code.split( _timecodeDelineator );

     trace(“splitArray: ” + splitArray);

     //hours (1 hr = 3600 seconds)
     time += splitArray[0] * 3600;
     //minutes (1 min = 60 seconds)
     time += splitArray[1] * 60;
     //seconds
     time += int( splitArray[2] );
     //frames (target / actual = % seconds)
     time += splitArray[3] / p_frameRate;

     trace(“time: ” + time)

     return time;
}

function getDurationFromTimecode( p_in:String, p_out:String, p_frameRate:Number = 30 ):Number
{
     var inNum:Number = convertTimecodeToSeconds( p_in, p_frameRate );
     trace(“—”);
     var outNum:Number = convertTimecodeToSeconds( p_out, p_frameRate );

     return outNum – inNum;
}

var dur:Number = getDurationFromTimecode( inTime, outTime, _frameRate );

trace( “TOTAL DURATION: ” + dur );

Jan 13

I had the pleasure (and stress) to write a few more articles for
Adobe’s Devent on Flash Media Server related topics. This release
contained a 3 part series on the new Dynamic Streaming functionality of
the newly released (as of today), Flash Media Server 3.5. Its an
awesome release with some great features. heck out the articles here: http://www.adobe.com/devnet/flashmediaserver/

Jan 13

Ok so I am not big on new years resolutions. I think if you want to change something in your life you need to do it and not base it on some yearly recognization and trend. HOWEVER this year I am joining the pack of lemmings and making a new years resolution to blog more. I have not posted a message since July and there have been plenty of reasons why. Most of all we have been incredibly busy and running 2 companies plus all the community stuff takes a lot of time, second I have the bad habit of doing really long posts which take lots of time. Either way I am going to try and do better. I am also going to start doing some business topic posts along with all the tech talk, so be prepared!!