Re: [Libcdio-devel] CD-Text support for macOS and Windows

2023-03-29 Thread Rocky Bernstein
On Mon, Mar 27, 2023 at 11:07 AM Robert Kausch via Libcdio-devel <
libcdio-devel@gnu.org> wrote:

> Am 26.03.2023 um 22:58 schrieb Rocky Bernstein:
> > On Fri, Mar 24, 2023 at 3:58 AM Rocky Bernstein  wrote:
> > For what it is worth, I was able to build the current master on Windows
> 10
> > pro and Msys2. I suspect though that master doesn't have Robert's latest
> > patches.
> No, the Windows CD-Text patches are in the cdtext-win32 branch. I didn't
> want to push this directly to master without someone else testing it
> before.
>

I have now tried this branch in Windows 10 pro in both the msys and cygwin
environments and things
work. But I haven't been able to find a CD with actual CD-text information
on it yet.


>
> > It looks like CDDB reading has bit rot. But that is a different story.
> The freedb database that libcdio defaults to shut down in 2020. I just
> pushed a commit to update the references to GnuDB (gnudb.org) which is
> the only viable alternative I know of. CDDB queries work again with this
> change.
>

Although the change in master is right, there may still be a bug in my
code. I will investigate over the upcoming weekend.


Re: [Libcdio-devel] Can we merge branch "joliet_multi_extent" ?

2023-03-29 Thread Rocky Bernstein
On Mon, Mar 27, 2023 at 12:38 PM Thomas Schmitt  wrote:

> Hi,
>
> i pushed branch "joliet_multi_extent" with a new commit
>   cb03533aaba6113465b19157577e631e26406c7e
>   "Add test for proper handling of multi-extent files in the Joliet tree"
>
> Please review and/or test.
>

I have tested on Ubuntu and Windows 10 and things are fine.



> Especially
>   (cd test && ./check_multiextent.sh )
> should report:
>   -- ./check_multiextent.sh: ISO 9660 + Rock Ridge multiextent listing
> test ok.
>   -- ./check_multiextent.sh: ISO 9660 + Rock Ridge multiextent read test
> ok.
>   -- ./check_multiextent.sh: Joliet multiextent listing test ok.
>   -- ./check_multiextent.sh: Joliet multiextent read test ok.
>
> I tested that this branch can be merged into a branch made from "master"
> (15801fb), compiles, and yields above test result.
>
>
> Rocky Bernstein wrote:
> > BTW, when creating ISO
> > images please try to use the smallest amount of data that will do the
> job.
>
> That's why i hack xorriso before making the test ISOs.
> Normally a multi-extent ISO would be at least 4 GiB large.
>
> The overhead of the old multi_extent_8k.iso consists entirely of zeros.
> So within git and tar.gz there should be nearly no cost. Nevertheless
> it is worthwhile to avoid those zeros.
> So i made a new one by:
>
>   xorriso -compliance no_emul_toc -padding 0 -joliet off -rockridge on \
>   -outdev test/data/multi_extent_8k.iso \
>   -map test/data/multi_extent_file /multi_extent_file
>
>
> Have a nice day :)
>
> Thomas
>
>
>


Re: [Libcdio-devel] CD-Text support for macOS and Windows

2023-03-29 Thread Thomas Schmitt
Hi,

Rocky Bernstein wrote:
> But I haven't been able to find a CD with actual CD-text information
> on it yet.

Exactly seven years ago i posted instructions how to create one on
GNU/Linux (also possible on *BSD and Solaris):
  https://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg5.html

You need a blank CD-R or a CD-RW.

Create a file named NIGHTCATS.TXT with the content which i give between
the "--...--" lines (but not those dash lines themselves):
--
Input Sheet Version = 0.7T
Text Code   = 8859
Language Code   = English
Album Title = Deeper Dance
Artist Name = United Cat Orchestra
Songwriter  = Various Songwriters
Composer= Various Composers
Arranger= Tom Cat
Album Message   = For all our fans
Catalog Number  = 1234567890
Genre Code  = Classical
Genre Information   = Feline classic music
Closed Information  = This is not to be shown by CD players
UPC / EAN   = 1234567890123
Text Data Copy Protection = OFF
First Track Number  = 1
Last Track Number   = 3
Track 01 Title  =  Deeper Dance
Track 01 Artist =  Felix and The Purrs
Track 01 Songwriter =  Friedrich Schiller
Track 01 Composer   =  Ludwig van Beethoven
Track 01 Arranger   =  Tom Cat
Track 01 Message=  Fritz and Louie once were punks
ISRC 01 =  XYBLG1101234
Track 02 Title  =  The Hunt
Track 02 Artist =  Catwalk Beauties
Track 02 Songwriter =  Mother Goose
Track 02 Composer   =  unknown
Track 02 Arranger   =  Tom Cat
Track 02 Message=  Pluck the goose
ISRC 02 =  XYBLG115
Track 03 Title  =  Harold's Dream
Track 03 Artist =  Mia Kitten
Track 03 Songwriter =  Mia Kitten
Track 03 Composer   =  Mia Kitten
Track 03 Arranger   =  Mia Kitten
Track 03 Message=
ISRC 03 =  XYBLG116
--

Create or choose three files as track content. (Not very large, best
with size divisible by 2352. If you have real .wav files it would be
most realistic.)
In the following example the files are named "file1", "file2", "file3".

Then you put the CD into the CD burner /dev/sr0 and run:

   cdrskin dev=/dev/sr0 -v blank=as_needed -eject \
   -sao -audio -swab \
   input_sheet_v07t=NIGHTCATS.TXT
   file1 file2 file3


On FreeBSD the drive address is like /dev/cd0. On NetBSD like /dev/rcd0d.
On Solaris like /dev/rdsk/c4t0d0s2.
When in doubt, use
   cdrskin --devices
to learn your drive's address.


Have a nice day :)

Thomas