Sunday, September 12, 2010

The Greatest Work of Our Time Is Lost

I was just watching the imaginarium of dr parnassus which begins full of promise and then sort of craps out. The most interesting part of the film is the story of parnassus not the imaginary wonderlands of random people who go through parnassus' mirror.

I was totally blown away by the production design of Parnassus' Monastery. After watching the DVD extras about the Monastery, it seemed that one of the great achievements of the film were the props. I often think this is the case with other films, and with theater in particular.

It seems after thousands of years of architectural masterpieces, 500 years of scupltural masterpieces, and about 200 years of painted canvas masterpieces - we are in an age where masterpieces are really transitory and in the service of other even more transitory masterpieces. I guess this is what happens when production is in service of entertainment or the triumph of bread on circuses.

Friday, September 10, 2010

A completely different blog post

i have been blogging lately to keep track of what I am doing with my streaming video project. The montagenik blog is probably not the best place for this. I should probably keep this info in evernote or perhaps another blog, or perhaps a del.icio.us account, or perhaps a git gist. However, the fact is, that I actually go back in my blog and look for these tidbits. My blog is like my personal search engine repository. When I spread out this information over a bunch of different application I generally dont use them. I find it more efficient to keep everything in one location.

This week has been a good week in the 13Bit getting things done world, but a bad week in the Meredith getting things done world. The jet lag has put me on a really messed up schedule and I am completely useless after 4pm. Tomorrow Paul and I have a short shooting trip to NJ where we will interview two collectors, then sunday Cindy and I will bot in preparation for the upcoming robot parade. Paul and I also have something special up our sleeves for the Ecopocolypse website. It is very cool....

I started out the day by reading from 'The Book of Disquiet' - This is a fantastic, beautiful, inspiring book. "And at this table in my absurd room, I, a pathetic and anonymous office clerk, write words as if they were the soul'd salvation and I gild myself with the impossible sunset of high and vast hills in the distance." I am considering ripping off Mattins and reading parts of this on a daily podcast.

My new love is the OED on the computer.

Wednesday, September 8, 2010

More EC2, FFMPEG and video streaming from the cloud

So today I am setting up the compression engine on EC2 to compress video out into 4 formats. I need to do this before I use the segmenter to divide up video out into segments that will then be recompiled on the fly via lexical searches...

Anyway I had a java program downloading my mov files - clips from video out- but it was taking to long. I dont want to have to download the file in order to convert it I want ffmpeg to convert it via http... luckily i found this on stack overload:
http://stackoverflow.com/questions/2677317/how-to-read-remote-video-on-amazon-s3-using-ffmpeg


evermind, I found an easy way to solve my problem.

I set up an amazon cloudfront download distribution pointing to my S3 bucket.
Via cloudfront the files are accessible with ffmpeg over http:

ffmpeg -i "http://subdomain.cloudfront.net/video.mp4" -ss 00:00:10 -vframes 1 -f image2 "image%03d.jpg"

Tuesday, September 7, 2010

Incoherent Ramblings on EC2 and ICT4D

When you are deploying some sort of web based app with some sort of services (mobile, messaging, whatever) in a far away land, one of the largest time sucks is configuring the server. If the server has already been configured, there is generally no documentation. No one knows you decided to config your ssh port on 666. Granted one 'could' provide better documentation, as well as server install scripts (think a list of apt-get or yum or whatever you are doing). However, after working with EC2 on amazon, I think standardized disk images are the way to go.

1) You are actually deploying the same server everywhere. So, why not make that server once, as an EC2 instance and then actually deploy it.
2) Services that rely on a hardware device such as an SMS modem have to be installed on a local box, but, web access, database storage, and number crunching, can all be stored in the cloud. Then, if you want to edit your web interface or Z-score calculation for child malnutrition, you don't have to worry about power outages in Tanzania. And you will probably have less latency as well. The route that your server takes to ssh into a server in Tanzania is Byzantine.
3) Scaling. This is a dream issue but say all of South Africa starts using your service, all you need to do is deploy some more EC2 instances and load balance. You dont have to send over a bunch of techies to set up a server farm.
4) CAVEAT - as i mentioned above if you have a device attached to your box - such as an SMS modem, or rf transceiver or whatever - then you cannot deploy that aspect of your app to the cloud (the aspect that connects with the device) however you can use the EC2 image to create your local server.

EC2 is great for standardization, especially when you lack people, money, and equipment - i love it.

Monday, September 6, 2010

Superbitter AMI

I am creating an instance for the SuperBitter off the RAILS fedora AMI. I dont use fedora but I decided to use an Amazon recommended AMI and it was fedora or bust.

I added: git, java, csound, ffmpeg, scala, jetty & mavin (for lift)

ffmpeg is still missing some stuff

used this resource for ffmpeg install :http://blog.ryanparman.com/2008/06/28/installing-ffmpeg-php-fedora-amazon-aws/

in the midst of building thrift - (need to update autoconfig), mongodb (sort of a pain), open source segmenter (a pain), http://github.com/mfchang/HTTP-Live-Video-Stream-Segmenter-and-Distributor

For the future I am going to split up the web EC2 (rails) from the backend EC2 (scala, mongodb, csound). But for now I dont want to deal.

Monday, August 16, 2010

Video Server Development

So this is basically to help me keep track of development for a video application I am developing.
Paul sent me the following link that is super useful:
http://www.ioncannon.net/programming/1015/ipad-streaming-video-and-more/
This is also a useful link: http://blog.kyri0s.org/post/271121944/deploying-apples-http-live-streaming-in-a-gnu-linux

The plan:
I am using http live streaming to stream the video. I am streaming 90 minutes of video.

I need to create different bitstreams so I am going to use FFMpeg.

Then I am going to use an open source segmenter instead of the apple segmenter (this is running on unix) http://svn.assembla.com/svn/legend/segmenter/

I am going to set all this up as an instance on EC2.

This means I need to set up an AMI instancehttp://docs.amazonwebservices.com/AmazonEC2/dg/2006-06-26/creating-an-ami.html.

I may even install csound on the AMI

Reading Marx is Making Me Depressed

I feel like I have been reading lots of Marxist inspired thought lately, and so I picked up 'A very short intro to Marx'. Thus started my descent into economic depression. To summarize the summary... history is moving toward the freedom of mankind. Freedom, for Marx, means, freedom from alienation. Human beings are alienated from themselves because their work is not an expression of their nature but a means to survive. Alienation - the key point here. Humans are alienated because of economic conditions. That is what separates us from one another, (according to Marx), is economic conditions. This is opposed to religion (Feuerbach) as the crux of alienation. Or our separation from our true selves (Hegel).

Anyway - I find Marx's critique of alienation spot on - even if his economic theories are a bit dodgy. Everything these days is commodified and monetized. Here, I am blogging for the pleasure of it. However, blogger & google are commodifying this blog by integrating it into their ad/knowledge network. This is even more profound than the realized alienation of the wage slave who must sell his time in order to support himself. In this case I am not even aware of my alienation. I view myself as human, while google views me as a commodity.

Also, as a former wage slave to a corporation, but now an independent wage slave to myself, I doubt there is any way to escape the transformation of time into money. In my thought though the greatest achievements of technology are medical and, in a round about way, social. By social, I mean, technology and technological accomplishment is the great leveler. It is not subject to discrimination. The ability and the actual achievement of technological accomplishment by people of all races, gender, sexual orientation, leads to the end of social discrimination.