LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Uncategorized Entries with no category
Old

compiling greatest ffmpeg & using it

Posted 03-22-2011 at 06:17 AM by sumeet inani
Updated 03-22-2011 at 06:33 AM by sumeet inani

First install yasm-1.0.1.tar.gz in usual way.

For libx264 support
Get latest
Code:
git clone git://git.videolan.org/x264.git
You get x264 folder . You can compress & save that folder for backup .
Installing involves
Code:
cd x264;./configure;make;sudo make install;sudo ldconfig
extract ffmpeg & then run
Code:
 cd ffmpeg ;./configure  --enable-avfilter  --enable-avfilter-lavf --enable-vdpau --enable-bzlib
...
Member
Posted in Uncategorized
Views 323 Comments 0 sumeet inani is offline
Old

template in vim

Posted 03-15-2011 at 02:36 AM by sumeet inani

I found this -> http://code.google.com/p/lh-vim/wiki/muTemplate

I downloaded 4 vimballs namely - lh-map-tools-1.1.2.vba , lh-vim-lib-2.2.4 , searchInRuntime-2.1.8.vba & mu-template-2.2.1.vba
Then opened them in vim & ran
Code:
:source %
Now if you create new file ending in c then it will be filled with

Code:
//========================================================================
  2 /**@file
...
Member
Posted in Uncategorized
Views 313 Comments 0 sumeet inani is offline
Old

usb detection

Posted 03-15-2011 at 02:04 AM by sumeet inani

Code:
sudo lshw | grep -i usb
you will see
Quote:
bus info: usb@1:number_varying_with_port
configuration: driver=usb-storage
Obviously lshw (as super-user) will show all info like serial number,signature,capacity etc. of pendrive
Member
Posted in Uncategorized
Views 332 Comments 0 sumeet inani is offline
Old

my dvdrip

Posted 03-15-2011 at 01:38 AM by sumeet inani
Updated 03-15-2011 at 01:56 AM by sumeet inani

Formula to calculate video bitrate
Code:
bitrate(in kb\s) = (target_size_in_Mbytes - sound_size_in_Mbytes) * 1024 * 1.024 * 8 / length_in_secs
sound_size is obtained from
Code:
mencoder INPUT_video_file -of rawaudio -oac mp3lame -ovc copy  -o sound_size.mp3
rip it
Code:
ffmpeg -i Input_video_file  -s widthxheight -f avi -vcodec mpeg4 -b from_formula -g 300 -bf 2 -acodec libmp3lame -ab 96k dvdrip.avi
If ffmpeg gives 'segmentation error' , 'cannot resample...'...
Member
Posted in Uncategorized
Views 398 Comments 0 sumeet inani is offline
Old

how to compile c program in linux

Posted 03-15-2011 at 01:25 AM by sumeet inani

In windows , I used to run borland C++ compiler which also provides help on all functions defined in various libraries.

In ubuntu 10.04 I do
Code:
gcc c_program.c
It will provide error output , if any. Otherwise produce a.out in current folder which can be executed
Code:
./a.out
In one of my threads I learnt that you should end printf with '\n' so that buffered output is flushed on screen.
You can also use 'fflush(stdout);'...
Member
Posted in Uncategorized
Views 2192 Comments 1 sumeet inani is offline

  



All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration