During my last trip to Mt. Hotham, I discovered that the videos I took with my IXUS 55 digital camera took up fairly substantial real estate on my 512MB SD card. For example, a 12 second clip took 21.9MB which when compared to videos available on the net these days, is extremely bloated (e.g. a TV show of about 40 minutes in length is about 350MB).

Checking the user manual of the camera reveals that it uses a Motion JPEG format for the video. This format stores each frame of the video separately which results in the much larger overall file size. Here are some results from the conversions which I did with the clips I have using VirtualDub‘s default XviD settings:

Before:

12 seconds, 21.9MB

1 min 3 seconds, 84.2MB

50 seconds, 57.3MB

7 seconds, 13.5MB

48 seconds, 75.0MB

After:

12 seconds, 1.75MB

1 min 3 seconds, 6.08MB

50 seconds, 3.67MB

7 seconds, 0.95MB

48 seconds, 5.61MB

As you can see, the results show quite a large reduction in size. Before following the steps below, you would need to ensure you have the XviD codec in your system. I’m using the K-lite mega codec pack which bundles all the various codecs (including XviD), but you can also download XviD standalone here. Steps:

  1. Download the latest VirtualDub from here.
  2. Extract the zip file that you have downloaded to your location of choice on your hard disk (e.g. C:\Program Files\VirtualDub).
  3. Run VirtualDub.exe from the directory you extracted to (e.g. C:\Program Files\VirtualDub\VirtualDub.exe).
  4. Open the video file you wish to convert using File->Open File or just drag and drop the file into the VirtualDub window.
  5. Click ‘Video’->’Full processing mode’ (ensure there’s a dot on the left of Full processing mode).
  6. Click ‘Video’->’Compression’.
  7. Select ‘XviD MPEG4 Codec’, then click OK.
  8. Click ‘File’->’Save as AVI..’
  9. Choose the directory you want to save the converted video to, enter a filename and click ‘Save’.
  10. The transcoding should now be in progress. The time taken for it to complete would depend on the speed of your processor and the length of the video.

It is possible to get even further file size reductions by tweaking configuration settings to sacrifice on quality. This usually requires some time in experimenting with various settings to get the best tradeoff which you want. You can read more about transcoding/encoding over here.

Do note that different camera manufacturers may use a different format for capturing video (for e.g. Quicktime MOV) which may already be optimised and would not attain the same amount of reduction in file size. ;)

Static website hosting with continuous deployment/delivery

While I was researching on static web hosting with Jekyll, one of the most suggested ways to get it up and running for free is by relying...… Continue reading