| 1 | # libdvdread |
| 2 | |
| 3 | **libdvdread** is a cross-platform library for simple navigation of DVDs. |
| 4 | |
| 5 | It supports multimedia DVDs: DVD-Video and DVD-Audio. |
| 6 | |
| 7 | It's been in use for more than 20 years to support any time of Disc. |
| 8 | |
| 9 | ## Goals and features |
| 10 | |
| 11 | It focuses on DVD-Video and DVD-Audio; it does not support DVD menus, but |
| 12 | provides the low-level access to those discs and the DVD structures. |
| 13 | |
| 14 | Written in C, cross-platform, it gives low-level access to DVD structures. |
| 15 | |
| 16 | It works well in conjunction with ***libdvdnav*** *(menus)* and ***libdvdcss*** *(cipher)*. |
| 17 | |
| 18 | ## Where does it come from? |
| 19 | |
| 20 | This library is based on a lot of code and expertise from the **Ogle project**. |
| 21 | **Ogle** was the first DVD player who implemented **free DVD navigation**. The |
| 22 | **libdvdread** developers wish to express their gratitude to the Ogle people |
| 23 | for all the valuable research work they have done. |
| 24 | |
| 25 | Initially, the dvdnav code was part of a plugin to the xine media player |
| 26 | called xine-dvdnav. Later on, the DVD VM specific code was split |
| 27 | from xine-dvdnav and went into the first version of libdvdnav. |
| 28 | |
| 29 | Then, it was forked, and forked again on MPlayer repositories. |
| 30 | libdvdnav and libdvdread were merged, and then split again. |
| 31 | |
| 32 | ## Where is it now? |
| 33 | |
| 34 | Libdvdread is hosted [here](https://code.videolan.org/videolan/libdvdread). |
| 35 | |
| 36 | Libdvdnav is hosted [here](https://code.videolan.org/videolan/libdvdnav). |
| 37 | |
| 38 | You can find more information [here](https://www.videolan.org/developers/libdvdnav.html) |
| 39 | |
| 40 | Please report bugs to the developers mailinglist at |
| 41 | [dvdnav mailing list](https://mailman.videolan.org/listinfo/libdvdnav-devel) |
| 42 | |
| 43 | ## License |
| 44 | |
| 45 | **Libdvdread** is completely licensed under GPLv2/v3. You may use it at wish within the |
| 46 | bounds of this license. See the file [COPYING](https://code.videolan.org/videolan/libdvdread/-/blob/master/COPYING) for a copy of the GPL. |
| 47 | |
| 48 | ## Using libdvdread |
| 49 | |
| 50 | A detailed description of DVD structures is available [here](http://www.mpucoder.com/dvd/) |
| 51 | |
| 52 | All documentation is also accessible [here](http://dvdnav.mplayerhq.hu/#docs) |
| 53 | |
| 54 | ## Deciphering disks |
| 55 | |
| 56 | **Libdvdread** does not do any decryption of the CSS algorithm. This task can be delegated to **libdvdcss**. |
| 57 | |
| 58 | Install *libdvdcss* from source or from your distribution (*libdvd-pkg*) to play full DVDs, |
| 59 | if your country allows this to work legally. |
| 60 | |
| 61 | Note that *libdvdnav* is useful for interactive DVD menus. |
| 62 | |
| 63 | ## CoC |
| 64 | |
| 65 | The [VideoLAN Code of Conduct](https://wiki.videolan.org/Code_of_Conduct/) applies to this project. |
| 66 | |
| 67 | # Compile |
| 68 | |
| 69 | 1. Install [Meson](https://mesonbuild.com/) (0.60 or higher), [Ninja](https://ninja-build.org/) |
| 70 | 2. Run `mkdir build && cd build` to create a build directory and enter it |
| 71 | 3. Run `meson setup ..` to configure meson, add `--default-library=static` if static linking is desired |
| 72 | 4. Run `ninja` to compile |
| 73 |