tag:blogger.com,1999:blog-6006114617625504970.post525688537969316534..comments2024-03-29T00:58:29.857-04:00Comments on Linux Blog: Script to convert .wav to .mp3DevOpshttp://www.blogger.com/profile/02331067901785181627noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-6006114617625504970.post-70061952263812232742013-05-27T20:26:21.792-04:002013-05-27T20:26:21.792-04:00very helpful. thanks.very helpful. thanks.Anonymoushttps://www.blogger.com/profile/10989306442185764362noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-85539060514494842842013-02-07T04:57:57.086-05:002013-02-07T04:57:57.086-05:00Thanks for repositories, thanks for shell scripts,...Thanks for repositories, thanks for shell scripts, and thanks for awesome people like you who post exactly what we were looking for--no need to install bloatware.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-26295166269312371972013-01-23T23:26:03.425-05:002013-01-23T23:26:03.425-05:00Worked for me. Simple & effective. Thanks for ...Worked for me. Simple & effective. Thanks for the post. Azare Puasahttp://www.azarepuasa.comnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-63472146826942360292013-01-19T07:02:46.317-05:002013-01-19T07:02:46.317-05:00When I execute this script (with some slight modif...When I execute this script (with some slight modifications) as written above...<br /><br />for i in *wav; do<br /> if [ -f "$i" ]; then<br /> file='basename "$i" .wav'<br /> lame -h -b 320 "$i" "$Output/$file.mp3"<br /> fi<br />done<br /><br />the output writes all files in the directory as:<br />basename"$i".wav.mp3<br /><br />Because each file is written as basename"$i".wav.mp3, the result is that only 1 file is written to the output directory (the preceding file is overwritten every time).<br /><br />I can amend the script slightly to remove the "basename" command:<br /><br />for i in *wav; do<br /> if [ -f "$i" ]; then<br /> file="$i"<br /> lame -h -b 320 "$i" "$Output/$file.mp3"<br /> fi<br />done<br /><br />to get a slightly better result:<br /><br />FileName.wav.mp3<br /><br />But the problem is that now I'm stuck with 2 extensions. Surely I'm not the only one who has encountered this problem! If anyone has run into this problem and found their way around it, would you please tell me how I can edit this script to remove .wav and replace with .mp3 upon conversion? Also, if I've done something wrong, please notify me.<br /><br />Thanks in advance for your help.InsaneOcrabshttps://www.blogger.com/profile/01381026470963567987noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-60622815358882957832013-01-16T06:49:21.352-05:002013-01-16T06:49:21.352-05:00Thanks for the post..
Here is online free mp3 to w...Thanks for the post..<br />Here is online free mp3 to wav converter<br /><a href="http://www.mp3cutter.in/convert/mp3-to-wav/" title="convert mp3 to wav" rel="nofollow">convert mp3 to wav</a>Authorhttps://www.blogger.com/profile/16212717902805334101noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-55444288799087862202012-12-02T18:44:04.726-05:002012-12-02T18:44:04.726-05:00Cheers !Cheers !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-9631609485524713592012-11-14T12:38:05.351-05:002012-11-14T12:38:05.351-05:00exactly what I was looking for, cheers!exactly what I was looking for, cheers!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-77040658590665402682012-10-19T09:58:41.247-04:002012-10-19T09:58:41.247-04:00Cheers dude, works like a charm!Cheers dude, works like a charm!Veljohttps://www.blogger.com/profile/03829902052376379678noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-41337403029732944432012-08-04T12:01:24.297-04:002012-08-04T12:01:24.297-04:00Thanks for the post
convert mp3 to wavThanks for the post<br /><br /><a href="http://www.mp3cutter.in/convert/mp3-to-wav/" title="convert mp3 to wav" rel="nofollow">convert mp3 to wav</a>Authorhttps://www.blogger.com/profile/16212717902805334101noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-60029494612072213222012-07-24T16:51:39.570-04:002012-07-24T16:51:39.570-04:00on UBUNTU use RIPPER X to convert all audio files ...on UBUNTU use RIPPER X to convert all audio files ^-^<br />to easyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-66197316941370832272012-07-08T19:06:03.127-04:002012-07-08T19:06:03.127-04:00Should the line be
if [ -f "$i" ]; then
...Should the line be<br />if [ -f "$i" ]; then<br /><br />as -e tests if the file exists and-f tests if the file exists and is also a real file rather than a device, directory, block etc., ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-72746646724382327352012-06-08T14:16:29.107-04:002012-06-08T14:16:29.107-04:00It works great, i had to install lame (small) thou...It works great, i had to install lame (small) though. Thanxmichkhoohttps://www.blogger.com/profile/13053375505200043341noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-78098661856970608562012-03-22T07:53:24.725-04:002012-03-22T07:53:24.725-04:00Excellent. Excellent. Now that is just excellent. ...Excellent. Excellent. Now that is just excellent. You know, seeing the script got me an idea - I am going to expand the script to rip all my audio CDs the moment I insert them, cos I do that a lot - and add it as an autoplay option.<br /><br />Not entirely sure yet how that is done, the autoplay part, but it's worth finding out. Again, thanks for an amazingly neat script.Anonymoushttps://www.blogger.com/profile/00984552591854013496noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-54890791235779016292012-03-13T06:41:15.919-04:002012-03-13T06:41:15.919-04:00Online tool for conversion in AS3
convert mp3 to ...Online tool for conversion in AS3<br /><br /><a href="http://www.mp3cutter.in/convert/mp3-to-wav/" title="convert mp3 to wav" rel="nofollow">convert mp3 to wav</a>Authorhttps://www.blogger.com/profile/16212717902805334101noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-4437659075805050082012-01-22T04:55:10.295-05:002012-01-22T04:55:10.295-05:00Thanks a lot mate, always nice to find precisely w...Thanks a lot mate, always nice to find precisely what you are looking for in under a minute.RobertTuenoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-25151442954815421372011-12-30T16:18:12.356-05:002011-12-30T16:18:12.356-05:00chmod 777 is a evil, dont use!
use chmod +x and re...chmod 777 is a evil, dont use!<br />use chmod +x and read the manual (man chmod)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-72277801783108845572011-11-19T02:00:00.366-05:002011-11-19T02:00:00.366-05:00Works like a charm... Cheers and keep up the good ...Works like a charm... Cheers and keep up the good scripting :)skrymerhttps://www.blogger.com/profile/01810146717536307944noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-15207601338966324812011-05-15T11:05:09.345-04:002011-05-15T11:05:09.345-04:00Would change it to allow for WAV as well as wav.Would change it to allow for WAV as well as wav.Oneadventhttps://www.blogger.com/profile/07856900318675418001noreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-45152101674683769752011-04-25T15:17:07.885-04:002011-04-25T15:17:07.885-04:00Thank you! This script really does the job. Works ...Thank you! This script really does the job. Works perfectly on my fedora 14-system. <br />Cheers, ToveAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-8494421467469293322011-04-12T01:44:32.150-04:002011-04-12T01:44:32.150-04:00thanks for the script
rmjthanks for the script<br />rmjrmjhttp://noemet.comnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-44704869316965454852011-04-09T22:19:20.927-04:002011-04-09T22:19:20.927-04:00Awesome ... from googling to implementation, 2 min...Awesome ... from googling to implementation, 2 minutes.<br /><br />THANKSAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-74580695330297402522011-02-02T05:40:20.562-05:002011-02-02T05:40:20.562-05:00Very nice!Very nice!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-15334533553948093512009-04-05T18:40:00.000-04:002009-04-05T18:40:00.000-04:00I found this to be very helpful. All the search r...I found this to be very helpful. All the search results I got for converting WAV files to MP3 in Linux were way too complicated -- I knew there'd be something similar. Thanks a bunch!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6006114617625504970.post-6207400885295077532008-09-19T02:26:00.000-04:002008-09-19T02:26:00.000-04:00As is so often the case, here I am looking for a s...As is so often the case, here I am looking for a solution and I find it. The Linux world is the 'only' world to inhabit :)<BR/><BR/>Thank you and thank you to those who have influenced you.<BR/><BR/>Great work and many thanks.<BR/><BR/>Regards,<BR/><BR/>PatrickAnonymoushttps://www.blogger.com/profile/07065432624306406556noreply@blogger.com