Bulk conversion of mp3 files into flac files in Linux
Source: Internet
Author: User
Some times before converting mp3 files to flac files in batches in Linux, I forwarded a post about audio conversion. today, I am excited and want to convert all the mp3 files on the computer into flac files, follow the steps below: 1. straighten out the idea: it seems that mp3 cannot be directly converted to flac, so I... some times before converting mp3 files to flac files in batches in Linux, I forwarded a post about audio conversion. today, I am excited and want to convert all the mp3 files on the computer into flac files, the steps are as follows: 1. straighten out the idea: it seems that mp3 cannot be directly converted to flac, so I chose mp3 --> wav --> flac. 2. install the conversion software: mp3 --> wav requires lame software; # sudo apt-get install lamewav in ubuntu --> flac or shntool software is required for flac, # In ubuntu, sudo apt-get install flac shntool 3 can be used for batch conversion. Ll script is easier to implement :#! /Bin/sh for file in *. mp3; doif [-f "$ file"]; thenlame -- decode $ file $ {file/.mp32.16.wav; newfile =$ {file/.mp32.16.wav; shnconv-o flac $ newfile; # or flac-8 $ newfile; rm $ file $ newfile; else echo "no input file"; continue; fi done 4. Summary: I originally wanted to implement it in the command line, but it will never work.
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.