Friday, March 28, 2008

How to Take a Video Screen Capture in Jing and Send it to Youtube.com

Wow, what a painstacking process this was!
It took me so long that I decided to write a blog entry about it while I am waiting for the conversion.

Here are the ingredients that I used to capture my screen and get it on youtube for sharing.

I went to jingproject.com by techsmith which is my favorite free screen capture tool (and I hope that it stays that way).

When you download and install this program you can then easily create screen videos of whatever you do. Simply talk over what you are doing while recording to create a video. You have a maximum time of 5 minutes and you can pause the video while recording.

It takes a little getting used to, but there is no editing available in jing as of this post. That is ok, we have ways to get around that for now. I personally used Sothink SWF Quicker to edit my SWF file for places where I needed to blank out sensitive information.

I could not figure out anything else I could do with this software, although my intention was to somehow edit it to fix the ending. Regardless... its good enough. This whole process is taking me longer than I would like anyway.

I also found a free flash to video encoder to then get my swf file to a youtube friendly format. I chose mpg as I know this should be small. Now be ready to wait at least 15-25 minutes. You can specify how the length of the conversion (ie you may cut some of the end of the video... wow which is exactly what I wanted to do since I somehow added 10 minutes of nothing at the end while messing with it in the previous program!) But please note that the demo version for the converter I downloaded actually ended up putting up some real annoying ads over the conversion. I would not mind in most cases, but it bounces around in the most annoying fashion all over the screen. Oh well- if I find a better tool, I will post it here. For now, at least I have my video on youtube!

Now that you know how... you should be ready to take your video and upload that baby!

By the way, I recently found out the sothink has a swf to video conversion tool which is much better than the one that i originally used. All the software mentioned here has at least a 30 day trial limit.

Labels: , , , , , , , , , , , , , ,

Thursday, March 6, 2008

Flex Upload IO File Error

So we kept getting the infamous file io error when we were doing some very large uploads with our flex upload. We spent a lot of time debugging this and we kept thinking that it had to do with the HTTP Keep Alive on PHP level.

The symptoms are as follows:
User uploads file and it seems to go fine or get through most of the way.
Upon completion of upload (or not), the flex module hangs at 100% uploaded or returns a File IO Error (or similar).
The upload module will work through PHP in most cases, usually when the large files are uploaded, this is when you have issues.

This is what I did to debug the issue.
I went into the PHP tmp folder to actually watch the files as they uploaded. From here I was able to start discerning a pattern of what was happening. It seemed that the file was getting stuck at 5:00 minutes exactly. I was able to replicate the issue and I realized that the process which was handling the upload, must be getting stuck or timing out.

Since it is PHP that is handling the file upload, I went on see what was in phpinfo(). I noticed that the HTTP_Keep alive was exactly 300 seconds = 5 minutes.

This lead me (eventually to the right location), but it was not the http keep alive. I went through regedit in windows and actually searched all the registry kees for the term alive and also for a value of 300.

Nothing seemed to add up.
I eventually remembered that there were several settings in the IIS Metabase that are usually hidden (or rather deep). I went through and did a search for 300 (seconds). I found that the cgi timeout setting was set to exactly this.

I changed this setting to a much higher value, and what do you know... it solved the problem. The CGI timeout value will limit how long your upload will last, so be sure that it is adequate for the size of files that you will be expecting.

Labels: , , , , , , , , , , , , , , , , , ,