Call the Lame command line to batch compress MP3

Source: Internet
Author: User

Although there are many MP3 compression GUI tools in Windows XP, I still like to use Lame + Batch File compression. The procedure is as follows:

  1. Use totalloud to sort the audio frequency file names under the directory in sequence, copy the file names to the clipboard, and paste them to the links.txt text file;
  2. Use vimto open the links.txt file and run the command: g @ ^ @ exec "s @ ^ @". strpart (line (". "). ",", 0, 4) automatically add a row number at the beginning of each line;
  3. Rename the file using the For command for batch processing. The command is: For/F "delims =, tokens = 1, 2" % I in (Links.txt) do rename % j polici.pdf
  4. Use the batch processing command to compress the file (16 KBit, single-channel). The command is: for/L % I in (100,) do lame.exe-B 16-m too i1_1_ I _small1 _
  5. Finally, use the For command line for batch processing to rename the file. The command is: For/F "delims =, tokens = 1, 2" % I in (Links.txt) do rename polici_small1_% j

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.