SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

PerlOggEnc v0.4

  • Legal disclaimer
  • Description and features
  • Requirements
  • Installation
  • How to use
  • Customization
  • Bugfixes and support
  • Credits

\ Legal Disclaimer


PerlOggEnc is copyright (C) 2003-2004 Gilberto Ficara. PerlOggEnc is Free Software, distributed under the terms of the GNU GPL license. PerlOggEnc is provided without any warranty.

\ Description and features


PerlOggEnc is a simple frontend to the cdparanoia cd-ripping software and the oggenc (part of the vorbis-tools distribution) Ogg encoder. The task of this program is simple: rip all the cd and make .ogg songs. Just execute the script, answer to a few little questions (album title, author, song title) and a few minutes later (depending on the speed of your cdrom drive and your cpu power) you'll find the Ogg files under the AUTHOR/ALBUM/ directory (created by the script, if needed).

Some features of PerlOggEnc:

  • Simple to use
  • Simple to customize (see Customization section)
  • Powerful 2-process working path (one process rips and one encodes)
  • Minimized HD space requirements (wave files are deleted after encoding)
  • Background mode (you supply album and author on the command line, the

    tracks are named Track01 ... TrackNN)

\ Requirements


Just make sure you have cdparanoia and oggenc, if needed change the PATH for the programs at the top of the script.

\ Installation


If you want, you can copy the script in /usr/local/bin/ or wherever you want (make sure the path is present in your PATH environment variable).

\ How to use


That's so simple...! Just start the script... he will ask you some questions (album title, author, title for each track) and he'll do all the rest. If you want, you can run it in background mode, also:

./PerlOggEnc.pl --background "Artist name" "Album title"

Or if you want to pass a pre-existent text file to PerlOggEnc just edit the file to contain something similar to:

Artist name
Album title
First song's title
Second song's title
Third song's title
etc etc

And call PerlOggEnc as:

./PerlOggEnc.pl < my_text_file.txt

It will work. I use it and it works. :>

\ Customization


PerlOggEnc is simple: just look at the code. If you want to use alternative encoder, just edit the $oggenc variable and BuildOggOpts() subfunction to point to what you like.
For alternative cd-ripping software it's a little more difficult, because the get_num_tracks() subfunction uses cdparanoia to calculate the number of tracks on the cd: with some modifications I think it will work pretty well with other cd-rippers, too.
If you want to change the ogg filename format, feel free to edit the code under the ### BUILD OGG FILENAME ### comment and the BuildOggOpts() function.

\ Bugfixes and support


If you find a bug, do a bugfix, need help, want to thank me, want to insult me, want to hire me to save the world, send me an email: g.ficara@oltrelinux.com

\ Credits


Thanks to Larry Wall and the Perl community, they are the best. Thanks to Gabriele Marrone (CyberBrown) who beta-tested a preliminary version of PerlOggEnc.
Thanks to Jussi Ekholm who made some interesting comments about the use of system() function and suggested some patches. Thanks to Alessandro Molina (Javanx) who coded most 0.4-related patches


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.