Howdy! I'd like to rip my cd-s to flac files using some command line app, like cdda2wav or cdparanoia. Using pipe to flac utility would be nice and the way I'd take. What program acts in that matter? Since cdda2wav is in the base, I suppose people use it regurarly. Something like: program {options} - | flac - flac_file.flac One more thing bothers me. I cannot see songs on the cd in the way of "/dev/acd0t1". I tried to stress it using cdcontrol, but no way. The kernel is customized, no sound in it, and a lot of others has gone. The box is speakers-free, so cannot check if it plays in deed. Best regards Zoran
On Sat, Mar 07, 2009 at 08:12:28AM +0100, Zoran Kolic wrote:> Howdy! > I'd like to rip my cd-s to flac files using some > command line app, like cdda2wav or cdparanoia. > Using pipe to flac utility would be nice and the > way I'd take. What program acts in that matter?It won't work if you want the songs to have the right metadata; You'd have to supply that to the pipe in some way... For ripping I use cdparanoia: 'cdparanoia -B 1' rips all tracks. The following perl scripts reads a text file containing the metadata (artist, album name, track data) and calls flac: ----- make-flac ----- #!/usr/bin/perl # # Compiles a list of wav files into flac files. # # Author: R.F. Smith <rsmith@xs4all.nl> # Time-stamp: <2008-07-30 23:53:00 rsmith> # # I, the copyright holder of this work, hereby release it into # the public domain. This applies worldwide. # # In case this is not legally possible, I grant any entity the right to use # this work for any purpose, without any conditions, unless such conditions # are required by law. # Check for programs that this script needs. chomp($flac = `which flac 2>/dev/null`); -x $flac || die "Cannot find flac: $!\n"; #chomp($norm = `which normalize 2>/dev/null`); #-x $norm || die "Cannot find normalize: $!\n"; # Get the name of the file containing the titles. if ($ARGV[0] ne "") { $fname = $ARGV[0]; } else { $fname = "titles"; } # open the list of song titles open (TITELS, $fname) || die "cannot open $fname: $!\n"; # The titles file format is as follows: # ------------------------------------ # album title # artist # 01 title of 1st song # .. # 14 title of 14th song # .. # get the album title and performer name chomp($album = <TITELS>); $album ne "" || die "cannot read album name"; chomp($artist = <TITELS>); $artist ne "" || die "cannot read artist name"; # Normalize the wav files. #printf("Normalizing .wav files...\n"); #`$norm -b track*.cdda.wav`; # go over all the songs while(<TITELS>) { chomp; ($num, $title) = split (' ', $_, 2); printf ("Encoding \"%s\" as %s\n", $title, "track".$num.".flac"); # invoke the flac encoder. do { $rc = system ($flac, "-8", "-TARTIST=".$artist, "-TALBUM=".$album, "-TTITLE=".$title, "-TTRACKNUMBER=".$num, "-o", "track".$num.".flac", "track".$num.".cdda.wav"); if ($rc != 0) {print "\nError,", $rc, "starting again";} } until $rc == 0; } ----- make-flac ----- Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090307/0794422a/attachment.pgp
> audio/abcdeThank you for reply. As I see in Makefile, abcde uses cdparanoia as an engine for the job. I think I should stay with simple app. My thinkering was: what is the background app people on this list use? I consider either cdparanoia or cdda2wav. What makes me nervous is I do not see device in /dev directory. I should point to tracks on the cd, like acd0t1 etc. Best regards Zoran
K, this command as root makes the flac file: cdparanoia 1 - | flac - -o song.flac -rw-r--r-- 1 root wheel 23560791 Mar 7 15:53 song.flac At this moment I cannot check if it plays correctly. METADATA block #0 type: 0 (STREAMINFO) is last: false length: 34 minimum blocksize: 4096 samples maximum blocksize: 4096 samples minimum framesize: 14 bytes maximum framesize: 12670 bytes sample_rate: 44100 Hz channels: 2 bits-per-sample: 16 total samples: 9603804 etc. Best regards Zoran
On Sat, Mar 7, 2009 at 2:12 AM, Zoran Kolic <zkolic@sbb.co.yu> wrote:> Howdy! > I'd like to rip my cd-s to flac files using some > command line app, like cdda2wav or cdparanoia. > Using pipe to flac utility would be nice and the > way I'd take. What program acts in that matter? > Since cdda2wav is in the base, I suppose people > use it regurarly. Something like: > ?program {options} - | flac - flac_file.flac > One more thing bothers me. I cannot see songs on > the cd in the way of "/dev/acd0t1". I tried to > stress it using cdcontrol, but no way. The kernel > is customized, no sound in it, and a lot of others > has gone. The box is speakers-free, so cannot > check if it plays in deed.Take a look at ports/audio/abcde, great command-line util with configurable options for ripper and encoder. -Proto
On Sat, Mar 07, 2009 at 08:12:28AM +0100, Zoran Kolic wrote:> Howdy! > I'd like to rip my cd-s to flac files using some > command line app, like cdda2wav or cdparanoia. > Using pipe to flac utility would be nice and the > way I'd take. What program acts in that matter?What does this have to do with FreeBSD-stable? This question is better asked on freebsd-questions.> Since cdda2wav is in the base, I suppose people > use it regurarly. Something like:What do you mean by "base"? It is a port and not in the base system. -- Rick C. Petty