ADAM'S WEB PRESENCE

13 May 2008

Extract Chapters from a DVD

Filed under: Homemade Creations, Products — adam @ 11:07 pm

I have this video camera, a Sony DVD201E which records straight to a mini-DVD disc. I want to copy the recorded video onto my PC but the software which comes with the camera is pretty awful. Besides it is Windows-only and I do prefer to use Linux.

So I have made a little Linux app which can extract scenes from a DVD disc. The camera records each scene as a DVD “chapter”. My application reads a DVD disc and copies each chapter into a separate MPEG file. I’ll publish it here in case anyone else finds it useful.

Downloading and Compiling

I’m just releasing this as source code at the moment. I have tested it under Ubuntu 7.10 but It will probably work fine on any UNIX-based system. You can download it here:

DvdChapterExtract-1.2.tar.bz2 (16k)

You will need libdvdread and libavformat before you compile. So install those:

sudo apt-get install libdvdread-dev libavformat-dev

Next unpack and compile:

tar jxf DvdChapterExtract-1.2.tar.bz2

cd DvdChapterExtract/Release

make all

Usage

1. You need to record your discs in Video mode, not “VR” mode. VR is a Sony proprietary format which cannot be read in a regular DVD drive.

2. After recording your disc, you must Finalize it in-camera.

3. Put the disc into the DVD drive on your PC.

4. Launch the DVD chapter extract tool like so (assuming /dev/scd0 is the name of your DVD drive).

./DvdChapterExtract -d /dev/scd0

It will extract each chapter into a separate file called chapter001.mpeg, chapter002.mpeg and so on. These can be loaded directly into any video editing software.

The camera also tags each chapter with some meta-data such as the date and time the scene was recorded. I have not yet figured out how to read that data.

1 Comment »

  1. Comment by snv — 31 October 2008 @ 10:02 pm

    Hello,

    I found program that could extract chapters from DVD-VR format,
    it decodes time, names chapters with number + date and time.
    link:
    http://www.pixelbeat.org/programs/dvd-vr/
    I tried your program with hard-drive copy of DVD-VIDEO and it crashed.

    –snv

RSS feed for comments on this post. TrackBack URI

Leave a comment


Powered by WordPress