On 11 Aug 2009, at 05:43, Stroller wrote:
...
So I tried with a different disk - take a look at the attached
cloning.txt - and dd fails repeatedly at 770kB. Then I run scandvd
on the disk and after that dd works perfectly, "8027521024 bytes
(8.0 GB) copied". scandvd is a tool which is packaged with undvd and
it runs mplayer (I'm sure) on the disk, then shows the number of
tracks on the disk in a pretty format.
Sorry, here's the promised attachment.
~ $ cd /mnt/space/DVDrip/
/mnt/space/DVDrip $ ls
Day Of The Triffids Heat
/mnt/space/DVDrip $ mkdir Narc
/mnt/space/DVDrip $ cd Narc/
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 4.35681 s, 177 kB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.469213 s, 1.6 MB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.440263 s, 1.7 MB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.46938 s, 1.6 MB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.457693 s, 1.7 MB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.450244 s, 1.7 MB/s
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
dd: reading `/dev/cdrom': Input/output error
1504+0 records in
1504+0 records out
770048 bytes (770 kB) copied, 0.455701 s, 1.7 MB/s
/mnt/space/DVDrip/Narc $ scandvd
{( --- scandvd 0.7.5 --- )}
* Scanning DVD for titles with lsdvd...
01 length: 00:00:00 audio: en en en en en en en en subs: xx xx xx xx xx xx xx
xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
02 length: 00:13:20 audio: en subs: en
03 length: 00:09:51 audio: en subs: en
04 length: 01:40:56 audio: en en subs: en en
05 length: 00:19:26 audio: en subs: en
06 length: 00:12:57 audio: en subs: en
07 length: 00:02:26 audio: en
To watch a title:
mplayer dvd://01 -alang en -slang en/off
To rip titles:
undvd -t 01,02,03 -a en -s en/off
/mnt/space/DVDrip/Narc $ dd if=/dev/cdrom of=disc.iso
15678752+0 records in
15678752+0 records out
8027521024 bytes (8.0 GB) copied, 1352.31 s, 5.9 MB/s
/mnt/space/DVDrip/Narc $
/mnt/space/DVDrip/Narc $ mplayer dvd://4 -dvd-device disc.iso -ao null -vo png
-ss 600 -frames 1
MPlayer SVN-r29463-4.1.2 (C) 2000-2009 MPlayer Team
Playing dvd://4.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
There are 7 titles on this DVD.
There are 1 angles in this DVD title.
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000147
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001b3
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00013507
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x000135e2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0001362f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0005e0b0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0005e0fd
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x0009551b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00095568
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x002f2cc9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x002f2d16
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x0035f7d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x0035f821
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003a8051
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003a809e
libdvdread: Elapsed time 0
libdvdread: Found 7 VTS's
libdvdread: Elapsed time 0
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: ac3 (stereo) language: en aid: 129.
number of audio channels on disk: 2.
subtitle ( sid ): 0 language: en
subtitle ( sid ): 1 language: en
number of subtitles on disk: 2
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9000.0 kbps (1125.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x88861a0]using unscaled yuv420p -> bgr24 special converter
VO: [png] 720x576 => 1024x576 BGR 24-bit
[VO_PNG] Warning: compression level set to 0, compression disabled!
[VO_PNG] Info: Use -vo png:z=<n> to set compression level from 0 to 9.
[VO_PNG] Info: (0 = no compression, 1 = fastest, lowest - 9 best, slowest compre
ssion)
png: . - Output directory already exists and is writable.
A: 600.4 V: 600.5 A-V: -0.082 ct: 0.104 4/ 4 ??% ??% ??,?% 0 0
Exiting... (End of file)
/mnt/space/DVDrip/Narc $