If you want to play your AVI videos in your iPhone, iPod Touch or iPad, you must convert them to MP4 or H.264 format.
The following instruction is to let you convert your AVI video files to MP4 files.
1. You must have MPlayer and Mencoder. For more information about MPlayer and Mencoder, please refer Wikipedia at:
In Ubuntu, you can use install them as following command:
sudo apt-get install mplayer mencoder
2. If your AVI file is baby.avi and you want to create a MP4 called baby.mp4, you can type following command:
mencoder baby.avi -o baby.mp4 -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg
3. You can test the new MP4 file you just created using the MPlayer as below:
分类 Command Line 下的文章
When you try:
You will get the following error:
caution: filename not matched
When you want to unzip file using wild card, you have two options as follows.
Option # 1 : unzip multiple files using single quote (short version)
Type the command as follows:
Anyone who has never made a mistake has never tried anything new. --Albert Einstein
Here are a few mistakes that I made while working at UNIX prompt. Some mistakes caused me a good amount of downtime. Most of these mistakes are from my early days as a UNIX admin.
The file /etc/deluser.conf was configured to remove the home directory (it was done by previous sys admin and it was my first day at work) and mail spool of the user to be removed. I just wanted to remove the user account and I end up deleting everything (note -r was activated via deluser.conf):
Rebooted Solaris Box
On Linux killall command kill processes by name (killall httpd). On Solaris it kill all active processes. As root I killed all process, this was our main Oracle db box:
I wanted to append a new zone to /var/named/chroot/etc/named.conf file., but end up running:
./mkzone example.com > /var/named/chroot/etc/named.conf
Destroyed Working Backups with Tar and Rsync (personal backups)
I had only one backup copy of my QT project and I just wanted to get a directory called functions. I end up deleting entire backup (note -c switch instead of -x):
tar -zcvf project.tar.gz functions
I had no backup. Similarly I end up running rsync command and deleted all new files by overwriting files from backup set (now I
FTP is short for File Transfer Protocol, this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP.
From the MS-DOS prompt or shell type in FTP, once typed in you will have access to the FTP command line. In this command line type:
Where address is the name of the server and the domain is the domain such as .COM, .NET... In addition, the IP address can be typed in, such as 255.255.255.0.
Once connected you will be asked for a username and password; if done successfully, you will have access to transfer files between computers.
Unix FTP is used much like Windows; from a command prompt or shell, type in FTP, from FTP you should be able to log into a server, providing you have the proper access.
Depending upon the version of FTP and the operating system being used, each of the below commands may or may not work. Generally typing -help or a ? will list the commands available to you.
Make sure the gs (Ghostscript) is installed, and type following command:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished a.pdf b.pdf