How To Decrease Resolution of Output Video File in mencoder

In a previous post, I showed how to change an .ogv file to a .avi one which is useful is you’re going to give the video to a windows user. One problem I faced is that my resolution is too high and after I created the output avi file, it was about 7 MB in size which was too large as an e-mail attachment, you can simply add the parameter “-vf scale=800:600” to reduce the resolution to 800*600, e.g.

mencoder OMPerf.ogv -vf scale=800:600 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

where:

OMPerf.ogv is the input file
800*600 is the resolution
output.avi is the output file

Tagged , | Leave a comment

How To Find and Delete Files Not Matching MULTIPLE criteria using bash in AIX

“find . ! -name “*.bz2” ! -name “ESPRD*” | xargs rm”

 The above command finds all files in the “current” directory excluding those with “*.bz2” extension and those which start with “ESPRD*” and then deletes them all.

Tagged , | Leave a comment

How to add a new data file to Oracle Tablespace using sqlplus

First login as the "oracle" user, and issue the command "sqlplus "/ as sysdba"" (I am assuming that you already have configured the 
PATH environment variable correctly) and then type the following:
 
alter tablespace tablespace_name 
add datafile '/oracle/data/file1.dbf' size 12G autoextend off;
 
The above command adds a data file named "file1.db" of size 12 GB to the "/oracle/data" path with the autoextend feature turned off
 
Source: http://www.adp-gmbh.ch/ora/sql/alter_tablespace.html 
Tagged , , | Leave a comment

Convert OGV files to AVI using mencoder

OGV is the default output for the “recordmydesktop” application in ubuntu, and I needed to convert it in order to use another software:

mencoder input.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

Tagged , , , | Leave a comment

Gwibber : Twitter & Facebook Client in Ubuntu 9.04

A very nice desktop application for feeds from twitter and facebook, don’t use the one packed with Ubuntu 9.04 and use the one from the PPA instead:

To download the new version :

  • open synaptic package manager
  • go to Settings -> Repositories
  • on the Third-party Software tab, click add and add this line :
    deb http://ppa.launchpad.net/gwibber-team/ppa/ubuntu jaunty main
  • and then save this key and import it from Authentication tab to authorize it.
  • after that reload synaptic package manager, and then search for Gwibber. Now it has the 0.9.2 version

After installation process add Facebook account in Gwibber by :

  • Account -> Create -> Facebook
  • you’ll have to Authorize Gwibber to use your Facebook account,
  • just follow the three easy steps and you’re in.

Gwibber can also handle Twitter, account creation is very easy.

Source: http://ubuntu.igameilive.com/2009/08/gwibber-facebook-client-in-ubuntu-904.html

Tagged , , , | 2 Comments