* Kristine Daniels <[EMAIL PROTECTED]> [2005-11-12 13:15]:
> Out of curiousity, I tried -F and received...
> 
> $ jack -F d30be90f.bin
> This is jack 3.1.1 (C)2004 Arne Zellentin <[EMAIL PROTECTED]>
> Device /dev/cdrom does not exist!

Right.  This is sort of expected, even if it's not obvious.  The man
page says:

  -F, --from-image string

    read  audio data from image file. Like --from-tocfile, but the
    image itself is speci‐ fied instead of the tocfile. If you do not have
    a toc-file (or don’t specify  a  toc- file), the TOC is read from the
    CD itself.

Since you didn't specify a toc file it will try to read the TOC from
the CD but your CD is not in your CD drive so this fails.

In any case, apart from this (which can be improved with a nice
warning), -F d30be90f.bin will currently not work, while -F
$PWD/d30be90f.bin will.

Here's a fix for both of this:

diff -urN jack-3.1.1~/jack_prepare.py jack-3.1.1/jack_prepare.py
--- jack-3.1.1~/jack_prepare.py 2005-11-12 18:54:42.000000000 +0000
+++ jack-3.1.1/jack_prepare.py  2005-11-12 18:55:28.000000000 +0000
@@ -62,6 +62,9 @@
                     cf['_image_toc_file'] = 
os.path.abspath(cf['_image_toc_file'])
                     jack_ripstuff.all_tracks, dummy, dummy = 
jack_functions.cdrdao_gettoc(cf['_image_toc_file'])
                 else:
+                    if cf['_image_file']:
+                        print "No TOC file for image '%s' specified, reading 
TOC from CD device." % cf['_image_file']
+                        cf['_image_file'] = os.path.abspath(cf['_image_file'])
                     jack_ripstuff.all_tracks = 
jack_functions.gettoc(cf['_toc_prog'])
                     toc_just_read = 1
                     # check that the generic device is usable, too

-- 
Martin Michlmayr
http://www.cyrius.com/

Reply via email to