Archive for January, 2008

How to: FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libogg + Libvorbis + AMR on a Linux Based Server

Lately I’ve been receiving a lot of queries and request to install this setup on quite a few boxes so I decided to write a guide (CentOS Based). It also includes copy & paste commands so it should be relatively easy to follow. Note: It shouldn’t be impossibly hard to modify this to work with other distros (Here’s one for a generic distro).

The following Guide will show you exactly how to install the following packages on a CentOS system:

  • FFmpeg
  • FFmpeg-PHP
  • Mplayer + Mencoder
  • flv2tool
  • LAME MP3 Encoder
  • AMR (for 3gp file conversions)
  • Libogg
  • Libvorbis

Setup the directory to use

(Wouldn’t want /root to start getting crowded, would we?)
mkdir /usr/local/src
cd /usr/local/src

Dowload the necessary files.

wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-6.0.0.1.tar.bz2

Extract all the files

tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar zxvf flvtool2_1.0.5_rc6.tgz
tar jxvf essential-20061022.tar.bz2
tar jxvf ffmpeg-php-0.5.1.tbz2
tar jxvf amrwb-6.0.0.1.tar.bz2
tar jxvf amrnb-6.1.0.4.tar.bz2

Create a folder to hold the codecs

mkdir /usr/local/lib/codecs/

Make sure we have all the necessary libraries as well as SVN + Ruby installed

yum -y install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel

Get ffmpeg and mplayer via SVN

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src

Copy Codes for Mplayer

mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

Create a temp dir with 777 permissions (needed to install ffmpeg)

mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp

Installing LAME

cd /usr/local/src/lame-3.97
./configure
make && make install
cd /usr/local/src/

Installing LIBOGG:

cd /usr/local/src/libogg-1.1.3
./configure && make && make install
cd /usr/local/src/

Installing LIBVORBIS:

cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
cd /usr/local/src/

Installing FLVTOOL2:

cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd /usr/local/src/
cd /usr/local/src/mplayer
./configure && make && make install
cd /usr/local/src/

Installing AMR (for 3GP Conversion)

cd /usr/local/src/amrnb-6.1.0.4
./configure
make && make install
cd /usr/local/src/amrwb-6.0.0.1
./configure
make && make install

Installing FFMPEG:

cd /usr/local/src/ffmpeg/
./configure –enable-libmp3lame –enable-libogg –enable-libamr-nb –enable-libamr-wb –enable-libvorbis –disable-mmx –enable-shared
make
make install
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
cd /usr/local/src/

Installing FFMPEG-PHP:

cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure
make
make install
Note: Make sure this is the correct php.ini for the box!!
echo ‘extension ffmpeg.so’ >> /usr/local/Zend/etc/php.ini

Restart and you’re done

service httpd restart
cd /usr/local/src

Testing

Direct your browser to view a phpinfo() php file. Scroll down and you should see the ffmpeg extension.

Wasn’t all that hard was it?

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bypass Torrent Shaping / Throttling Part 2

As promised, here’s part 2 of my guide on how to bypass BT shaping by modern ISPS. This one involves P2P-ing via a SSH tunnel. Sounds scary no? Don’t worry, its not as hard as you think and its a LOT more reliable than my last method. Its not free though, but its cheaper than forking out RM30 (~USD10) for some crappy VPN service that goes down exactly when you want to download something uber important.

Got your attention yet? Read on…

Here’s a relatively simple 3-step guide that will show you how to set it up.

1. Get an SSH account.

You need an SSH account in order to get this working. I currently use silenceisdefeat which requires a small $1 donation. Its getting slower and slower lately but since its $1 for life, might as well keep using it. Here are some of the other notable ones that I’ve tried.

 

  • http://www.phyrec.net/ - Good price and located locally ( Malaysia ) too RECOMMENDED
  • http://www.earthshells.net/ - USD12 for 8 months ( Cheap )
  • http://silenceisdefeat.org/ - Cheapest at $1 for life
  • http://www.redshells.net.my/ - Yet another local company, too bad about the offshore servers
  • http://www.pixcle.net/ - Another local company, pretty cheap too

The local companies are good for those of you that don’t have paypal as they accept local bank ins :)

2. Download, Install and Configure Putty

Download Putty, store it somewhere on your computer and run it. In the session screen enter the host name (I use ssh.silenceisdefeat.org), the port number (22), and tick the connection type box (SSH).

ssh putty tunnels

Next, go to SSH –> Tunnels, enter a source port and tick the dynamic box. I’m using port 23456, but you are free to choose any post you like as long as it’s available.

ssh

When you’re done, it might be a good idea to save the session so you don’t have to enter the info next time you run Putty. If you’re ready, hit the “open” button in the session screen. A command-line interface will pop-up so enter your username and password that you received from your shell-provider, and you’re done.

3. Configure your BitTorrent client.

The last step is to configure your BitTorrent client. I will show you how it’s done in uTorrent and Azureus but other BitTorrent clients use a similar setup.

uTorrent: go to Options > Preferences > Connection. Enter your port number (I use 23456), socks 4 or 5 as type, and localhost in the proxy field.

Azureus: go to Tools > Options > Connection > Proxy Options. Tick the “Enable proxying of tracker communications” and “I have a SOCKS proxy” box. Next, enter your port number in the port field (I use 23456) and localhost in the host field.

utorrent ssh configuration

When you’re done, restart your BitTorrent client and you’re ready to go. BitTorrent over SSH tends to be a bit slower than your normal connection, but it’s a great solution when BitTorrent connections are blocked or throttled.

For those on a Mac OSX, please check out this great tutorial (which in part inspired this article) for more details. It includes instructions on how to do this on a Mac, using Azureus.

For those who will be using this on a regular basis, you may want to consider using MyEnTunnel , a wrapper for PuTTY that will restart it if the connection is dropped (or goes stale for that matter). Setup’s similar, remember to choose dynamic portfowarding.

Stay tune for part 3 coming soon :)

(Source: http://torrentfreak.com/bittorrent-over-ssh-071014/ )

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

How to Delete Files Even When Windows Says “file access denied”

 

How To Delete A File When ..

 

  • Windows says ‘file access denied’.
  • - ‘File in use’ error.
  • - Can’t delete a file (insert cryptic reason).
  • - Rebooting doesn’t help delete the file

Despite all its quirks, Windows does do some things for a good reason. Some files need to be locked down when they are in use, otherwise you risk damaging the file or harming the Operating System. Unfortunately Windows XP seems to be plagued by files that cannot be deleted. These are frequently simple files like videos (AVI), MP3s or other seemingly harmless files. You try to delete the file, Windows waits a few seconds before announcing that access is denied, the file is currently in use and cannot be deleted. However, you know it’s not in use and you just want it deleted.

 

If you have encountered this problem, here is a step-by-step process for trying to purge the files you can’t delete. It starts with the basics for Windows XP and moves on to more involved tricks. The process will work for all recent Windows releases, but Windows XP has been causing the most the problems, so we will focus on it. Please note: we are assuming that the file is not crucial to the operation of Windows - deleting important system files can cause havoc.

 

  1. Is the file in use? It sounds obvious but it happens. If it is being used or open, close the file and the application that opened it. For example, if it is a Word document, close Microsoft Word.
  2. If the file was opened in an application (and subsequently closed), but the program is still running, try quitting the program. Windows will lock a file because the application hasn’t yet released it. This is not always Windows fault and can be the fault of the program.
  3. If the file is an AVI, in particular a DivX AVI, try renaming it and then deleting it. DivX files don’t get on very well with Windows XP and sometimes renaming the file can trick Windows into releasing it.
  4. Reboot your PC and don’t start any programs. Go directly to the file and delete it.
  5. In Windows Explorer, switch to View-Details and then select View-Choose Details. Uncheck everything except the file name. This stops Windows XP trying to read the file - this problem affects many video, audio and graphics files.
  6. Still no luck? OK, here is the best trick of all. Most sites give you cryptic Windows registry and DOS commands to remove a file, but the answer is so much simpler.
  7. Get a copy of Unlocker. It’s free and this simple tool that allows you to “unlock” a file handler. If the process refuses to let go of the file, there’s an option to kill the process as well. There are no messy boot or DOS commands, just a simple 3-step process.
      1. Simply right click the folder or file and select Unlocker

      2. If the folder or file is locked, a window listing of lockers will appear

      3. Simply click Unlock All and you are done!
  8. Click OK to confirm you want to process. The nice thing is that the program doesn’t make you reboot straight away. It’s a good idea to reboot ASAP, but if you are in the middle of something and want to wait, the program will simply run next time you start Windows.
  9. If the file reappears again (check its creation date to ensure it is being recreated) and you can’t make it budge, you may have trouble with spyware or a virus on your system (don’t overlook the possibility it may also be an important system file). In this case you should get a good spyware removal program to scan your system.

Best of all this is a free software that can be obtained from http://ccollomb.free.fr/unlocker/

 

Below is a list of software that does the same thing as Unlocker, but I find unlocker to be the best of the lot, as well as being one of the easiest to use :)

 

Application Close
handle
Kill
process
Unload
DLL
Delete
index.dat
Delete
Rename
Move
Invalid
Names
Without
reboot
With
reboot
Context
Menu
Command
Line / GUI
Free
Unlocker 1.8.5
by Cedrick Collomb
ok ok ok ok ok ok ok ok ok ok ok ok
Process Explorer
by Sysinternals
ok ok no no no no ok no no no ok ok
ForceDel
by Zoltan Csizmadia
ok no no no no no ok no no ok no ok
WhoLockMe
by Dr-Hoiby
no ok no no no no ok no ok no ok ok
FreeFile
by Skrubbeltrang
no ok no no no no ok no no no ok ok
Take Control
by Computers In Motion
no ok no no no no ok no no no ok no
UnLock IT
by EMCO
no ok no no ok no ok no ok no ok ok
Advanced Process Manipulation
by DiamondCS
ok ok ok no no no ok no no no ok ok
DLL Master
by Tony Shaftel
no no ok no no no ok no no no ok no
12Ghosts Wash
by 12ghosts
no no no ok no no ok no no no ok no
czSweep Cookie Boss 1.31
by Frank Kotasek
no no no ok no no ok no no no ok no
DelinvFile
by James A. Lawler
no no no no ok ok ok no no no ok ok
Del FXP files
by JRT Wine Software
no no no no ok ok ok no no no ok no
Pocket KillBox
by Option^Explicit
no no no ok ok no no ok no no ok ok
Locked Files Wizard / Copylock
by Noel Danjou
no no no ok ok no no ok no no ok ok
GiPo@MoveOnBoot
by Gibin Software House
no no no ok ok no no ok ok no ok ok
DelLater
by DiamondCS
no no no ok ok no no ok no no ok ok
Delete Doctor
by Kevin Solway
no no no ok ok no no ok no no ok ok
BusyDelete
by Freezerware
no no no ok ok no no ok no ok no ok
Boot Deleter
by TNT-BootBlock
no no no ok ok no no ok ok no no ok
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Thoughts on Macbook Air

I just think that Steve Jobs and Apple had a specific consumer in mind.  One that needed to have a super thin laptop that they can just stuff in their small brief case along with other papers and not need anything else.  Their main pitch was “Air” right?

But come on, comparing it to the Sony Vaio TZ, it beats in in size, processor (1.06ghz vs 1.6ghz Macbook Air Standard), screen estate (11.1in vs 13.3in Macbook Air), but loses with the 250gb HD that it comes with and an ethernet port.  I know that the place that I live in, I can find an open Wireless network point very easily especially when you go downtown.  But right now, scanning open networks, I see two that have about 3-4 signal strength that are not encrypted.  The Vaio TZ doesn’t even come with an optical drive, but at least it comes with it.  But for $2,399, that’s a premium Macbook Pro right there.

To go along with the Macbook Air, if you need more ports and also another display monitor, you can drive it with Kensington’s new Notebook Dock that they coincidentally released during Macworld.  You can connect a monitor and other peripherals with only one USB plug.  And it even got a CES innovative award.

http://us.kensington.com/html/13875.html

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Facebook Private Photos Code

Update 9/10/08:

Another guide on how to view private myspace / facebook profiles. This time, no codes needed!

http://www.laatedaa.com/2008/09/10/utilizing-social-engineering-to-view-private-facebook-myspace-profiles/

NEW CODE / Twitter Contest (500 Followers)!!!

http://www.laatedaa.com/2008/02/27/facebook-private-photos-code-part-deux/

NOT WORKING BUT FINDING NEW CODES!

To view the private facebook photos, you will need to find out two things.

1. You will need the facebook ID number of the person you want to view.

2. Then, you will need a Facebook ID number of one of the target’s friend.
-You can get the person you want to view, friend’s ID number this way.

If the person you want to view has the “view friends” on their private profile, then get the ID from there.
Next, enter this URL into your browser:

http://www.facebook.com/photo.php?pid=1234567&id=[Person's Friend's ID]&op=1&view=all&subj=[Person's ID]

Replace the brackets with numbers such as…

http://www.facebook.com/photo.php?pid=1234567&id=1234&op=1&view=all&subj=123456

You should then have been allowed in!

To navigate, use the Previous/Next buttons to scroll through the album pages.

It’s always a hit and miss so you will need to try multiple times but using a different [Person's Friend's ID] while letting the [Person's ID (the one you want to view)] the same.

Hope it is in good use.

Edit: Here is what some commentors have to say about how to get it working even better…

jas8989:

To fix the “oops” problem:

1) Click on the “view (persons name)profile” link”

2) Hit back on your browser

3) Carry on browsing the pics

4) Do this whenever the problem arises

someone:

if you’re using firefox, just middle click the Next or Prev to open it in a new tab and you will be able to browse all with no problem.

CaV:

easy way to fix the OOPS problem: turn javascript off. works for firefox at least.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

First day at MacWorld 2008

Steve Jobs’ Keynote presentation led to a few new products being released from Apple. The major “There’s something in the air” came out to be the MacBook Air that Wired was speculating on correctly. It looks really cool as it is less than an inch thin at the “thickest” parts of the notebook. Sporting a 13.3in screen and a huge multi-touch mouse pad, this super thin laptop is still going for $1,799. They also included the SSD (solid state drives, Flash) as a BTO option. 64GB Flash Drive for $999? No thanks, but great for people who want quick data access. The price is high, but hey, for the size you get, you pay that price for.

Also other minor announcements about new products and software updates they had.

The Time Capsule Backup. This is just a wireless NAS drive that allows you to backup data to the Time Capsule wirelessly. Sporting a 500gb HD or a BTO 1TB, this thing will set you back $299 to $499 respectively. But if your a hardcore backeruper, this might be the thing for you.


The new MacBook Air doesn’t include an optical drive in it so what are you going to do when you have to use a CD to put some files on your laptop? Apple has created two ways, the first way, I believe is very painstaking. You first need a wireless network and another computer. Install the Remote Disc software on the computer that HAS a CD drive. Pop the CD in and then transfer the data over. Another way Apple has created is to buy a $99 MacBook Air Superdrive. It’s really a pain I think to carry a device just to put CD’s or DVD’s in but I guess that is the only solution to a thin laptop.

iTunes Movie Rentals. Yes, those speculations were correct. It even comes in a software update that goes with the Apple TV that allows you to rent movies through the Apple TV and stream the content over. The new Apple TV they have introduced includes being able to output to High Definition, the main feature that was lacked in the first generation Apple TV.

The iPod Touch is now able to run Google Maps, Mail, and all the features that the iPhone had that lacked on the iPod Touch. But there is a drawback. At $20 bucks, which is a pretty reasonable price, you can load the software onto the iPod Touch and have it used like an iPhone, except without the phone capabilities.

Apple released iPhone Firmware v1.1.3 that includes Google Maps Triangulation on your location using nearby cell towers. Also they included the customization of the homepage, shortcuts on the homepage, and also the ability to SMS multiple people.

Great Keynote Steve Jobs, I hope to be buying a MacBook Pro soon in a few weeks.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

MWSF: MacWorld San Francisco 2008

Hey there!

I will be attending MacWorld 2008 in San Francisco all week so expect updates and pictures and some cool things I saw there.  I hope to get lots of swag too (and hopefully a new MacBook Pro).

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Meanest Prank Gizmodo can do at CES

When you mix in Gizmodo, TV-B-Gone Zappers, and CES with tons of TV’s, there’s always things that can go wrong.

Watch the video.

http://gizmodo.com/343348/confessions-the-meanest-thing-gizmodo-did-at-ces

Get the Zapper here: http://store.makezine.com/ProductDetails.asp?ProductCode=MKTVBGOKIT

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Most Expensive Mac Ever, the new Mac Pro 8-Core Mac

Most expensive Mac Pro Built to Order ever.  At $27,290 and 8-Cores, you may one day think that sky is really the limit.

$27,000 and counting...

The power of the new 8-core Mac Built to Order. And the price.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

How To: Upgrade your Mac Mini’s RAM

After owning a Mac Mini with 1 GB of RAM and upgrading to Leopard, I thought I needed an upgrade.

This tutorial will teach you how to upgrade your Memory (aka, RAM) in your Intel Mac Mini.
Note: If some of the images do not show up, try refreshing your browser.

Update:
I found out that Upgrading your RAM in your Mac Mini will not Void your Warranty unless you break something yourself.

Items need for upgrade:
*A putty knife (or two, if you feel you need it)
*Medium sized philips screw driver
*And a small flat head screw driver

This upgrade tutorial is for the Intel Core Solo, Core Duo and Core 2 Duo Mac Mini.
The Intel Mac Mini uses PC2-5300 200-Pin DDR2 SODIMM memory running at 667Mhz.
You can buy this type of memory on Newegg.com in the Memory section and other various sites.

In this case I am upgrading a Core 2 Duo Mac Mini 1.83Ghz which only has 1GB of RAM in it.
I will be upgrading it to 2GB of RAM from Corsair.


____________
First, lay your Mac Mini upside down.
Get your putty knife and carefully squeeze it in between the aluminum and plastic around the outer rim on the bottom of the Mini. Then bend the putty knife outward (away from the mini) until the Mini pops out a little, do this around all three sides until it looks like this:

____________
Carefully take the Mini out:

____________
Look! There’s the inside of the Mini! All carefully crammed together…
So take out the screws in each corner using your Medium sized philips screw driver:

____________
Here’s screw #2:

____________
Screw #3:

____________
Screw #4 is hidden under the Airport Antenna. To take that off, squeeze the two plastic pieces under it using your thumb and index finger:

____________
It should pop off, revealing the screw you can now take out:

____________
Next, in the front of the Mini, under the Optical drive and to the right of the Battery, there’s a little black wire you need to unplug.
Do so by prying it up with your Small flat head screw driver:

____________
It should be out like this:

Now, being very careful, slowly pull the top half of the mini Up then over and lean it on the Back Ports:

__________
Now, you have two options:
1. You can finish the upgrade without doing the next two steps or…
2. Continue by unhooking the orange ribbon cable that connects the Optical drive and Hard drive to the Motherboard:

__________
This can be done by taking out the brown plastic piece which is wedged between the orange ribbon and the white slot.
You can use your finger nails or the Small flat head screw driver to do this.

__________
Look! There’s RAM! It’s really small…
You can read what kind of memory it is on the label:

__________
Now of course, let’s take them out!
Using to fingers or your thumbs push down and out on the two silver metal brackets which hold the RAM in. This will make the first memory stick pop up, now carefully pull it “out” not up. Do this to both sticks.

__________
Next, put in your new Memory, making sure they are secured in each RAM slot:

__________
Now, reassemble your Mac Mini, simply follow the directions in reverse order.

Once it’s all packed together again turn it on and check it out:

If you have any questions please post them under the comments! I’ll be glad to help
Hope this helped you upgrade!
Thanks!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

« Previous PageNext Page »

Win Free Prizes
Page 2 of 3«123»