Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Neil Bothwick
On Thu, 12 Oct 2006 22:55:03 -0700, Grant wrote:

 I'm tweaking that script you wrote.  Here's what I have:
 
 #!/bin/bash
 
 echo Enter DVD filename:
 read FILENAME
 mount /dev/cdrom
 TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
 vobcopy -m || exit
 mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit
 rm -rf $TITLE
 umount /dev/cdrom
 
 Can you tell me what purpose the || exit portions serve?

'||' is a logical or. When used to chain commands, as in cmd1 || cmd2
it means run cmd1, if that fails run cmd2 (if the first command succeeds
and returns true, the OR will alsays be true so there's no need to run
cmd2). All is does here is exit the script if vobcopy or mkisofs return
an error, because there'd be no point in continuing.

 Also, how
 can I run the script by typing /path/to/getdvd?  I've tried:
 
 chmod +x getdvd

That should work, assuming you're i the same directory at getdvd. I keep
my scripts in ~/bin, with the x bits set, and have ~/bin in $PATH, so I
don't need to give the path to run them.


-- 
Neil Bothwick

SUBLIMINALsendmoneyTAGLINE


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Bo Ørsted Andresen
On Friday 13 October 2006 07:55, Grant wrote:
 #!/bin/bash
[SNIP]
 vobcopy -m || exit
 mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit
[SNIP]

 Can you tell me what purpose the || exit portions serve?

It's quite common is bash scripts to define a function named die:

die() {
echo $@
exit 1
}

If you define that at the top of your script you ceplace the above with this:

 vobcopy -m || die vobcopy failed
 mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || die mkisofs failed

I hope you get the point...

-- 
Bo Andresen


pgpibPK8432yL.pgp
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread go moko
--- Bo Ørsted Andresen [EMAIL PROTECTED] wrote:

 It's quite common is bash scripts to define a
 function named die:
 
 die() {
 echo $@
 exit 1
 }

Or, with use of a specific return code:
die() {
  RT=$1
  shift
  echo $@
  exit $RT
}

and call it either with the error code of the previous
program:
 vobcopy -m || die $? vobcopy failed
or your own return code
 vobcopy -m || die 58 vobcopy failed

Just a point a detail, if it can be useful...

G. Moko


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Grant

 I'm tweaking that script you wrote.  Here's what I have:

 #!/bin/bash

 echo Enter DVD filename:
 read FILENAME
 mount /dev/cdrom
 TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
 vobcopy -m || exit
 mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit
 rm -rf $TITLE
 umount /dev/cdrom

 Can you tell me what purpose the || exit portions serve?

'||' is a logical or. When used to chain commands, as in cmd1 || cmd2
it means run cmd1, if that fails run cmd2 (if the first command succeeds
and returns true, the OR will alsays be true so there's no need to run
cmd2). All is does here is exit the script if vobcopy or mkisofs return
an error, because there'd be no point in continuing.


Got it.


 Also, how
 can I run the script by typing /path/to/getdvd?  I've tried:

 chmod +x getdvd

That should work, assuming you're i the same directory at getdvd. I keep
my scripts in ~/bin, with the x bits set, and have ~/bin in $PATH, so I
don't need to give the path to run them.


Here's what I get:

[EMAIL PROTECTED] ~ $ ls -l
-rwxrwxrwx 1 grant grant  386 Oct 12 22:24 getdvd
[EMAIL PROTECTED] ~ $ getdvd
-bash: getdvd: command not found

I like the sound of your ~/bin setup.  How can I add that to my PATH
permanently?  Is it 'export PATH=~/bin' ?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Neil Bothwick
On Fri, 13 Oct 2006 07:52:57 -0700, Grant wrote:

 [EMAIL PROTECTED] ~ $ ls -l
 -rwxrwxrwx 1 grant grant  386 Oct 12 22:24 getdvd
 [EMAIL PROTECTED] ~ $ getdvd
 -bash: getdvd: command not found

Unless the current directory is in your path, you need to invoke it
with ./getdvd.

 I like the sound of your ~/bin setup.  How can I add that to my PATH
 permanently?  Is it 'export PATH=~/bin' ?

export PATH=$PATH:~/bin or 
export PATH=~/bin:$PATH

depending on whether you want your own bin searched first or last. Put
this in ~/.bashrc


-- 
Neil Bothwick

The value of a program is proportional to the weight of its output.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Grant

 [EMAIL PROTECTED] ~ $ ls -l
 -rwxrwxrwx 1 grant grant  386 Oct 12 22:24 getdvd
 [EMAIL PROTECTED] ~ $ getdvd
 -bash: getdvd: command not found

Unless the current directory is in your path, you need to invoke it
with ./getdvd.

 I like the sound of your ~/bin setup.  How can I add that to my PATH
 permanently?  Is it 'export PATH=~/bin' ?

export PATH=$PATH:~/bin or
export PATH=~/bin:$PATH

depending on whether you want your own bin searched first or last. Put
this in ~/.bashrc


Uh oh.  vobcopy is choking on Silent Hill which is in the Sony copy
protection list.

[Error] Error writing to
/home/grant/movies/SILENT_HILL/VIDEO_TS/VTS_01_1.VOB.partial
[Error] Error: Bad address

I was hoping vobcopy would be able to get through it.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-13 Thread Grant

  [EMAIL PROTECTED] ~ $ ls -l
  -rwxrwxrwx 1 grant grant  386 Oct 12 22:24 getdvd
  [EMAIL PROTECTED] ~ $ getdvd
  -bash: getdvd: command not found

 Unless the current directory is in your path, you need to invoke it
 with ./getdvd.

  I like the sound of your ~/bin setup.  How can I add that to my PATH
  permanently?  Is it 'export PATH=~/bin' ?

 export PATH=$PATH:~/bin or
 export PATH=~/bin:$PATH

 depending on whether you want your own bin searched first or last. Put
 this in ~/.bashrc

Uh oh.  vobcopy is choking on Silent Hill which is in the Sony copy
protection list.

[Error] Error writing to
/home/grant/movies/SILENT_HILL/VIDEO_TS/VTS_01_1.VOB.partial
[Error] Error: Bad address

I was hoping vobcopy would be able to get through it.

- Grant


I just wanted to add that dvdbackup and dd also fail.  There appear to
be a couple Windows programs that should work though.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-12 Thread Paul Stear
On Wednesday 11 October 2006 19:12, Neil Bothwick wrote:
 On Wed, 11 Oct 2006 08:24:48 -0700, Grant wrote:
  I tried using vobcopy to decrypt my The Life of Mammals dd images
  and, strangely, it's not working.  vobcopy outputs the same error that
  dvdbackup did, something about an error cracking the CSS keys, which
  comes from libdvdcss.

 Could it be using this? http://en.wikipedia.org/wiki/ARccOS
Thanks Neil, 
That reference has shown me what the problem is when trying to play Silent 
Hill.

Paul
-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-12 Thread Grant

 I tried using vobcopy to decrypt my The Life of Mammals dd images
 and, strangely, it's not working.  vobcopy outputs the same error that
 dvdbackup did, something about an error cracking the CSS keys, which
 comes from libdvdcss.

Could it be using this? http://en.wikipedia.org/wiki/ARccOS


Would it then make sense that vobcopy can rip a decrypted backup from
the disc but not from a disc image?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-12 Thread Grant

  Could it be using this? http://en.wikipedia.org/wiki/ARccOS

 Would it then make sense that vobcopy can rip a decrypted backup from
 the disc but not from a disc image?

Possibly, because dd would trip up on the deliberate errors.


I'm tweaking that script you wrote.  Here's what I have:

#!/bin/bash

echo Enter DVD filename:
read FILENAME
mount /dev/cdrom
TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
vobcopy -m || exit
mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit
rm -rf $TITLE
umount /dev/cdrom

Can you tell me what purpose the || exit portions serve?  Also, how
can I run the script by typing /path/to/getdvd?  I've tried:

chmod +x getdvd

and:

chmod 0777 getdvd

with no luck.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-11 Thread Grant

  mount /dev/dvd
  TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
  vobcopy -m || exit
  mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
  rm -fr ${TITLE}
  umount /dev/dvd

 Thanks for the script.  I set it up to temporarily use my dd images as
 the source, and it looks like the iso comes out about 13MB smaller
 than the dd image.  Does that make sense?

I guess that could be down to the encryption overhead.

 Also, mkisofs didn't like -o ${TITLE}.iso and errored with something
 like:

 '.iso' is an invalid atom

 Does ${TITLE}.iso need quotes?

It shouldn't, because disc names shouldn't include spaces, but it's
probably safest to add them, because shouldn't rarely equals doesn't. The
error looks like it could be caused by a space at the end of the movie
name, although awk should have removed that.


I tried using vobcopy to decrypt my The Life of Mammals dd images
and, strangely, it's not working.  vobcopy outputs the same error that
dvdbackup did, something about an error cracking the CSS keys, which
comes from libdvdcss.  VLC plays the post-vobcopy image just fine, but
it won't play in totem and mplayer.  The weird thing is, vobcopy
seemed to decrypt perfectly when working straight from the DVD so that
the image could be played in all the players.  I don't have the DVD
now to test with.

I guess I'll just have to do more testing when I can.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-11 Thread Neil Bothwick
On Wed, 11 Oct 2006 08:24:48 -0700, Grant wrote:

 I tried using vobcopy to decrypt my The Life of Mammals dd images
 and, strangely, it's not working.  vobcopy outputs the same error that
 dvdbackup did, something about an error cracking the CSS keys, which
 comes from libdvdcss.

Could it be using this? http://en.wikipedia.org/wiki/ARccOS


-- 
Neil Bothwick

BREAKFAST.COM Halted - Cereal Port Not Responding


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-10 Thread Neil Bothwick
On Mon, 9 Oct 2006 17:08:21 -0700, Grant wrote:

 mount /dev/cdrom  vobcopy -m -o MOVIE_NAME  mkisofs -l -o
 MOVIE_NAME.iso MOVIE_NAME  rm -rf MOVIE_NAME
 
 How can I set that up in a script and execute just the script?

#!/bin/bash

mount /dev/dvd
TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
vobcopy -m || exit
mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
rm -fr ${TITLE}
umount /dev/dvd

 This is also better for performance because the system won't have to
 decrypt while it's playing right?

That seems reasonable, although I've no idea how much effort is needed
to decrypt a DVD once the key is known.


-- 
Neil Bothwick

Do you reply to our surveys.?
[X]Never [ ]Always [ ]Sometimes


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-10 Thread Neil Bothwick
On Mon, 9 Oct 2006 17:08:21 -0700, Grant wrote:

 mount /dev/cdrom  vobcopy -m -o MOVIE_NAME  mkisofs -l -o
 MOVIE_NAME.iso MOVIE_NAME  rm -rf MOVIE_NAME
 
 How can I set that up in a script and execute just the script?

#!/bin/bash

mount /dev/dvd
TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
vobcopy -m || exit
mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
umount /dev/dvd

 This is also better for performance because the system won't have to
 decrypt while it's playing right?

That seems reasonable, although I've no idea how much effort is needed
to decrypt a DVD once the key is known.


-- 
Neil Bothwick

Bother, said Pooh, as he crossed the event horizon.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-10 Thread Grant

 mount /dev/cdrom  vobcopy -m -o MOVIE_NAME  mkisofs -l -o
 MOVIE_NAME.iso MOVIE_NAME  rm -rf MOVIE_NAME

 How can I set that up in a script and execute just the script?

#!/bin/bash

mount /dev/dvd
TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
vobcopy -m || exit
mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
rm -fr ${TITLE}
umount /dev/dvd


Thanks for the script.  I set it up to temporarily use my dd images as
the source, and it looks like the iso comes out about 13MB smaller
than the dd image.  Does that make sense?

Also, mkisofs didn't like -o ${TITLE}.iso and errored with something like:

'.iso' is an invalid atom

Does ${TITLE}.iso need quotes?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-10 Thread Neil Bothwick
On Tue, 10 Oct 2006 08:59:00 -0700, Grant wrote:

  mount /dev/dvd
  TITLE=$(vobcopy -I 21 | awk '/DVD-name:/ {print $3}')
  vobcopy -m || exit
  mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
  rm -fr ${TITLE}
  umount /dev/dvd  
 
 Thanks for the script.  I set it up to temporarily use my dd images as
 the source, and it looks like the iso comes out about 13MB smaller
 than the dd image.  Does that make sense?

I guess that could be down to the encryption overhead.

 Also, mkisofs didn't like -o ${TITLE}.iso and errored with something
 like:

 '.iso' is an invalid atom
 
 Does ${TITLE}.iso need quotes?

It shouldn't, because disc names shouldn't include spaces, but it's
probably safest to add them, because shouldn't rarely equals doesn't. The
error looks like it could be caused by a space at the end of the movie
name, although awk should have removed that.


-- 
Neil Bothwick

Love and Trust: Oral sex between cannibals.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Neil Bothwick
On Sun, 8 Oct 2006 20:56:45 +1300, Nick Rout wrote:

  You're right. I read this information some years ago in a normally
  reliable source, and saw no reason to doubt it as it made sense. bit
  I've just tried a dd copy and it worked. It failed on the first
  attempt, but after running lsdvd, it worked for the whole disc, and
  mplayer played it. 

It here refers to the attempt to copy the disc with dd. The copy failed
after around 100MB the first time, but succeeded after lsdvd.

 What is happenning here is that lsdvd is cracking the css keys via
 libdvdcss and caching the keys in ~/.dvdcss. If you move the image to
 another computer, or try to read it as another user, the keys will
 neeed to be cracked again.

I've tried playing the ISO image as root and it still worked.


-- 
Neil Bothwick

I wonder how much deeper would the ocean be without sponges.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Grant

 and dd means bad portability.

What do you mean by this? dd simply mirrors the UDF filesystem from the
disc in a file?


According to someone else's post, the CSS keys would need to be
cracked again if the backup was moved to a different computer.  That's
all I meant.


If you want to extract the files from the filesystem, use vobcopy.


Would vobcopy -m decrypt the DVD so that it can be played back without
a need to crack or use stored CSS keys?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Neil Bothwick
On Mon, 9 Oct 2006 07:55:10 -0700, Grant wrote:

 Would vobcopy -m decrypt the DVD so that it can be played back without
 a need to crack or use stored CSS keys?

Yes.


-- 
Neil Bothwick

IBM: Inferior But Marketable.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Grant

 Would vobcopy -m decrypt the DVD so that it can be played back without
 a need to crack or use stored CSS keys?

Yes.


That does seem to work with the stubborn The Life of Mammals.  I
wish I didn't have to mount the DVD before running vobcopy though.  I
suppose a mkisofs command after vobcopy would make for a pretty good
process.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Neil Bothwick
On Mon, 9 Oct 2006 09:42:21 -0700, Grant wrote:

 That does seem to work with the stubborn The Life of Mammals.  I
 wish I didn't have to mount the DVD before running vobcopy though.

vobcopy reads the VOB files directly, rather than reading /dev/dvd as a
video source.

 I
 suppose a mkisofs command after vobcopy would make for a pretty good
 process.

It works for me. I've used it to copy encrypted DVDs that are 4.3GB.


-- 
Neil Bothwick

What do you call a Tellytubbie with a finger up its bum? Stinky Pinky!


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-09 Thread Grant

 That does seem to work with the stubborn The Life of Mammals.  I
 wish I didn't have to mount the DVD before running vobcopy though.

vobcopy reads the VOB files directly, rather than reading /dev/dvd as a
video source.

 I
 suppose a mkisofs command after vobcopy would make for a pretty good
 process.

It works for me. I've used it to copy encrypted DVDs that are 4.3GB.


Yeah vobcopy is definitely doing some serious decrypting.  After it
mirrors The Life of Mammals mplayer and totem can play it, and with
dd (or straight from the disc) only VLC could play it.  I think I'll
use this command to mount, rip, image, and delete:

mount /dev/cdrom  vobcopy -m -o MOVIE_NAME  mkisofs -l -o
MOVIE_NAME.iso MOVIE_NAME  rm -rf MOVIE_NAME

How can I set that up in a script and execute just the script?

This is also better for performance because the system won't have to
decrypt while it's playing right?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-08 Thread Uwe Thiem
On 07 October 2006 18:56, Neil Bothwick wrote:
 On Fri, 6 Oct 2006 17:36:10 -0500, Boyd Stephen Smith Jr. wrote:
   That won't work on CSS scrambled discs. You'll copy the scrambled data
   but not the key.
 
  That's not true.  The CSS key is in the standard filesystem data, not
  in some subtrack data.

 You're right. I read this information some years ago in a normally
 reliable source, and saw no reason to doubt it as it made sense. bit I've
 just tried a dd copy and it worked. It failed on the first attempt, but
 after running lsdvd, it worked for the whole disc, and mplayer played it.

While the information above is correct, most DVD devices do not copy the 
particular part of  the filesystem. Their firmware simply doesn't do it.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-08 Thread Nick Rout
On Sat, 7 Oct 2006 17:56:36 +0100
Neil Bothwick [EMAIL PROTECTED] wrote:

 On Fri, 6 Oct 2006 17:36:10 -0500, Boyd Stephen Smith Jr. wrote:
 
   That won't work on CSS scrambled discs. You'll copy the scrambled data
   but not the key.  
  
  That's not true.  The CSS key is in the standard filesystem data, not
  in some subtrack data.
 
 You're right. I read this information some years ago in a normally
 reliable source, and saw no reason to doubt it as it made sense. bit I've
 just tried a dd copy and it worked. It failed on the first attempt, but
 after running lsdvd, it worked for the whole disc, and mplayer played it.
 

What is happenning here is that lsdvd is cracking the css keys via
libdvdcss and caching the keys in ~/.dvdcss. If you move the image to
another computer, or try to read it as another user, the keys will
neeed to be cracked again.



 
 -- 
 Neil Bothwick
 
 Bother, said Pooh, as he connected at 300 bps.
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-08 Thread Grant

   That won't work on CSS scrambled discs. You'll copy the scrambled data
   but not the key.
 
  That's not true.  The CSS key is in the standard filesystem data, not
  in some subtrack data.

 You're right. I read this information some years ago in a normally
 reliable source, and saw no reason to doubt it as it made sense. bit I've
 just tried a dd copy and it worked. It failed on the first attempt, but
 after running lsdvd, it worked for the whole disc, and mplayer played it.


What is happenning here is that lsdvd is cracking the css keys via
libdvdcss and caching the keys in ~/.dvdcss. If you move the image to
another computer, or try to read it as another user, the keys will
neeed to be cracked again.


dvdbackup doesn't work on The Life of Mammals (and surely others)
and dd means bad portability.  Are there any other options for a full
backup?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-08 Thread Nick Rout

On 10/8/2006, Grant [EMAIL PROTECTED] wrote:



dvdbackup doesn't work on The Life of Mammals (and surely others)

and dd means bad portability.  Are there any other options for a full

backup?



perhaps there is some newfangled encryption on it. What version of

libdvdcss do you have? Perhaps upgrading to a later version?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-08 Thread Grant

dvdbackup doesn't work on The Life of Mammals (and surely others)

and dd means bad portability.  Are there any other options for a full

backup?



perhaps there is some newfangled encryption on it. What version of

libdvdcss do you have? Perhaps upgrading to a later version?


I'm using version 1.2.9 and it looks like that's the latest.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-07 Thread Nick Rout
On Saturday 07 October 2006 06:50, Grant wrote:
I think I'll stick with:
  
   dd if=/dev/dvd of=image.dvd
 
  That won't work on CSS scrambled discs. You'll copy the scrambled data
  but not the key. Instead, use vobcopy followed by growisofs.

 What about this (it's what I've been doing):

 lsdvd  dd if=/dev/dvd of=image.dvd

 Is there any advantage to creating an ISO filesystem out of the image
 if you aren't going to burn it?

yes. ease of transfer, keping everyting togther. still playable with xine 
dvd://path/to.iso

why are you naming it image.dvd instead of image.iso?

 Also, is there any way to compress 
 the image without doing any kind of transcoding or that type of
 reprocessing?


the mpeg streams on the dvd ARE compressed. thats what the mpeg codec does. 
You can try the usual suspects - zip, bzip etc, but you won't get far. 

programs that reduce the size of DVD9 so that they will fit on a DVD5 usually 
requantise the stream, I am not sure what that means, but it is much quicker 
than transcoding to another codec like xvid. xvid will, of course, give you a 
much smaller avi file. 

the analogy with flac is not really appropriate. flac is a lossless 
compression, you start with an uncompressed wav file and end up with a 
losslessly compressed audio file. A DVD is already lossy compressed to mpeg2, 
so it is not logical to make an analogy with flac. As I said, you can 
requantise, but of course you lose something...

 - Grant
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-07 Thread Neil Bothwick
On Fri, 6 Oct 2006 17:36:10 -0500, Boyd Stephen Smith Jr. wrote:

  That won't work on CSS scrambled discs. You'll copy the scrambled data
  but not the key.  
 
 That's not true.  The CSS key is in the standard filesystem data, not
 in some subtrack data.

You're right. I read this information some years ago in a normally
reliable source, and saw no reason to doubt it as it made sense. bit I've
just tried a dd copy and it worked. It failed on the first attempt, but
after running lsdvd, it worked for the whole disc, and mplayer played it.


-- 
Neil Bothwick

Bother, said Pooh, as he connected at 300 bps.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 October 2006 03:52, Nick Rout [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] {OT} dvdrip permissions error, alternative?':
 On Saturday 07 October 2006 06:50, Grant wrote:
 I think I'll stick with:
   
dd if=/dev/dvd of=image.dvd
  
   That won't work on CSS scrambled discs. You'll copy the scrambled
   data but not the key. Instead, use vobcopy followed by growisofs.
 
  What about this (it's what I've been doing):
 
  lsdvd  dd if=/dev/dvd of=image.dvd
 
  Is there any advantage to creating an ISO filesystem out of the image
  if you aren't going to burn it?

 yes. ease of transfer, keping everyting togther. still playable with
 xine dvd://path/to.iso

 why are you naming it image.dvd instead of image.iso?

  Also, is there any way to compress
  the image without doing any kind of transcoding or that type of
  reprocessing?

 the mpeg streams on the dvd ARE compressed. thats what the mpeg codec
 does. You can try the usual suspects - zip, bzip etc, but you won't get
 far.

 programs that reduce the size of DVD9 so that they will fit on a DVD5
 usually requantise the stream, I am not sure what that means, but it is
 much quicker than transcoding to another codec like xvid. xvid will, of
 course, give you a much smaller avi file.

Increasing the quantization increases the number of pixels represented by a 
single data element in the stream.  From what I understand, MPEG2 does 
very JPEG like compression, meaning that square groups of pixels with 
almost the same color will be stored as a single data element with the 
average color (and maybe some hinting).  Increasing the quantization 
further merges some of these groups together, resulting in both quality 
and size reductions.

 the analogy with flac is not really appropriate. flac is a lossless
 compression, you start with an uncompressed wav file and end up with a
 losslessly compressed audio file. A DVD is already lossy compressed to
 mpeg2, so it is not logical to make an analogy with flac.

Agreed.  There are a number of lossless video codecs out there ( 
http://en.wikipedia.org/wiki/List_of_codecs#Lossless_data_compression_2 ), 
though certainly none are in wide use.  I'd wager that since your are 
starting w/ an already compressed stream, converting to a lossless format 
would actually make the video larger.  With DVD it isn't practical to 
transfer uncompressed video, perhaps we might see some uncompressed video 
available with HD-DVD or Blu-ray.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpvDAZqg7hXk.pgp
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-07 Thread Grant

I think I'll stick with:
  
   dd if=/dev/dvd of=image.dvd
 
  That won't work on CSS scrambled discs. You'll copy the scrambled data
  but not the key. Instead, use vobcopy followed by growisofs.

 What about this (it's what I've been doing):

 lsdvd  dd if=/dev/dvd of=image.dvd

 Is there any advantage to creating an ISO filesystem out of the image
 if you aren't going to burn it?

yes. ease of transfer, keping everyting togther. still playable with xine
dvd://path/to.iso

why are you naming it image.dvd instead of image.iso?


dd doesn't actually create an ISO filesystem does it?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-07 Thread Nick Rout
On Sat, 7 Oct 2006 13:43:50 -0700
Grant [EMAIL PROTECTED] wrote:

  yes. ease of transfer, keping everyting togther. still playable with xine
  dvd://path/to.iso
 
  why are you naming it image.dvd instead of image.iso?
 
 dd doesn't actually create an ISO filesystem does it?
 
 - Grant

dd copies bit for bit. you copy an ISO filesystem to another place, you
get an ISO file system.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Grant

What's the error?
I've run dvdrip for a long time and don't get any errors.


Embarassing, but I needed to change the CHANGE_ME paths to eliminate the errors.


 I'm trying to make backups of my DVDs that are smaller than the full
 8GB but don't lose any noticeable audio or video quality. I'd be
 happy to just select the audio and video track I want and rip them
 without any transcoding. Would anyone recommend a program other than
 dvdrip for this? I would use mplayer's mencode, but mplayer can't
 play my The Life of Mammals DVD so I don't think mencode will work.
 I believe that DVD is copy protected.

dvd9to5. If you don't put a blank dvd into the drive it'll leave a DVD image
under 4.7GB.

I do my DVDs with both dvd9to5 and dvdrip (at 192Kbps MP3 audio, 1500Kbps
video) and the quality is all but perfect (1800Kbps video should easily clear
up the very very small lose).


I've been experimenting with dvdrip and it seems like if I want
perfect image quality I'll only save about half the space and the
process is such a mess.  It's time-consuming and lossy.  I think I'll
stick with:

dd if=/dev/dvd of=image.dvd

and pay a $2 storage fee per movie instead of $1.  That's perfect
quality, all the features, and full menus.  I could see it if you're
trying to fit a movie on a CD or a single-layer DVD, but it doesn't
make sense to me for hard disk backups.

I wish there was something like FLAC for video so you could make a
perfect backup and the only option to be concerned with would be time
vs. space.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Neil Bothwick
On Fri, 6 Oct 2006 09:59:51 -0700, Grant wrote:

  I think I'll stick with:
 
 dd if=/dev/dvd of=image.dvd

That won't work on CSS scrambled discs. You'll copy the scrambled data
but not the key. Instead, use vobcopy followed by growisofs.



signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Grant

  I think I'll stick with:

 dd if=/dev/dvd of=image.dvd

That won't work on CSS scrambled discs. You'll copy the scrambled data
but not the key. Instead, use vobcopy followed by growisofs.


What about this (it's what I've been doing):

lsdvd  dd if=/dev/dvd of=image.dvd

Is there any advantage to creating an ISO filesystem out of the image
if you aren't going to burn it?  Also, is there any way to compress
the image without doing any kind of transcoding or that type of
reprocessing?

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Neil Bothwick
On Fri, 6 Oct 2006 10:50:27 -0700, Grant wrote:

  That won't work on CSS scrambled discs. You'll copy the scrambled data
  but not the key. Instead, use vobcopy followed by growisofs.  
 
 What about this (it's what I've been doing):
 
 lsdvd  dd if=/dev/dvd of=image.dvd

Does it work with scrambled DVDs? The CSS key is supposed to be stored in
a separate area that is not available on recordable DVDs.

 Is there any advantage to creating an ISO filesystem out of the image
 if you aren't going to burn it?

Not really, the likes of mplayer can play from a DVD image directory as
easily as an ISO image.


-- 
Neil Bothwick

You cannot really appreciate Dilbert unless you've read it in the
original Klingon.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Grant

  That won't work on CSS scrambled discs. You'll copy the scrambled data
  but not the key. Instead, use vobcopy followed by growisofs.

 What about this (it's what I've been doing):

 lsdvd  dd if=/dev/dvd of=image.dvd

Does it work with scrambled DVDs? The CSS key is supposed to be stored in
a separate area that is not available on recordable DVDs.


I'm not dealing with recordable DVDs at all.  I'm making backups of my
store-bought DVDs to my hard drive.

I'm not totally clear on how scrambled DVDs work, but I can tell you
that the dd command alone doesn't work, but adding lsdvd at the front
does.  Also, my The Life of Mammals DVD won't play back in mplayer
or totem, but VLC plays it fine either straight from the DVD or from
the hard drive after lsdvd+dd.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Boyd Stephen Smith Jr.
On Friday 06 October 2006 11:59, Grant [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] {OT} dvdrip permissions error, alternative?':
 dd if=/dev/dvd of=image.dvd

This is it's a standard store-bought DVD, this will end up copying the 
encrypted (CSS) data to your HD, which will add CPU overhead at play time.

dvdbackup (in portage) does roughly the same thing, but decrypts once, at 
rip time.  It does no transcoding so everything is at full DVD quality 
(and size). It preserves all menus in mirror (-M) mode, but can also be 
used to rip individual titles.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpIVbiSwVR9q.pgp
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Boyd Stephen Smith Jr.
On Friday 06 October 2006 12:27, Neil Bothwick [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] {OT} dvdrip permissions error, alternative?':
 On Fri, 6 Oct 2006 09:59:51 -0700, Grant wrote:
  dd if=/dev/dvd of=image.dvd

 That won't work on CSS scrambled discs. You'll copy the scrambled data
 but not the key.

That's not true.  The CSS key is in the standard filesystem data, not in 
some subtrack data.  Before I found dvdbackup I used the method (with a 
few modifications, like the conv=noerror option and adding a call to 'pv' 
in the pipline to give myself a progress bar) exclusively and rarely ran 
into a disk that had issues.  Those disks could be ripped with k3b's copy 
DVD image... function, which I guess uses the equivalent of cd-paranoia 
for DVDs, and also retries errors (like conv=noerror), but still just 
gives a .iso as output.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpAwIIwLp0Xp.pgp
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Grant

 dd if=/dev/dvd of=image.dvd

This is it's a standard store-bought DVD, this will end up copying the
encrypted (CSS) data to your HD, which will add CPU overhead at play time.

dvdbackup (in portage) does roughly the same thing, but decrypts once, at
rip time.  It does no transcoding so everything is at full DVD quality
(and size). It preserves all menus in mirror (-M) mode, but can also be
used to rip individual titles.


I have a couple problems with dvdbackup.

It doesn't seem to have an option for mirroring the entire DVD
structure into a single file like dd does, although I suppose a
subsequent command could be used to create an ISO.

The other thing is, it doesn't seem to do so well with my The Life of
Mammals DVD.  dd rips it just fine, but VLC is the only program that
will play it.  When mirrored with dvdbackup, a couple of Error
cracking CSS key messages are displayed in the terminal, and although
the process does finish, even VLC won't play the image.

- Grant
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-06 Thread Boyd Stephen Smith Jr.
On Friday 06 October 2006 20:54, Grant [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] {OT} dvdrip permissions error, alternative?':
   dd if=/dev/dvd of=image.dvd
  This is it's a standard store-bought DVD, this will end up copying the
  encrypted (CSS) data to your HD, which will add CPU overhead at play
  time.
 
  dvdbackup (in portage) does roughly the same thing, but decrypts once,
  at rip time.
 I have a couple problems with dvdbackup.

 It doesn't seem to have an option for mirroring the entire DVD
 structure into a single file

That's true, but xine, mplayer, and gstreamer all will play from a 
directory as fast or faster then they will play from an ISO.  I too prefer 
the single-file layout, but it's more important for me to have the CSS 
removed.

 The other thing is, it doesn't seem to do so well with my The Life of
 Mammals DVD.  When mirrored with dvdbackup, a couple of Error
 cracking CSS key messages are displayed in the terminal.

Never seen that one, but I'll bet that's a limitation of DeCSS, not 
dvdbackup.  I've sure VLC (when playing the dd image) encounters the same 
issues, it is just more forgiving of dropped or otherwise unavailable data 
in the stream than other clients.  I'm not sure what dvdbackup writes when 
it can't DeCSS. It is probably all zeros or complete trash.  In either of 
those cases it's not surprising all your video players choke on it, even 
if they can handle the case of missing data.

In any case, it makes sense for you to use something that doesn't perform 
the DeCSS at rip time and instead have VLC handle the lack of data each 
time you play it, at least for that DVD.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpIaoGOBevCm.pgp
Description: PGP signature


Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-05 Thread Hemmann, Volker Armin
On Thursday 05 October 2006 18:57, Grant wrote:
 When I click on RIP Title in dvdrip, I get a permission denied error
 regarding Project.pm.  All of the other options in the other tabs are
 grayed out and unmodifiable.  If I try to run the program as root, it
 says it cannot open the display.  Does anyone know what's wrong here?
 I've tried amd64 and ~amd64 versions.

 I'm trying to make backups of my DVDs that are smaller than the full
 8GB but don't lose any noticeable audio or video quality.  I'd be
 happy to just select the audio and video track I want and rip them
 without any transcoding.  Would anyone recommend a program other than
 dvdrip for this?  I would use mplayer's mencode, but mplayer can't
 play my The Life of Mammals DVD so I don't think mencode will work.
 I believe that DVD is copy protected.

 - Grant

stop running it as root.

correct the permissions on the /dev/ files and the dir you try to write too.

Make sure, the user is in the right groups.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-05 Thread Meino Christian Cramer
From: Grant [EMAIL PROTECTED]
Subject: [gentoo-user] {OT} dvdrip permissions error, alternative?
Date: Thu, 5 Oct 2006 09:57:03 -0700

 When I click on RIP Title in dvdrip, I get a permission denied error
 regarding Project.pm.  All of the other options in the other tabs are
 grayed out and unmodifiable.  If I try to run the program as root, it
 says it cannot open the display.  Does anyone know what's wrong here?
 I've tried amd64 and ~amd64 versions.
 
 I'm trying to make backups of my DVDs that are smaller than the full
 8GB but don't lose any noticeable audio or video quality.  I'd be
 happy to just select the audio and video track I want and rip them
 without any transcoding.  Would anyone recommend a program other than
 dvdrip for this?  I would use mplayer's mencode, but mplayer can't
 play my The Life of Mammals DVD so I don't think mencode will work.
 I believe that DVD is copy protected.
 
 - Grant
 -- 
 gentoo-user@gentoo.org mailing list
 

Hi Grant,

 Try the following:

 As user (not as root) become root with sux not with su.
 Or as user gove root access permission to your X server with
 xhost (- see manpage).

 I f this does not help:
 sux to root and check the DISPLAY environment variable, whether it
 is correctly set. Should something like  :0.0 or localhost:0.0.

 The above are fixing (may be) the symptoms, not the cause of the
 problem.

 These are comeing from the wrong permissions set for the file
 Project.pm .

 ...but when it is emerged, it should be correctly set.

 At this point I have no clue, whether wrong permissions are given 
 to that file/to those files of package.

 Only my two cents, your currency may vary...

 HTH and keep hacking!
 mcc


 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} dvdrip permissions error, alternative?

2006-10-05 Thread Mike Williams
On Thursday 05 October 2006 17:57, Grant wrote:
 When I click on RIP Title in dvdrip, I get a permission denied error
 regarding Project.pm.  All of the other options in the other tabs are
 grayed out and unmodifiable.  If I try to run the program as root, it
 says it cannot open the display.  Does anyone know what's wrong here?
 I've tried amd64 and ~amd64 versions.

What's the error?
I've run dvdrip for a long time and don't get any errors.

 I'm trying to make backups of my DVDs that are smaller than the full
 8GB but don't lose any noticeable audio or video quality.  I'd be
 happy to just select the audio and video track I want and rip them
 without any transcoding.  Would anyone recommend a program other than
 dvdrip for this?  I would use mplayer's mencode, but mplayer can't
 play my The Life of Mammals DVD so I don't think mencode will work.
 I believe that DVD is copy protected.

dvd9to5. If you don't put a blank dvd into the drive it'll leave a DVD image 
under 4.7GB.

I do my DVDs with both dvd9to5 and dvdrip (at 192Kbps MP3 audio, 1500Kbps 
video) and the quality is all but perfect (1800Kbps video should easily clear 
up the very very small lose).

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list