Handling audio and video files freely

From time to time, we need manipulate audio and video files. When we rip audio CD to audio files, we can rip the audio tracks to wma (Windows Media Player format) or mp3. Since Apple gadgets do not accept wma files, we have to convert all wma files to mp3 files. Here provides a incomplete lists to handle video and audio files based on experiences and information on the internet.

Extract audio from video clips

There are a number of tools can fulfill this purpose. One of the tools I found is easy to use and free from any charge is Free Video to MP3 Converter.

Download.com link:http://download.cnet.com/Free-Video-to-MP3-Converter/3000-2194_4-10638108.html
Or download from the site: FreeVideoToMP3Converter v5.0.8 build 412 (26mb)

It can extract audio from video files to MP3 and WAV Lossless Audio. You can save audio in high, standard and economy quality. Input video file formats: *.avi, *.ivf, *.div, *.divx, *.ogv, *.mpg, *.mpeg, *.mpe, *.mp4, *.m4v, *.wmv, *.asf, *.mov, *.qt, *.ts, *.mts, *.m2t, *.m2ts, *.mod, *.tod, *.3gp2, *.3gpp, *.3gp, *.3g2, *.dvr-ms, *.vro, *.flv, *f4v, *.amv, *.rm, *.rmm, *.rv, *.rmvb, *.mkv. Free Video to MP3 Converter automatically fills the title tag and the artwork, taking a snapshot from the middle of video, which can be seen in iTunes, Winamp or just a Windows Explorer folder.

Convert audio formats

 

Edit and cut audio files

From time to time, you may want to cut a piece of MP3 music file and save it to a new file. There is a old fashion application in Windows environment. I use it to achieve what I want. The application is called MP3Cutter4. You can download it here: mp3cutter40534.

 

Share

Map a FTP folder to a local directory on Ubuntu OS

This tutorial will explain how to mount a ftp folder to a local directory in Ubuntu. The software to use is Curlftpfs, which is a filesystem for accessing FTP hosts based on FUSE and libcurl.

1. Install CurlFtpFS in Ubuntu

sudo apt-get install curlftpfs

2. Use linux command to map the ftp folder to local mount point.

curlftpls ftp://username:password@ftp.server.com /mnt/ftp

Assume that you created the ftp directory in /mnt. If not please do that.

3. Create a soft link at your home directory

ln -s /mnt/ftp ftp

Now you can access your ftp server from you home directory quick easy.

Share

Postfix + Gmail SMTP server relay under Ubuntu OS

In order to preserve the useful information, I took information from the internet and posted here. The method was verified and works well for my situation.

I realize that there are too many tutorials on getting your Relaying Postfix SMTP via smtp.gmail.com to work. Most of them are long and complicated, but I found a tutorial from this particular website which provides the shortest, simplest, and the clearest tutorial on how to get it work in less than 5 minutes. I would like to post it here for my future use again, so that I don’t need to spend hours finding the right tutorial to get it done :)

Install the required packages
sudo aptitude install postfix libsasl2 ca-certificate libsasl2-modules

Configure Postfix
This tutorial will not outline how to configure your postfix server, but we’ll jump directly to the relayhost section. You’ll want to add the following lines to your /etc/postfix/main.cf file:

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

The above lines are telling Postfix that you want to relay mail through gmail on a specific port, telling it to authenticate, and where to find the username and password. The last three lines specify the authentication types supported, where the certificate authority file is and that it should use tls.

Define Username and Password
Next we’ll need to populate the sasl_passwd file. Create the file /etc/postfix/sasl_passwd with the following contents:

[smtp.gmail.com]:587 user.name@gmail.com:password

This file should have restrictive permissions and then needs to be translated into a .db that Postfix will read.

sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd

At this point you can restart Postfix and it should work, however it will complain about not being able to authenticate the certificate. To take care of this issue we’ll use the ca-certificate package we installed and tell it where it can validate the certificate.

cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem

Go ahead and reload postfix (sudo /etc/init.d/postfix reload) and you should be set.

Taken from http://blog.jonloh.net/11/04/2010/postfix-gmail-smtp-relay-ubuntu.

Additional materials:
1) Warning message – No address associated with hostname
If the mail relayhost is wrong, you will get a lot of warning message in /var/log/mail.warn with the “No address associated with hostname”. That indicates you have to put a valid smtp relay mail server in the config file. Otherwise all your mail will be stuck in somewhere without your notice.

2) Warning message – no route to host in the mail.log
I checked mail.log and found “no route to host” after I put gmail smtp as the mail relay server. The reason I got this was I did not get the TLS authentication correctly. After I corrected it, everything goes smoothly without error.

3) Error message – 530 5.7.0 Must issue a STARTTLS command first
This message actually came from the gmail smtp server. It tells you something is not right. Actually it is the same problem as the point 2). Gmail smtp server needs TLS authentication.

Share

Configure ActionTec Q1000 to function just as a modem

Question:

Qwest (or CenturyLink) provided VDSLs modem – an Actiontec Q1000 combo modem/router.
I have a router setup neatly and do not want to use Q1000′s router function like the Q1000 just as a modem.
How do I physically hook the hardware up?

Solution:

1. Go to Advanced Setup in the GUI
2. Go to “WAN IP Address” under the “IP Addressing
3. Choose the “RFC 1483 Transparent Bridging” option

After performing those steps the Actiontec will still hand out an IP address to whatever is behind it, but it will not authenticate. However, as soon as you configure a device behind the Actiontec to do the authentication then the Actiontec will stop handing out dynamic IPs and will function just as a modem.

The content is from the following post.

http://homecommunity.cisco.com/t5/Wired-Routers/Setup-home-network-Linksys-router-w-Actiontec-Q1000-modem-router/td-p/294513

I tested it and it works.

Share