A Common Man in India

A common man in an uncommon world…..

Archive for the ‘Technical’ Category

Setting priority to tasks in Ubuntu / Linux

without comments

Giving priorities to a task in Ubuntu/Linux

Using “nice” command.
-10 is highest priority
+9 is the lowest priority
0  is the normal priory at which all your tasks will be running; system level tasks run at high priority such as -5
Eg:
nice -n -4 ffmpeg_audio -ss $start_time -t $duration -i $infile -vn -acodec libfaac -ar $SAMPLINGRATE -ab $ABITRATE -ac $CHANNELS -f adts -y ->audiofifo${core}  &
Learn Linux, Share Linux ;)

Written by valluryphani

July 24, 2009 at 6:13 am

Posted in Technical

Vim – auto-completion feature

without comments

For all the C programmers using vim – editor,
On highlight syntax using the command ” :syntax on “.

and also auto-completion can be found using “ctags”. ubuntu users can install it using the command ” sudo apt-get install ctags”.

and while programming, type “Ctrl+N” to on the auto-completion where ever it is necessary. :)

Happy Programming.
Learn Linux, Share Linux :)

Written by valluryphani

July 7, 2009 at 6:38 am

Posted in Technical

Everything about “Makefile”

without comments

A good article on makefile HowTo’s

http://www.d.umn.edu/~gshute/make/home.html

Learn Linux, Share Linux :)

Written by valluryphani

June 16, 2009 at 5:55 am

Posted in Technical

GUI with OpenCV and Qt

without comments

A small tutorial on how to design GUI for OpenCV projects with QtCreator.

http://sites.google.com/site/techgeekorg/opencv_qt

Learn Linux, Share Linux :)

Written by valluryphani

April 15, 2009 at 8:51 am

Posted in Technical

Tagged with , ,

Ubuntu-restricted-extras offline installer

with 2 comments

Cool Link for downloading the restricted packages in ubunutu.
Download and install

http://hacktolive.org/wiki/Ureoi

Share Linux, Learn Linux :)

Written by valluryphani

April 7, 2009 at 5:33 am

Posted in Technical

Convert .flv files to .mpg using FFmpeg

without comments

Fmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows. In ubuntu This package contains the ffplay multimedia player, the ffserver streaming server and the ffmpeg audio and video encoder. They support most existing file formats (AVI, MPEG, OGG, Matroska, ASF, …) and encoding formats (MPEG, DivX, MPEG4, AC3, DV, …).

ffmpeg Features

  • ffmpeg is a command line tool to convert one video file format to another. It also supports grabbing and encoding in real time from a TV card.
  • ffserver is an HTTP (RTSP is being developped) multimedia streaming server for live broadcasts. Time shifting of live broadcast is also supported.
  • ffplay is a simple media player based on SDL and on the FFmpeg libraries.
  • libavcodec is a library containing all the FFmpeg audio/video encoders and decoders. Most codecs were developped from scratch to ensure best performances and high code reusability.
  • libavformat is a library containing parsers and generators for all common audio/video formats.

Install ffmpeg Ubuntu

sudo apt-get install ffmpeg

convert .flv to .mpg using ffmpeg

First you need to download your .flv file to a folder and you need to Open a terminal window and go in to the .flv file folder and type the following command

ffmpeg -i sample.flv -ab 56 -ar 22050 -b 500 -s 320×240 sample.mpg

sample.flv is the file you want to convert, so the name must be the same as the source file.You can name jokes.mpg whatever you want as long as it has the .mpg extension.

-b bitrate: set the video bitrate in kbit/s (default = 200 kb/s)

-ab bitrate: set the audio bitrate in kbit/s (default = 64)

-ar sample rate: set the audio samplerate in Hz (default = 44100 Hz)

-s size: set frame size. The format is WxH (default 160×128 )
Learn Linux, Share Linux ;)

Written by valluryphani

March 25, 2009 at 8:24 am

Posted in Articles, Technical

Terminal Tweaks !

without comments

I found out some useful tweaks from my guru’s pages
for terminal users. Coming to this topic what i found out is “apparix”!
Apparix is a tool or a shell script ( I call it as a tweak or a black box,
because for now i am not a shell expert to explore its working. soon i will)
May be it will be nice and good only if i forward you to my guru’s page for
using apparix. ( hopefully for me readers benifit is important ;) )

http://sitaramc.googlepages.com/goto-considered-useful.html#a3

There is another tweak called “goto” where you can find the bashrc.goto
file, just source this file to your .bashrc file.
You can find more info on this too at the above url. :)

If you happen to find any tweaks or so, Please share with me.

@ GIT Users tweak !

For all the git users, my guru wrote a superb tweak for finding the status
of your respective git repos from the terminal. I can say with this, you can
save a lot of your time and get a snapshot of your git repo in seconds!
you can have a look at the screen shot and more info on this at

http://sitaramc.github.com/2-command-line-usage/souped-up-bash-prompt.html

Learn Linux, Share Linux ;)

Written by valluryphani

March 24, 2009 at 5:08 am

How to change the IP Address in Fedora

with one comment

Simple steps to change the IP address

1) go to /etc/sysconfig/network-scripts/ifcfg-eth0

2) Change the IPADDR = “your own ip address” (192.168.1.1)

3) Accordingly change the netmask.

// If your system is configured to a network and your network icon does not activate, follow this, in the above file change “NM_CONTROLLED = yes (default it will be “no”)
and restart your network. if this doesnt work, go to System menu, Preferences, Internet
and network and then to Network Proxy. Give your network proxy connections there it will get activated. (Restart if required).

4) and save the file and quit.

5) restart your network by “service network restart” or
/etc/init.d/network restart
6) Its done.. :)

Learn Linux, Share Linux  :)

Written by valluryphani

March 17, 2009 at 5:09 am

Posted in Technical

Story of Samba

without comments

A very nice inspiring article of “how samba was born”

http://www.linux-mag.com/id/302

Learn Linux, Share Linux :)

Written by valluryphani

March 16, 2009 at 5:41 am

Posted in Technical

Learn Shell Scripting.. #! Strictly for Beginners

without comments

#! Before we begin
For anybody to learn something, a few things come into mind,
1. Why should i learn it?

2. What benifit “I” will get from that?

So I started thinking answers for the above two questions when the thought of learning shell script came into mind!

For the first question the answer is already in the blog i cant re”type” the wheel.. :P (dont worry i ll give the link :: http://valluryphani.wordpress.com/2009/02/11/what-languages-do-you-know/ ) and answer for second question is .. normally from the previous answer we know one basic fundu of programming…( from my point and my guru’s)

“The choice of language before you program is important”..  :)
So what does this shell scripting gives you? First, and superb thing is you will have FUN in doing this.!! hope this is enough to start!! no problem i will tell you more.. second thing is makes you a step ahead from the normal users of Computers..!! You will automate things in linux with your magical powers of scripting!! :) :)

k .. soon u will find many.. for me two are enough to start and share things
[if not for u .. then wait till i explore and tell you :P ]

Come on…lets begin… :)

Learn Linux, Share Linux :)

Written by valluryphani

March 13, 2009 at 11:17 am

Posted in Technical

Tagged with