Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I everyone,
here's my problem:
I want to enconde my mp3 files which have various bitrate (196,256,ecc) to 128.
I have put my mp3 in a new directory, and try with lame to encode with one command my mp3.
But lame accept only one files in input at time, if i try lame -b 128 * - (which mean : select all files and downsample to 128 bitrate and leave self name).
It does'nt works.
sorry for my enghlish
have a good time.
Haven't worked with lame myself, but if it only takes one infile at the time you might do something like this:
for THIS in *mp3
do
lame <whatever options> ${THIS}
done
$THIS holds the one filename that is processed and gives the file, one at the time, to lame untill all files are processed.
The above can be done from the command line. Just press enter/return after each line, after you press enter after entering done the process will start.
Like I stated before: I'm not a lame user, so you need to check that section of the above code.
Originally posted by druuna Haven't worked with lame myself, but if it only takes one infile at the time you might do something like this:
for THIS in *mp3
do
lame <whatever options> ${THIS}
done
$THIS holds the one filename that is processed and gives the file, one at the time, to lame untill all files are processed.
The above can be done from the command line. Just press enter/return after each line, after you press enter after entering done the process will start.
Like I stated before: I'm not a lame user, so you need to check that section of the above code.
Hope this helps.
Thanks a lot.
It work very fine
i have userd this code
Code:
for XX in *.mp3
do
lame -b 128 $XX newdir/$XX
done
but a more little problem with spaces.
If in a directory there are only files without spaces it works very very fine.
If a file is called for example "Elvis Presley - Lame RoX.mp3" lame don't recognize correctly variable $XX infact for lame input file is "$XX=RoX.mp3" that doesn't exist and it fail!
how i can resolve this problem???
thanks a lot!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.