Date: Thu, 1 Jul 2004 10:57:12 +0200 (CEST) From: Cordula's Web <cpghost@cordula.ws> To: freebsd-questions@freebsd.org Subject: Reading a DVD with a scratch Message-ID: <20040701085712.CA2AF4AC9C@fw.farid-hajji.net>
next in thread | raw e-mail | index | archive | help
Hi, I've got a DVD with a 1.2cm scratch nearly parallel to the track. This doesn't prevent mounting, and mplayer can play all other .vob files. The scratch happens to be in the middle of a single .vob file, so when mplayer reaches it, it freezes and a lot of READ BIG messages appear on the console (as expected). Now the question: is there a way to read up to the scratch, seek forward to skip that region, and then to continue reading? The idea is to dd as much of the .vob file as possible up to the scratch; skip (how much? how to find out? reading the file backwards?) then dd the rest of the file, and cat both parts. The problem probably boils down to: how can a process detect beginning and end of the scratch, without freezing in read(2)? Any ideas how to do it? Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040701085712.CA2AF4AC9C>