June 18, 2010

Splitting Videos In Ubuntu

Splitting videos has been a concern over a long time, until recently I found out a simple technique that uses an equally simple command. For this all you have to do is install ffmpeg, either from Synaptic Package Manager or command-line apt-get or aptitude (Ubuntu), or yum, zypper, etc. in case of other distros.

First cd to the directory where you have your video. Then,

varsha@varsha-laptop:~$ ffmpeg -i video_name -ss 00:04:00 -t 00:05:16 "video-part1.avi"


specifies the name of the input file

-ss stands for position in hr:min:sec format where you want the splitting to begin

-t is the duration of the new file

My specification here is to split the video after 4 minutes elapsing from the start time of the original video and having a duration of 5 minutes and 16 seconds.

You can split into multiple parts at the same time.

varsha@varsha-laptop:~$ ffmpeg -i video_name -ss 00:00:10 -t 00:00:30 part1.avi -ss 00:00:35 -t 00:00:30 part2.avi

This creates part1.avi of 30 seconds duration starting from the 10 second of the original video and part2.avi of 30 seconds duration starting from the 35th second of the original video.

[Note: 1. The output file must have a proper recognized format.

2. Check out the manual for more information and details.

varsha@varsha-laptop:~$ man ffmpeg

June 16, 2010

Installing GWT On Ubuntu 10.04

GWT (Google Web Toolkit), is a development toolkit for building web applications.

You can have a look at the Getting Started page for a basic knowledge. Installation too is easy enough.

Pre-requisites for Installation

1. OpenJDK Development Kit (JDK) version 1.5 or later

2. Apache Ant


1. Install Eclipse or Netbeans. I am using Eclipse.

2. Install the Eclipse-plugin. Refer http://code.google.com/eclipse/docs/download.html.

3. Install the GWT SDK. Refer http://code.google.com/webtoolkit/gettingstarted.html#installing.

Getting Started With Applications

Refer to the following pages.

1. Getting Started With GWT SDK

2. GWT In Action

[Note: Install JDK, Apache Ant and Eclipse (or NetBeans) using apt-get or Synaptic Package Manager (or from Ubuntu Software Center for Ubuntu 9.10 and later).]