dvdrip
2 years agodvd-sector-copy.c: Reorder things in a more sensible way.
Mark Wooding [Wed, 16 Feb 2022 18:19:11 +0000 (18:19 +0000)]
dvd-sector-copy.c: Reorder things in a more sensible way.

2 years agodvd-sector-copy.c: Introduce `moan' function for printing warnings.
Mark Wooding [Wed, 16 Feb 2022 18:02:16 +0000 (18:02 +0000)]
dvd-sector-copy.c: Introduce `moan' function for printing warnings.

2 years agodvd-sector-copy.c: Introduce type alias and print macro for sector numbers.
Mark Wooding [Wed, 16 Feb 2022 18:00:31 +0000 (18:00 +0000)]
dvd-sector-copy.c: Introduce type alias and print macro for sector numbers.

2 years agodvd-sector-copy.c: Support reading from a regular file.
Mark Wooding [Wed, 16 Feb 2022 10:10:05 +0000 (10:10 +0000)]
dvd-sector-copy.c: Support reading from a regular file.

This will be useful for testing.  I hope.

2 years agodvd-sector-copy.c: Order `STOP' before `WRITE'.
Mark Wooding [Wed, 16 Feb 2022 10:08:06 +0000 (10:08 +0000)]
dvd-sector-copy.c: Order `STOP' before `WRITE'.

The bad-block parsers already filter out empty regions, so they won't
cause a problem.  And this way we don't reject groups of adjacent bad
blocks, though we don't actually merge them as we probably should.

2 years agobuild: Build locally and install in the usual way.
Mark Wooding [Wed, 16 Feb 2022 10:06:48 +0000 (10:06 +0000)]
build: Build locally and install in the usual way.

Accessing these programs over NFS is more annoying than useful, so do
things the old-fashioned way instead.

2 years agodvdrip-upload: Inhibit the fancy rsync algorithm when copying.
Mark Wooding [Tue, 15 Feb 2022 10:11:12 +0000 (10:11 +0000)]
dvdrip-upload: Inhibit the fancy rsync algorithm when copying.

On my system, at least, it actually slows copying down by a factor of at
least two.

2 years agodvdrip: Ring the bell when the job is done.
Mark Wooding [Tue, 15 Feb 2022 10:10:58 +0000 (10:10 +0000)]
dvdrip: Ring the bell when the job is done.

Wake me up.

2 years agodvd-sector-copy.c: Show overall progress if we're simply continuing.
Mark Wooding [Tue, 15 Feb 2022 10:07:54 +0000 (10:07 +0000)]
dvd-sector-copy.c: Show overall progress if we're simply continuing.

If we're supposed to write a single region extending to the end of the
disc then show the percentage completion in terms of the absolute
position in the disc rather than as a percentage of the number of
sectors we're supposed to copy.  This makes the percentage shown easier
to relate to that displayed by a previous interrupted operation.

2 years agodvdrip: Cope with `/' in the output name.
Mark Wooding [Mon, 7 Feb 2022 22:29:51 +0000 (22:29 +0000)]
dvdrip: Cope with `/' in the output name.

2 years agoInitial commit.
Mark Wooding [Mon, 7 Feb 2022 21:00:16 +0000 (21:00 +0000)]
Initial commit.