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.
Originally posted by Fascistchicken its not gui vs. cli, its just you could do it better yourself...
i know that a lot of gui programs support drag and drop and also execute scripts on command, like nautilus, so you could write a script, then use it with your gui program of choice, rather than use a lot of separate programs that are redundant, and that inhibit functionality. so spend a little time now, and save a lot more later...
i don't think it would take more than a few minutes to write a script and thats shorter than the time it would take to find download and install a separate program.
besides, the scripts probably already been written...
so look for that
yes, you could. i've done this. i have a script that does all of this where you can multiselect a bunch of files in konq and open the files in the script. but newbs don't want to do this. it's still much easier to download a proggie that will do all this stuff for you.
K3B gets my vote it is easy supports drag and drop and converts mp3 to wave for cd burning it is not too far off from the roxio stuff like easy cd creator for windblows.
You will have to enable scsi emulation for your cdrw although.
This is a script which can be used to create an audio cd from a bunch of mp3/oggs. It assumes your cd-recorder is set up properly. If not please refer to the many HOWTO's on the subject.
echo "---Audio-cd making script---"
echo "I hope you have no more than 74/80 min of tracks in this directory!"
echo ""
echo "########Recording the mp3's in this directory..########"
for I in *.mp3
do
mpg123 --cdr - "$I" | cdrecord speed=4 dev=0,0,0 -audio -pad -nofix -
done
echo "#########Recording the oggs...###########"
for I in *.ogg
do
ogg123 -d au -f - "$I" | cdrecord speed=4 dev=0,0,0 -audio -pad -nofix -
done
cdrecord dev=0,0,0 -fix
You might have to change the device parameter for cdrecord if your cd-writer is in a different location. Also, you'll need mpg123 and ogg123 installed.
and how do you check if you have more than 74/80 minutes of music? mine was pretty much like that, but it didn't check to see if what i chose was going to go over the limit or not. i don't use that script anymore.
yes. but then you've brought in another seperate program into the equation.
most of the cd burning proggies i've seen have their own file managers and you really don't need to drag and drop from the desktop as you can drag and drop files within the programs file managers to the burn list. and then a few will decode mp3s in that list into a form that can be burned into an audio cd. and they'll also have the size of the burn project listed so you can remove or add files. all in one program. so like what fascistchicken was talking about, it's all contained in one program. well not really since these programs call other libraries (programs maybe), but to the user it's looks like one program is doing this. even if you wanted to write a shell script to do this, it's not as trivial as what was made out here and i still don't see any time saving doing one way or the other except for the time spent trying to write a monolithic script that will call everything within itself.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
i used xcdroast which is a frontend to cdparanoia although i havn't had my cd burner going since the processor on that machine kinda died (no big deal since the machine was in the scrap heap anyways)
i assume by monolithic you mean unusually large or complicated
really i didnt have the time to seach the answer for the question of the playlength time but i doubt its that hard and if its never been written ,well its there to be written, so somebody here do it and contribute to the open source community, since thats what the great ga-noo is all about
i saw some program on a google search called mp3info that gives the time
not here on my computer though
its just turtles all the way down anyways
Last edited by Fascistchicken; 10-20-2003 at 01:05 AM.
I don't knwo MP3 or OGG format standards, but I am sure there is a simple, or perhaps not so simple way to see the length of a file. Perhaps checking the bitrate against the actyual file size... that shouldn't be so hard... the bitrate is usually stored in the description of the file (along with the title and many other things).
On the other hand, instead of recording the tracks directly, you can create an ISO image and then check the size of the Image and burn it.
Or even simpler:
for I in *.mp3
do
total= total + Ždu $IŽ (here you need to strip the filename part. I'm not on linux but I think that a simple grep should do it)
if total < 700000000
mpg123 --cdr - "$I" | cdrecord speed=4 dev=0,0,0 -audio -pad -nofix -
fi
done
It's my first script in over six months, so I'm not sure that would work. but the idea is still the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.