LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Is there a way to copy & play a DVD from my hard disk? (https://www.linuxquestions.org/questions/slackware-14/is-there-a-way-to-copy-and-play-a-dvd-from-my-hard-disk-888812/)

Robert.Thompson 06-29-2011 08:46 AM

Quote:

Originally Posted by Diantre (Post 4398581)
I use readcd to check for faulty media:

Code:

readcd dev=/dev/dvd f=/dev/null

Hi Diantre:

Here is my output:

Code:

bash-4.1# readcd dev=/dev/dvd f=/dev/null
Read  speed:  4234 kB/s (CD  24x, DVD  3x, BD  0x).
Write speed:    0 kB/s (CD  0x, DVD  0x, BD  0x).
Capacity: 1836688 Blocks = 3673376 kBytes = 3587 MBytes = 3761 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (3,0,0) disk to file '/dev/null'
end:  1836688
readcd: Input/output error. read_g1: scsi sendcmd: no error
CDB:  28 00 00 01 0E C0 00 00 40 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 02 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x02 Qual 0x00 (no seek complete) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 7.044s timeout 40s
readcd: Input/output error. Cannot read source disk
readcd: Retrying from sector 69312.
.................................~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~
readcd: Input/output error. Error on sector 69344 not corrected. Total of 1 errors.

I quess this means my disk is broken, right?

Thanks,

Daedra 06-29-2011 10:08 AM

Quote:

Originally Posted by Robert.Thompson (Post 4399098)
Hi Daedra:

I installed libdvddcss a long time ago, so it's there.

What commands do I use to rebuild k3b?

Thanks,


Here is the slackbuild I use. I used Pat's as a template and just edited a few lines. http://www.mostlyslack.com/slackstuf...lds/k3b.tar.gz

Download the source from here http://downloads.sourceforge.net/pro...mirror=surfnet

just untar k3b.tar.gz, download the source and save it in the k3b directory then run ./k3b.Slackbuild and the finished package will be waiting for you in /tmp.

You can also install ffmpeg and other dependencies too that k3b can take advantage off. If you install all the dependencies k3b becomes quite a feature rich program. Just check the configure script and it will tell you which ones it finds and which ones it didn't. Then you can go to SBo and install the missing ones and rebuild k3b again till you get them all.

Robert.Thompson 06-29-2011 10:42 AM

Quote:

Originally Posted by Mark Pettit (Post 4398315)
OK - you have a golf training video. This is a perfect candidate for ripping. Assuming no surface defects (as suggested by others), use Handbrake (get the one from AlienBobs restricted packages), and then rip it to a mkv file. This way, you can use your vlc/mplayer to watch it with far better control than from the original DVD, which has to spin up and down all the time, and jumping around is just pain awful with slow media.

Hi Mark:

I made sure that I met all the dependencies first and then downloaded and tried to install Alien Bob's handbrake.SlackBuild but got the following error msg:

Code:

<snip>

make[3]: Entering directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
make[4]: Entering directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
make[3]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
make[2]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
make[1]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.4/build/gtk'
cp: cannot stat `BUILD': No such file or directory
cat: /home/rob/Downloads/slack-desc: No such file or directory
handbrake.SlackBuild.txt FAILED at line 333

What did I do wrong?

Thanks for any assistance,

H_TeXMeX_H 06-29-2011 11:52 AM

I'm pretty sure the disk is messed up. Again check for scratches or get a refund.

Alien Bob 06-29-2011 01:16 PM

Quote:

Originally Posted by Robert.Thompson (Post 4399228)
Hi Mark:

I made sure that I met all the dependencies first and then downloaded and tried to install Alien Bob's handbrake.SlackBuild

I made sure to fix my omission and upload the handbrake 0.9.5 stuff that I had ready for some time but misplaced:

http://taper.alienbase.nl/mirrors/pe...lds/handbrake/

The handbrake 0.9.5 package does not have any external dependencies anymore (you have to have yasm installed in order to compile it, but yasm is part of Slackware since 13.37).


Eric

Robert.Thompson 06-29-2011 02:04 PM

Quote:

Originally Posted by Alien Bob (Post 4399372)
I made sure to fix my omission and upload the handbrake 0.9.5 stuff that I had ready for some time but misplaced:

http://taper.alienbase.nl/mirrors/pe...lds/handbrake/

The handbrake 0.9.5 package does not have any external dependencies anymore (you have to have yasm installed in order to compile it, but yasm is part of Slackware since 13.37).


Eric

Hi Eric:

I must be doing something wrong. I got this error msg after using the link that you provived:

Code:


<snip>


 : Traceback (most recent call last):
  :  File "/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/../gtk/src/makedeps.py", line 4, in <module>
  :    import plistlib
  : ImportError: No module named plistlib
  : gmake[3]: *** [widget.deps] Error 1
  : gmake[3]: *** Waiting for unfinished jobs....
  : mv -f .deps/presets.Tpo .deps/presets.Po
  : gmake[3]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk/src'
  : gmake[2]: *** [all-recursive] Error 1
  : gmake[2]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk'
  : gmake[1]: *** [all] Error 2
  : gmake[1]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk'
  : gmake: *** [gtk.build] Error 2
-------------------------------------------------------------------------------
time end: Wed Jun 29 18:56:17 2011
duration: 9 minutes, 50 seconds (590.09s)
result: FAILURE (code 2)
-------------------------------------------------------------------------------
Build is finished!
You may now cd into ./build and examine the output.
make: *** No targets specified and no makefile found.  Stop.
/bin/mkdir -p /tmp/build/package-handbrake/usr/bin/
/bin/cp ./HandBrakeCLI /tmp/build/package-handbrake/usr/bin/HandBrakeCLI
make -C ./gtk/ prefix=/usr install
make[1]: Entering directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk'
Making install in src
make[2]: Entering directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk/src'
gcc -o create_resources create_resources-native.o plist-native.o values-native.o -pthread -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 
python /tmp/build/tmp-handbrake/HandBrake-0.9.5/build/../gtk/src/makedeps.py
Traceback (most recent call last):
  File "/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/../gtk/src/makedeps.py", line 4, in <module>
    import plistlib
ImportError: No module named plistlib
make[2]: *** [widget.deps] Error 1
make[2]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/build/tmp-handbrake/HandBrake-0.9.5/build/gtk'
make: *** [gtk.install] Error 2
handbrake.SlackBuild.txt FAILED at line 307

Any assistance would be appreciated.

Thanks,

Alien Bob 06-29-2011 02:13 PM

Code:

ImportError: No module named plistlib
Then your python is broken. Did you do a full Slackware install? Are you running a real Slackware?

Also, why don't you just install the package I provide? It's not like you should be afraid of downloading and installing something I built... lots of packages I built went straight into the original slackware64.

Eric

Robert.Thompson 06-29-2011 02:55 PM

Quote:

Originally Posted by Alien Bob (Post 4399441)
Code:

ImportError: No module named plistlib
Then your python is broken. Did you do a full Slackware install? Are you running a real Slackware?

Also, why don't you just install the package I provide? It's not like you should be afraid of downloading and installing something I built... lots of packages I built went straight into the original slackware64.

Eric

Sorry Eric, it was not my intention cause you trouble.

To the best of my knowledge, and that is not much, I am running a full Slackware 13.37 system - I was running current until current became 13.37, then I switched mirrors.

The reason why I was using handbreak.SlackBuild is I thought that was what I was suppose to do, guess not. Adding packages/software to Slackware confuses the hell out of me, obviously.

I went back to the link that you provided and downloaded the build - it installed perfectly.

I used sbopkg to get a new python but there are so many python apps I don't know which one I should download.

Anyway, sorry for wasting your time and thanks for you help.

Alien Bob 06-29-2011 03:05 PM

No, you did not cause me trouble Robert, nor did you waste my time. I post these replies on my own free will ;-)

It's just that some people think that every Slackware package should be compiled by hand... and that it is somehow "unworthy" to use ready-built binary packages. You have to know your sources, that is true: don't just trust anyone's packages but check the packager's credibility in the community.
I think I can safely say that you can trust my packages.

Slackware is not a "from source" distribution like Gentoo. It is perfectly OK to install a package. It is equally fine to grab the sources and a SlackBuild script, and compile that package yourself. But correctly compiling software depends on so many factors where the process can fail that it is sometimes not worth the trouble. I provide my SlackBuild scripts as a service, and for those who care to read them, as a learning experience, but essentially it's the packages that I provide.
Try compiling LibreOffice... it will take a large part of a day to finish. There are other examples of cumbersome builds. And if you do not care about the compilation experience but just need that package... well then, go ahead and download/install ! There is nothing "unworthy" about that. Nobody compiles all of Slackware either, just to run it.

Eric

Robert.Thompson 06-29-2011 03:13 PM

Thanks to:
  1. H_TexMex_H
  2. dive
  3. MarkPettit
  4. Woodsman
  5. saulegoode
  6. Daedra
  7. dugan
  8. gorilus
  9. frankbell
  10. jefro
  11. Diantre
  12. AlienBob

Edit June 30, 2011: After installing Eric's handbreak package, I used it to make a copy of the 'defective' DVD on my hard disk - the copy works perfectly when opened with VLC. Go figure.


Marking as SOLVED.


All times are GMT -5. The time now is 12:31 AM.