You are not logged in.

#1 2011-03-16 09:12:25

mole
Member
Registered: 2007-02-17
Posts: 21

k9copy output corrupt

I use k9copy to backup the main title (without menu) of video DVDs. Since approximately 2 weeks it stopped working properly: While the time elapsed is displayed correctly, the total time soon drops to 0:0:0 (later counting some seconds) and percentage complete stays at about 3%. It does continue anyway, but the DVD structure created is corrupt: It is very small (1-2GB), has reduced running time and some chapters are shortened:

$ lsdvd -c /path/to/orig/
Title: 01, Length: 01:21:35.210 Chapters: 13, Cells: 13, Audio streams: 08, Subpictures: 32
        Chapter: 01, Length: 00:10:26.000, Start Cell: 01
        Chapter: 02, Length: 00:10:17.020, Start Cell: 02
        Chapter: 03, Length: 00:10:10.330, Start Cell: 03
        Chapter: 04, Length: 00:09:41.370, Start Cell: 04
        Chapter: 05, Length: 00:04:26.010, Start Cell: 05
        ...
$ lsdvd -c /path/to/copy/
Title: 01, Length: 00:45:22.360 Chapters: 12, Cells: 12, Audio streams: 02, Subpictures: 01
        Chapter: 01, Length: 00:01:58.320, Start Cell: 01
        Chapter: 02, Length: 00:01:16.060, Start Cell: 02
        Chapter: 03, Length: 00:10:10.330, Start Cell: 03
        Chapter: 04, Length: 00:09:41.370, Start Cell: 04
        Chapter: 05, Length: 00:01:39.280, Start Cell: 05

Playing the copied structure with xine dvd://path/to/copy/ shows good quality in the first few minutes, but then it suddenly gets worse, showing large blocks like a video created at very, very low bitrate.

I tried 6 DVDs (each a different movie, not a series using some strange copy protection, as one might think) - same result. I created an okay 1:1 copy with dvdbackup, then ran k9copy on it - same result. As a workaround I am using dvdshrink/wine now, which worked without any problems so far (same 6 DVDs), but I'd really prefer to keep using k9copy, which never showed such behaviour before. My first assumption was that the problem was due to an update of kdebase-runtime, so I downgraded to 4.6.0-1 - same result. I also recompiled k9copy using ABS (tiny patch required) - same result. What else could I try?

Some k9copy settings (not changed lately):

DVD size: 4470 MB (or 9000 MB, if main title fits on single-sided DVD)
[x] use dvdAuthor for copy without menus
[ ] quick scan
DVD read ahead: default
[ ] Keep original menus

Offline

#2 2011-03-23 19:35:19

grof
Member
Registered: 2011-03-23
Posts: 2

Re: k9copy output corrupt

I do not know, but k9copy don't work for me too.
I'm using KDE4.6.1 and k9copy v2.3.6, using Arch without HAL.

DVD is correctly recognized. I select title for ripping, but after that nothing happened. (no ripping preview window)
Only message that job is done.

All dependencies and backends satisfied...

Offline

#3 2011-03-24 00:04:10

mole
Member
Registered: 2007-02-17
Posts: 21

Re: k9copy output corrupt

Thank you for your reply. I can confirm that k9copy may not work at all. I installed and tested it on two other computers, both running Arch Linux, one of them not updated for quite a while, the other up to date (but using the testing repo). On both of them k9copy immediately informs that the job is done, while the output directory VIDEO_TS is empty. Really strange, I didn't find the reason for that either.
I remember that k9copy had a tendency to just skip parts of the DVD whenever there is a read error, but this rarely happened, while now only one of numerous attempts created a copy that actually was complete. Choosing the option "skip bad sectors" didn't help. I also was thinking about HAL, which I removed two months ago, but this didn't have a negative effect for a month, if any.

Last edited by mole (2011-03-24 00:05:22)

Offline

#4 2011-03-24 17:13:53

grof
Member
Registered: 2011-03-23
Posts: 2

Re: k9copy output corrupt

I resolved this problem on my Arch.

Simply delete K9Copy config file from .kde4 directory:

rm ~/.kde4/share/config/K9Copy

and start K9Copy again.

It's work for me.

Offline

#5 2011-04-05 15:16:30

mole
Member
Registered: 2007-02-17
Posts: 21

Re: k9copy output corrupt

Deleting that file did not help in my case. K9copy then switches to default options, e.g. "Keep original menus", which I then disabled again. Meanwhile, I found out that the shortening of chapters is due to k9play crashing, which sometimes, but not always, brings up a dialog for reporting a bug. I recompiled libpng, k9copy and qt with debugging enabled as described here, but according to the dialog k9copy and qt still lack debugging capabilities, so I did not report a bug so far.

Today I focused on one DVD which I had copied 1:1 on hard disk using dvdbackup. I ran k9copy two times on that copy and both times the same five chapters were shortened, but at different positions. Now I selected only one single chapter of the main movie to be copied and started k9copy from a terminal to see the comand it executes.

/usr/bin/dvdauthor -x /path/to/output/k9aUV4453.xml

I made a backup of the k*.{xml,yuv,inj} files while k9copy was running and looked into the xml file, where each chapter is created separately by k9play:

<vob file="/usr/bin/k9play --play --input /path/to/input --dvdtitle 12 --chapter 1 --cell 1  --audiofilter 1,2  --subpicturefilter 1,2 --vampsfactor 1.00 --inputsize 361490432 --chaptersize 361490432  --initstatus  --inject /path/to/output/k9vGz4453.inj --totalsize 361492480 --dvdsize 4613734400 |" chapters="0"/>

When that command is executed manually the crash becomes visible

$ /usr/bin/k9play --play --input /path/to/input/ --dvdtitle 12 --chapter 1 --cell 1  --audiofilter 1,2  --subpicturefilter 1,2 --vampsfactor 1.00 --inputsize 361490432 --chaptersize 361490432  --initstatus  --inject k9vGz4453.inj --totalsize 361492480 --dvdsize 4613734400 > out.mpg
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/home/user/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fd0000. Regions: 2
INFOPOS: 134809 2287116KCrash: Application 'k9play' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
ERR:Error getting next block: Error reading from DVD.
QThread: Destroyed while thread is still running
Unable to start Dr. Konqi

I tried that several times, but it almost always crashes at different positions. Omitting subpictures did not help either. When I put strace before k9play and search for error messages in the ouput I get

$ grep -i -E "error|warn|crash|fatal" strace_output
open("/lib/libgpg-error.so.0", O_RDONLY) = 8
futex(0x88bd414, FUTEX_WAIT_PRIVATE, 41, NULLKCrash: Application 'k9play' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
write(2, "ERR:Error getting next block: Er"..., 54ERR:Error getting next block: Error reading from DVD.
write(2, "<unknown>: Fatal IO error 9 (Bad"..., 68<unknown>: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
write(2, "\n** (<unknown>:4888): WARNING **"..., 60
** (<unknown>:4888): WARNING **: Serious fd usage error 16
write(2, "\n** (<unknown>:4888): WARNING **"..., 60
** (<unknown>:4888): WARNING **: Serious fd usage error 14

Offline

Board footer

Powered by FluxBB