Compressed audio files under Linux

Source: Internet
Author: User

Installation Tools

sudo apt-get install lame

See Help lame--help for specific usage

By changing the number of frames in an audio file, you can make the file smaller but the sound quality decreases

Now more than the MP3 file is 128kbps such as at this time it 4M

And then it's compressed into 64kbps, which is basically 2 m.

Lame-b Old.mp3 New.mp3

If the audio is more, you can write a loop, like I'm here.

Dir= "/home/caojie/desktop" filelist= ' ls $dir/123 ' for file in $filelistdo  mp3name= "$dir/123/" $file ' lame-b 64 $ Mp3name $dir/123/yasuo/$file ' done

It takes about 5 seconds to process a song.

The problem with batch processing is that Linux does not correctly handle the whitespace in the file name.

The following sentence can be bulk changed a directory under the file name in the space for the specified symbol

Rename ' s//_/g ' * Here to replace spaces with underscores

Compressed audio files under Linux

Related Article

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.