TubeCaption.com

Entries from June 2008

Hello! – Javier

June 7, 2008 · Leave a Comment

Hi everyone!

I am Javier Perez co-founder of TubeCaption.com. This is my first blog entry for this blog. I have been blogging in my personal blog at http://perezj.blogspot.com. I want to get more into blogging but raising a family of 3 kids, taking care of my wife, working my full time job and starting TubeCaption.com does not leave me with lots of time in my hands.

Starting TubeCaption.com has been very, very, very exciting. I have enjoyed every single time I sit in front of laptop to work on it. Releasing the beta version of our site was a major step for both of us. What we have right now is just the starting point and a platform for captioning online videos. Thanks to YouTube.com that provided an API to work with their videos, we have been able to create this site to allow users like you add your own captions, comments or whatever you feel like it.

Alex and I take care of the entire website and no one has a single ownership of one component of the application. We both work together as a team and we jump back and forth in all pieces of the application. Yes, in many areas Alex is a lot better to perform a specific task. We both sync and understand what’s going on at all times. I have enjoyed working with my friend and partner Alex Le and I feel he is like a brother to me and we a great team. I am in this for the journey, the experience, help others, and for the fun of it.

A little bit about me.

I am 23 years old and if you have figure it out yet, I am Mexican.

I have 3 children and a loving wife that has been supporting me all this time. I currently work as a Microsoft .Net consultant for DevOne Software which is my own corp. I will more involve with this blog writing about new updates, problems we solve, response to questions etc.

Thanks for reading.

Categories: Announcements
Tagged: ,

Captions and Ownership

June 7, 2008 · Leave a Comment

Today, we received a comment from Codeman38:

“Umm…I want to sign up, but on the signup page, it says you must agree to your terms of service, but I can’t actually *find* these terms of service. Sort of a major omission. ^_^

(Really, all I really need to know is if the captioning becomes the property of TubeCaption, or if I can use the same captions on other sites as well.)”

And I’d like to re-post our response to make it clearer about our intentions:

Thanks for the heads up. We are working on the legal terms right now so it will be available soon. Basically we are only trying to cover our bases so that we won’t get into trouble legally. We are in the process of getting incorporated, and very soon TubeCaption will be its own business entity that both Javier (my cofounder) and I can safely run (from the basement!). Once this process is done, we will have all the terms spelled out fair and square.

Thanks again for the excellent point of who has the “ownership” of the captions. To answer your question, we don’t intend to own ANY of the captions — simply because they are NOT ours to begin with. We want to be the good guy who people would go to and look for CC for videos. We value the contributions of anyone who spends time working on the captions (it’s a labor intensive task!) and the great value which the captions would bring to the community. We will stay free forever and we hope more people would benefit from our service.

These questions will be answered in our FAQs and Terms of Service pages, which we are working on. So in the mean time, before we have everything documented and written down, you can trust in our words that we will not be evil, ever.

Alex

Categories: Uncategorized
Tagged: , , ,

Tiny is the new Big

June 6, 2008 · Leave a Comment

Maybe for something, being bigger means better.  But not for TubeCaption.  I spent the entire day today working on the different JavaScript minifiers, obsfucators, and asset managements to futher trim down the size of the application.    It’s been an extremely productive day here for both Javier and I.

To start with the optimizing process, I gave Jsmin a shot.  It gives satisfactory results in terms of minification, but the packed files were not compressed and obfuscated as I wanted.  Since I wanted to reduce the file size more and also to protect the application from external manipulations, obfuscation is a critical requirement.

I then found out about PackR, a Rails plugin implementing the Dean Edward’s Packer script.  Dean’s original implementation in JavaScript of the packer and obfuscator is wickedly cool, but it will probably take me a full day to read thru his code and see what he’s doing — it is THAT convoluted.  I was very impressed with the results from the Ruby siblings.  PackR spitted out the smallest files ever, in term of size, when run with “base64″ and “shrink variables” both checked.  The files were also almost unreadable due to the minification and obfuscation.  However, sadly my code stopped working completely altogether.  There’s no way I can read a file contains one single line of 8000000000 characters with convoluted JS calls and able to figure out what went wrong.  So I thought that I would go bankcrupt with my original plan of optimization the scripts…

I then remembered about YUICompressor and decided to give it a shot.   YUICompressor is a Java app, compiled as a JAR file.  Java? NOOOOOOOO.  Anyhow, I gave in.  Installing Java on the server was simple enough through yum.  I already have Java installed locally so I just fired up the JAR file (I’m using yuicompressor-2.3.4.jar) to see how it rolls.  YUICompressor works decently with reasonable minifications.  The obfuscation is weak since it only does function parameters replacement (unlike Dean’s Packer, which goes deep into the code and performs crazy regex-kungfu to obfuscate).  Nonetheless, my code did work, after numerous failed attempts to pack the correct files in the correct orders.  I’m really happy of how things did turn out.

The results?

Prototype (1.6.0.1) + Scriptaculous (1.8.1) total of 169KB after combined and packed.  After the packed file is gzipped, it’s only 47KB!

The editor’s code, spreading out around 10 different files with a total size > 60KB is now reduced to ONE single minified file, weighs 13KB after getting gzipped.

Miscellaneous JavaScript for the Watch Video Page, packed down to 15KB, gzipped down to …… 3KB!

What does this mean to TubeCaption users?  The page loading time will improve and the editor will load much faster than before.

The thing I love the most about this is that the entire process of merging all the JS files, obfuscating them, and produce the end results is totally automated.  In development mode, everything is nicely separated.  I still work on the different source files in my project.  Once I push the deploy button, a Rails plug-in, which I customized to work with the YUI Compressor, takes care of entire packaging process.  In the view, the javascript helper will automatically know to pick up the correct packed JavaScript files if the current environment is production, or spits out the links to the individual source files if in development mode!

So why don’t you fire up the editor, start captioning and make some money today?

Categories: Announcements · Development
Tagged: , , , ,

TubeCaption is growing!

June 5, 2008 · Leave a Comment

We did it.  We launched the first Beta version of TubeCaption on Monday.  We are proud to be the first free, community-driven captioning service.  Since the site is still under heavy development, we have not made any public announcements yet.  We are working really hard to smooth out the rough edges and make TubeCaption even more awesome.

Most people whom we demoed the site to really like the look and feel of the site.  However, the central piece of TubeCaption is Captionizer, our timeline-based captioning editor.  I personally have spent hundreds of hours into developing the editor and the interface so that we can streamline the captioning process.  As helpful as the captions can be to a video, the captioning process is tedious.  Even worse, the current tools out there on the internet are out-right impossible to do anything significant.

I am spending as much time working in the editor as I do to develop it.  I want to feel the pains of someone who dedicates the time to write captions for the clips.  I want to find ways to help ease these pains and make the editor even easier to use.  Currently, the editor is being optimized and tuned for keyboard shortcut.  Most important features such as inserting, editing can be accessed via keyboard shortcuts. After working on a few full-length video clips, I realize that it is not about the software, but about the user and how the tool can be tweaked to keep the user the most productive.

Tonight, I just added 2 new features which will make editing captions a whole lot easier:  play from User Cursor (shortcut: Ctrl + Space) and “enter edit mode for last active caption” (shortcut:  L).  I will go into details about the different shortcuts that Captionizer supports in a later post, so stay tuned.

I also moved the database to its own dedicated machine to prepare better for future growth. I will keep monitoring the main web server and tune it as much as possible.  My goal is to keep page response of TubeCaption to be less than 300ms. 

We have lots of plan in the next coming weeks so both Javier and I are pretty excited.   In the mean time, why don’t you register for an account, fire up the captionizer and start captioning?

Categories: Announcements
Tagged: , ,