Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2002 16:23:13 +0000
From:      Scott Mitchell <scott.mitchell@mail.com>
To:        Sean LeBlanc <seanleblanc@attbi.com>
Cc:        FreeBSD Multimedia <multimedia@FreeBSD.ORG>
Subject:   Re: Ripping with grip
Message-ID:  <20020120162313.C306@localhost>
In-Reply-To: <20020119174053.A45968@hostwiththemost>; from seanleblanc@attbi.com on Sat, Jan 19, 2002 at 05:40:54PM -0700
References:  <20020119101037.A37838@hostwiththemost> <20020119172725.A293@localhost> <20020119174053.A45968@hostwiththemost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 19, 2002 at 05:40:54PM -0700, Sean LeBlanc wrote:
> Thanks for the tip. I tried this out, and depending on the CD I tried,
> either grip did nothing, or started generated a file(.wav) that just grew
> and grew and grew until I finally killed it at 1.4G. Figuring I'd see if
> cdda2wav would run on its own, I entered the same command style that grip
> had. I have since added the -I flag to get rid of that warning about my
> CDROM not being a SCSI drive. I have cut and paste what happens below. Now,
> again, depending on the CD, behavior is different, but one common thread
> seems to be the "cdda2wav: Operation not permitted. cannot set posix
> realtime scheduling policy" message. Is that something to worry about?

I guess you're running cdda2wav as a normal user?  If you ran as root it
would be able to set realtime scheduling for the process; that should only
make any difference if your machine is very slow, or heavily loaded.

Here's what I get when I ru cdda2wav with the options from grip:

(520) tuatara:~ $ cdda2wav -D /dev/cdrom -x -H -t 1 -O wav test.wav
cdrom device (/dev/cdrom) is not of type generic SCSI. Setting interface to cooked_ioctl.
266240 bytes buffer memory requested, 4 buffers, 27 sectors
#Cdda2wav version 1.10_freebsd_4.5-prerelease_i386_i386 real time sched. soundcard support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 8           no              no     audio    2
Table of Contents: total tracks:8, (total time 37:17.00)
  1.( 3:15.35),  2.( 2:34.65),  3.( 5:19.45),  4.( 2:18.00),  5.( 2:39.33)
  6.( 8:46.30),  7.( 6:35.50),  8.( 5:45.42),

Table of Contents: starting sectors
  1.(       0),  2.(   14660),  3.(   26275),  4.(   50245),  5.(   60595)
  6.(   72553),  7.(  112033),  8.(  141708), lead-out(  167625)
CDINDEX discid: LEx050lP7DBANen3Xgow3PpRQfg-
CDDB discid: 0x7a08bb08
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 34480364 bytes.
recording 195.04666 seconds stereo with 16 bits @ 44100.0 Hz ->'test'...
cdda2wav: Operation not permitted. cannot set posix realtime scheduling policy
overlap:min/max/cur, jitter, percent_done:
 1/ 1/ 1/      0 100%  track  1 successfully recorded

The track was indeed successfully recorded -- I'm listening to it now.

Comparing my output with yours, it looks as though your drive is having
some trouble with the table of contents on your disc -- the times and
sector offsets it's thrown up are clearly very, very wrong :-(  What does
'cdcontrol -f /dev/acd0c info' give you?  This 'samplefile size will be 44
bytes' business looks bad, too.

I guess you could try adding '-S 1' to the cdda2wav options, which might
force the drive to run at single speed... no guarantee that will make any
difference though.  Otherwise, it might just be that your drive and
cdda2wav (or the acd driver) don't get along when it comes to audio
extraction.  Can you borrow another drive to try in its place?

Sorry I'm not being more help -- this is one of those 'it works for me'
things, unfortunately :-(

	Scott

> bash-2.05$ cdda2wav -I cooked_ioctl -D /dev/acd0c -x -H -t 1 here.wav
> 266240 bytes buffer memory requested, 4 buffers, 27 sectors
> #Cdda2wav version 1.10_freebsd_4.4-release_i386_i386 real time sched.
> soundcard support
> AUDIOtrack pre-emphasis  copy-permitted tracktype channels
>       1- 8           no              no     audio    2
> Table of Contents: total tracks:8, (total time 816112:40.30)
>   1.(128232:06.30),  2.(944563:05.13),  3.(822214:42.58),  4.(500811:32.68),
> 5.(411464:08.08)
>   6.(306737:39.63),  7.(947883:34.46),  8.(571954:31.03),
>  
> Table of Contents: starting sectors
>   1.(       0),  2.(577044480),  3.(532611072),  4.(4232577280),
> 5.(2191261952)
>   6.(4042850560),  7.(1128202752),  8.(1098711552), lead-out(3672506880)
> CDINDEX discid: igoTgjK1Y5eNLegLds4a7yk7MOc-
> CDDB discid: 0xff2c6608
> CD-Text: not detected
> CD-Extra: not detected
> samplefile size will be 44 bytes.
> recording 7693926.-3648 seconds stereo with 16 bits @ 44100.0 Hz ->'here'...
> cdda2wav: Operation not permitted. cannot set posix realtime scheduling
> policy
> overlap:min/max/cur, jitter, percent_done:
> 27/ 0/ 1/  -2352   0%internal error: negative left_in_track:-262144
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-278020
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-293308
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-308596
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-323884
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-339172
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-354460
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-369748
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-385036
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-400324
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-415612
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-430900
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-446188
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-461476
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-476764
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-492052
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-507340
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-522628
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-537916
>  1/ 1/ 1/      0   0%internal error: negative left_in_track:-553204
> 
> The above was a Chemlab CD. Below is what I get on a Sonic Youth CD:
> cdda2wav -I cooked_ioctl -D /dev/acd0c -x -H -t 1 here.wav
> 266240 bytes buffer memory requested, 4 buffers, 27 sectors
> #Cdda2wav version 1.10_freebsd_4.4-release_i386_i386 real time sched.
> soundcard support
> Warning: first sector has negative start sector! Setting to zero.
> AUDIOtrack pre-emphasis  copy-permitted tracktype channels
>       1-11           no              no     audio    2
> Table of Contents: total tracks:11, (total time more than 73080:04.10)
>   1.(631257:18.70),  2.(455737:20.48),  3.(943849:28.24),  4.(403628:56.40),
> 5.(593974:40.16)
>   6.(67938:59.15),  7.(549147:59.27),  8.(478092:27.39),  9.(344311:34.62),
> 10.(377327:09.49)
>  11.(884925:19.43),
>  
> Table of Contents: starting sectors
>   1.(       0),  2.(2840657920),  3.(596508672),  4.(548864000),
> 5.(2365194240)
>   6.(743112960),  7.(1048838400),  8.(3520004352),  9.(1376453120),
> 10.(2925855232)
>  11.(328860160), lead-out(16056832)
> CDINDEX discid: xBT0SdHXcYd8cI46I4j444S6T9Q-
> CDDB discid: 0xfe0a450b
> CD-Text: not detected
> CD-Extra: not detected
> CD with illegal leadout position detected!
> The cdrom drive firmware does not permit access beyond the leadout position!
> Audio extraction will be limited to track 1 with maximal 16056832 sectors...
> samplefile size will be 44 bytes.
> recording 214091.00933 seconds stereo with 16 bits @ 44100.0 Hz ->'here'...
> cdda2wav: Operation not permitted. cannot set posix realtime scheduling
> policy
> overlap:min/max/cur, jitter, percent_done:
>  1/ 1/ 1/      0   3%^C
> W Child exited with 2
> 
> When I killed this, the "here.wav" file was 95M.
> 
> > 
> > HTH,
> > 
> > 	Scott
> > 
> > -- 
> > ===========================================================================
> > Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
> > Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
> > scott.mitchell@mail.com | 0xAA775B8B |      -- Anon
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-multimedia" in the body of the message
> 
> -- 
> Sean LeBlanc:seanleblanc@attbi.com Yahoo:seanleblancathome 
> ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome 
> Our Age of Anxiety is, in great part, the result of trying to do today's jobs 
> with yesterday's tools. 
> -Marshall McLuhan 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-multimedia" in the body of the message

-- 
===========================================================================
Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
scott.mitchell@mail.com | 0xAA775B8B |      -- Anon

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




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