Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2000 19:20:34 -0700 (PDT)
From:      idiotsavant@mail.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/18150: New port: ripit-cdda2wav
Message-ID:  <200004220220.TAA68519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         18150
>Category:       ports
>Synopsis:       New port: ripit-cdda2wav
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 21 19:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Matt Storch
>Release:        4.0-RELEASE i386
>Organization:
>Environment:
FreeBSD  4.0-RELEASE FreeBSD 4.0-RELEASE #0: Fri Apr 14 16:59:10 EDT 2000     root@:/usr/src/sys/compile/custom-kernel  i386

>Description:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ripit-cdda2wav
#	ripit-cdda2wav/files
#	ripit-cdda2wav/files/md5
#	ripit-cdda2wav/pkg
#	ripit-cdda2wav/pkg/COMMENT
#	ripit-cdda2wav/pkg/DESCR
#	ripit-cdda2wav/pkg/PLIST
#	ripit-cdda2wav/patches
#	ripit-cdda2wav/patches/patch-aa
#	ripit-cdda2wav/Makefile
#
echo c - ripit-cdda2wav
mkdir -p ripit-cdda2wav > /dev/null 2>&1
echo c - ripit-cdda2wav/files
mkdir -p ripit-cdda2wav/files > /dev/null 2>&1
echo x - ripit-cdda2wav/files/md5
sed 's/^X//' >ripit-cdda2wav/files/md5 << 'END-of-ripit-cdda2wav/files/md5'
XMD5 (ripit-1.5.tar.gz) = ad796d63c258a68de7edc800bfc67e9b
END-of-ripit-cdda2wav/files/md5
echo c - ripit-cdda2wav/pkg
mkdir -p ripit-cdda2wav/pkg > /dev/null 2>&1
echo x - ripit-cdda2wav/pkg/COMMENT
sed 's/^X//' >ripit-cdda2wav/pkg/COMMENT << 'END-of-ripit-cdda2wav/pkg/COMMENT'
XA perl-script frontend for encoding audio CDs to MP3 files (using cdda2wav)
END-of-ripit-cdda2wav/pkg/COMMENT
echo x - ripit-cdda2wav/pkg/DESCR
sed 's/^X//' >ripit-cdda2wav/pkg/DESCR << 'END-of-ripit-cdda2wav/pkg/DESCR'
Xripit
X-----
X
Xripit is a small front-end program written in perl for ripping,
Xencoding & tagging MP3s. It is a console program that needs no user
Xintervention. It requires dagrab, bladeenc and xmcd (for CDDB access).
X
XWWW: http://www.netcomuk.co.uk/~squinn/ripit.html
X
XThis version has been modified from the original 'ripit' port to use
Xcdda2wav (/usr/ports/sysutils/cdrecord) to rip tracks, as it's faster
Xand supports both SCSI and ATAPI devices.
X
XOriginal script by Simon Quinn
Xcdd version by Donald Burr <dburr@pobox.com>
Xcdda2wav version by Matt Storch <idiotsavant@mail.com>
X
X
END-of-ripit-cdda2wav/pkg/DESCR
echo x - ripit-cdda2wav/pkg/PLIST
sed 's/^X//' >ripit-cdda2wav/pkg/PLIST << 'END-of-ripit-cdda2wav/pkg/PLIST'
Xbin/ripit.pl
END-of-ripit-cdda2wav/pkg/PLIST
echo c - ripit-cdda2wav/patches
mkdir -p ripit-cdda2wav/patches > /dev/null 2>&1
echo x - ripit-cdda2wav/patches/patch-aa
sed 's/^X//' >ripit-cdda2wav/patches/patch-aa << 'END-of-ripit-cdda2wav/patches/patch-aa'
X*** ripit.pl.orig	Wed Apr 19 12:15:03 2000
X--- ripit.pl	Fri Apr 21 14:17:32 2000
X***************
X*** 18,24 ****
X  #       --device                - CDROM device to rip from
X  #
X  # Version 1.5 01/08/99 - Simon Quinn
X! #
X  # Usage: ripit.pl [--halt] [--bitrate rate] 
X  #                 [--year year] [--device cddevice] [start_track]
X  ####################################################################
X--- 18,37 ----
X  #       --device                - CDROM device to rip from
X  #
X  # Version 1.5 01/08/99 - Simon Quinn
X! # Version 1.5db 09/09/99 - Donald Burr <dburr@pobox.com>
X! #	Modified to use cdd instead of tosha, for those of us
X! #	(unfortunate enough) who have ATAPI/IDE CD-ROMs.  Tested
X! #	on FreeBSD with the FreeBSD cdd port (/usr/ports/audio/cdd),
X! #	YMMV if you are using a different OS.
X! # Version 1.5ms 04/19/2000 - Matt Storch <idiotsavant@mail.com>
X! #	Modified again to use dagrab instead of cdd, because some
X! #	drives return only noise when using cdd (probably an endianness
X! #	issue). Also does not require sox, and uses gogo by default rather
X! #	than bladeenc.
X! # Version 1.5ms2 04/21/2000 - Matt Storch <idiotsavant@mail.com>
X! #	Well, I should have known that cdda2wav worked with ATAPI
X! #	devices. It's much faster than dagrab, so here's yet another
X! #	(hopefully the last) variant of this port.
X  # Usage: ripit.pl [--halt] [--bitrate rate] 
X  #                 [--year year] [--device cddevice] [start_track]
X  ####################################################################
X***************
X*** 26,35 ****
X  # User configurable variables
X  #
X  
X! $cddev 		= "/dev/cdrom";		# CD Audio device
X! $outputdir 	= "/dosc/cdrip/";	# Where the MP3s should go
X  $bitrate	= 160;			# Bitrate for MP3s
X! $encoder	= 1; 			# 0 - Bladeenc, 1 - Lame
X  
X  $use_underscore = 0;	# Use _ instead of spaces in filenames (1 yes, 0 no)
X  
X--- 39,50 ----
X  # User configurable variables
X  #
X  
X! # Note: devices must be specified this way (strip the leading '/dev/'
X! # and the trailing partition letter) because this is the way cdd wants it.
X! $cddev 		= "acd0";		# CD Audio device
X! $outputdir 	= "~/mp3/";		# Where the MP3s should go
X  $bitrate	= 160;			# Bitrate for MP3s
X! $encoder	= 0; 			# 0 - Bladeenc, 1 - Lame
X  
X  $use_underscore = 0;	# Use _ instead of spaces in filenames (1 yes, 0 no)
X  
X***************
X*** 44,50 ****
X  
X  #######################################################################
X  # No User configurable parameters below here
X! #######################################################################
X  
X  require "flush.pl";
X  use Getopt::Long;
X--- 59,65 ----
X  
X  #######################################################################
X  # No User configurable parameters below here
X! ######################################################################
X  
X  require "flush.pl";
X  use Getopt::Long;
X***************
X*** 173,181 ****
X  
X    system("rm $tocfile >/dev/null 2>&1");
X  
X!   system("cda -dev $cddev on >/dev/null 2>&1") ;
X!   system("cda -dev $cddev toc >$tocfile") ;
X!   system("cda -dev $cddev off >/dev/null 2>&1") ;
X  
X    if ( ! -r $tocfile ) { die "$tocfile is missing"; }
X  }
X--- 188,196 ----
X  
X    system("rm $tocfile >/dev/null 2>&1");
X  
X!   system("cda -dev /dev/r${cddev}c on >/dev/null 2>&1") ;
X!   system("cda -dev /dev/r${cddev}c toc >$tocfile") ;
X!   system("cda -dev /dev/r${cddev}c off >/dev/null 2>&1") ;
X  
X    if ( ! -r $tocfile ) { die "$tocfile is missing"; }
X  }
X***************
X*** 327,342 ****
X      $riptrackname = &get_trackname($_, $tracklist[$_ - 1]);
X      $riptrackno = $_;
X  
X      &printflush(RIPLOG,"Ripping $tracklist[$_ - 1]...\n");
X  
X!     if (system("cdparanoia -d $cddev $riptrackno \"$riptrackname.rip\"")) {
X!        &printflush(RIPLOG,"cdparanoia failed on $tracklist[$_ - 1]\n");
X!        die "cdparanoia failed on $tracklist[$_ - 1]";
X      }
X  
X-     # Rename rip file to a wav for encoder
X-     rename "$riptrackname.rip","$riptrackname.wav";
X- 
X      &printflush(RIPLOG,"Rip complete $tracklist[$_ - 1]\n");
X  
X      # Start the Encoder in the background. but only once
X--- 342,357 ----
X      $riptrackname = &get_trackname($_, $tracklist[$_ - 1]);
X      $riptrackno = $_;
X  
X+     print "Ripping track $tracklist[$_ - 1]...\n";
X      &printflush(RIPLOG,"Ripping $tracklist[$_ - 1]...\n");
X  
X!     if (system("cdda2wav  -q -H -t $riptrackno -D /dev/${cddev}c  \"$riptrackname.wav\" >/dev/null")) {
X!        &printflush(RIPLOG,"cdda2wav failed on $tracklist[$_ - 1]\n");
X!        #die "cdda2wav failed on $tracklist[$_ - 1]";
X!        #looks like cdda2wav returns an error code no matter what,
X!        #so don't make errors fatal (this is probably a bad idea, but what the hell...) 
X      }
X  
X      &printflush(RIPLOG,"Rip complete $tracklist[$_ - 1]\n");
X  
X      # Start the Encoder in the background. but only once
X***************
X*** 367,373 ****
X      print "\nMP3 Encoding track ".$ncount." of ".($#seltrack + 1)."\n";
X      &printflush(RIPLOG,"Encoding $tracklist[$_ - 1]...\n");
X  
X!     # Keep looping until the file appears, ie wait for cdparanoia
X      # timeout after 30 minutes
X      $x=0;
X      while( ! -r "$riptrackname.wav" ){ 
X--- 382,388 ----
X      print "\nMP3 Encoding track ".$ncount." of ".($#seltrack + 1)."\n";
X      &printflush(RIPLOG,"Encoding $tracklist[$_ - 1]...\n");
X  
X!     # Keep looping until the file appears, ie wait for cdda2wav
X      # timeout after 30 minutes
X      $x=0;
X      while( ! -r "$riptrackname.wav" ){ 
X***************
X*** 381,387 ****
X        $enc = "bladeenc -QUIT -$bitrate \"$riptrackname.wav\" ";
X      }
X      else {
X!       $enc = "lame -b $bitrate \"$riptrackname.wav\" \"$riptrackname.mp3\"";
X      }
X  
X      if ( ! system("$enc >$enclog 2>&1 </dev/null")) {
X--- 396,402 ----
X        $enc = "bladeenc -QUIT -$bitrate \"$riptrackname.wav\" ";
X      }
X      else {
X!       $enc = "gogo -b $bitrate \"$riptrackname.wav\" \"$riptrackname.mp3\"";
X      }
X  
X      if ( ! system("$enc >$enclog 2>&1 </dev/null")) {
END-of-ripit-cdda2wav/patches/patch-aa
echo x - ripit-cdda2wav/Makefile
sed 's/^X//' >ripit-cdda2wav/Makefile << 'END-of-ripit-cdda2wav/Makefile'
X# New ports collection makefile for:    ripit-cdda2wav
X# Date created:         21 Apr 2000
X# Whom:                 Matt Storch <idiotsavant@mail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ripit-cdda2wav
XPORTVERSION=	1.5
XCATEGORIES=	audio
XMASTER_SITES=	http://www.initio.no/~oyvindmo/distfiles/
XDISTNAME=	ripit-1.5
X
XMAINTAINER=	idiotsavant@mail.com
X
XRUN_DEPENDS=	bladeenc:${PORTSDIR}/audio/bladeenc \
X		cdda2wav:${PORTSDIR}/sysutils/cdrecord \
X		cda:${PORTSDIR}/audio/xmcd
X
XNO_BUILD=	yes
XUSE_PERL5=	yes
X
Xdo-install:
X	@ ${INSTALL_SCRIPT} ${WRKSRC}/ripit.pl ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-ripit-cdda2wav/Makefile
exit


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004220220.TAA68519>