dvdrip
2 years agodvd-sector-copy.c: Force return to start of line on progress output.
Mark Wooding [Wed, 16 Feb 2022 21:20:10 +0000 (21:20 +0000)]
dvd-sector-copy.c: Force return to start of line on progress output.

2 years agodvd-sector-copy.c: Merge adjacent retry ranges when reading from a file.
Mark Wooding [Wed, 16 Feb 2022 21:19:42 +0000 (21:19 +0000)]
dvd-sector-copy.c: Merge adjacent retry ranges when reading from a file.

2 years agodvd-sector-copy.c, dvdrip: Make input and output files positional args.
Mark Wooding [Wed, 16 Feb 2022 21:15:22 +0000 (21:15 +0000)]
dvd-sector-copy.c, dvdrip: Make input and output files positional args.

They're not really optional.

2 years agodvd-sector-copy.c: Hoist out the common sector-range parsing machinery.
Mark Wooding [Wed, 16 Feb 2022 21:13:46 +0000 (21:13 +0000)]
dvd-sector-copy.c: Hoist out the common sector-range parsing machinery.

2 years agodvd-sector-copy.c: Make `outfd' be global variable.
Mark Wooding [Wed, 16 Feb 2022 21:10:54 +0000 (21:10 +0000)]
dvd-sector-copy.c: Make `outfd' be global variable.

2 years agodvd-sector-copy.c: Hoist `carefully_write' up near the system utilities.
Mark Wooding [Wed, 16 Feb 2022 21:09:15 +0000 (21:09 +0000)]
dvd-sector-copy.c: Hoist `carefully_write' up near the system utilities.

2 years agodvd-sector-copy.c: Split up the things which used to be in `struct source'.
Mark Wooding [Wed, 16 Feb 2022 18:55:24 +0000 (18:55 +0000)]
dvd-sector-copy.c: Split up the things which used to be in `struct source'.

2 years agodvd-sector-copy.c: Eliminate `struct source'; just make the things global.
Mark Wooding [Wed, 16 Feb 2022 18:53:16 +0000 (18:53 +0000)]
dvd-sector-copy.c: Eliminate `struct source'; just make the things global.

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.