Playing DVD Raiders under Linux
Recommended: bfreeboy Posted: May 23, 2001 Readings: 68
-------------------------------------------------- ------------------------------
Foreword: Playing DVD movies under Linux systems may be a lot of dreams of friends with DVD drives and LINUX. However, under Linux from the installation DVD driver to really play the DVD movie is really not a simple matter.
This article introduces you how to play a DVD movie under Linux through specific configuration and debugging in Linux. I hope to help DVD enthusiasts and linux enthusiasts.
Prior to describing how to configure the system, first introduce some of the Linux operating system and DVD related knowledge.
Everyone knows that the DVD-ROM adds the storage capacity of the CD to 17 GB. They usually use MPEG-2 formats to store full of movie movies. Special decoding hardware is usually used to decode these MPEG video.
Since the DVD movie is to decompress the data, it is necessary to play the DVD movie normally, whether in Microsoft's Windows platform or the Linux operating system platform, DVD's hardware device requirements for computers are relatively high. At present, the Linux 2.4 kernel has been successfully launched. 2.4 The architecture of the kernel, the main function, and improvement make people more satisfied. In the Linux 2.4 core, significant improvements in the file system are supported by the LVM (Logic Volume Manager). The LVM runs file system across the disk, which can dynamically scalable file system size and increase the file system. This has become an enterprise-class standard for HP-UX and Compaq True64 Unix. In fact, many of the LVM has been supported in Linux's MD (Multi Disk), but this will be an important basis for commercial users using Linux. Support for RAID (redundant disk arrays) has also been enhanced to optimize the efficiency of the RAID subsystem, and RAID0, 1, 4/5 is implemented. Multi-thread under multiprocessors is enhanced, and it has been possible to directly use the RAID device as a starter partition. In addition, support for RAW IO has also been added, which is a very urgent feature of many commercial software, such as Oracle Database. The partition system supported by Linux adds support for UDF (file system used by DVD), which allows Linux to support DVD systems.
By known, if you want to play DVD in the Linux system, the system software and hardware requires at least the following requirements:
Linux kernel> V2.2.0
Xfree86 3.3.x or higher
Fully support and compatible with Linux DVD-ROM drive
Familiar with Linux Systems and Operations Commands
Correctly modified the Linux kernel
The installation of the DVD-ROM hardware is basically the same as in Windows. Most DVD-ROMs are standard IDE interfaces that are currently popular in various Linux versions of these DVD-ROM drivers.
We must prepare the following useful files before configuring the Linux parameters to play the DVD movie.
First, the kernel of the Linux operating system in the computer cannot be less than V2.2.0. If your Linux version is too old or the kernel is not upgraded, then you can download with MTRR to ftp://ftp.kernel.org/ Linux kernel.
Now the latest Linux version of the kernel is relatively stable, the version is also relatively high, with its upgrade kernel, it is better to reinstall the high version of Linux, upgrade the Linux kernel is a very troublesome thing.
Next we also need to play the DVD's special tool software LIVID,
To http://linuxvideo.org/developer/data/livid.tar.gz has downloads. After decompressing the LIVID, there are several files and directories, fully installation of the LIVID can refer to the following command: ac3dec:
# CD ~ / livid / ac3dec
# ./autogen.sh
# Make
# make install
MPEG2DEC:
# CD ~ / livid / mpeg2dec
# ./autogen.sh
# Make
# make install
OMS:
# cd ~ / livid / oms
# ./autogen.sh
# ./configure
# Make
# make install
It should be noted that the OMS file requires some special FIFO pipes to create the communication of DVD data, you can use
# MKFIFO / TMP / VIDEO
# MKFIFO / TMP / AUDIO
These two commands create a FIFO pipe.
The final step is to create a synchronization path for a DVD drive. In general, the DVD-ROM drive is considered to be in the / dev / hdb1 or / dev / SCD0 in the Linux system. We want to synchronize / dev / hdb1 and / dev / DVD, use the following command:
# ln -s / dev / cdrom / dev / DVD
Play DVD movie
In order to play a DVD movie, we must have 16-bit color when starting Linux X-Windows.
Detect discs in DVD, input # ac3dec / tmp / audio & mpeg2dec / tmp / video & oms
This command can be, if there is a DVD disc in the DVD-ROM, then there will be some prompt text after entering this command. At this time, check that there is no DVDDB pattern, if there is, answer Yes, the OMS panel will talk about it. At this time, click the play button to play the DVD movie.
Common problems:
If the CPU in your computer is not Intel's chip, but AMD's chip, such as a common K6 processor, it is likely to have an error in running time when running MPEG2Video to play a DVD movie. If this problem occurs, try to modify Nist / Configure.in, this file, between 129-130 lines, find this parameter:
Cflags = "$ cflags -dhave_mmx -dlinux -march = i686 -fschedule-insns2 -malign-doub
CXXFLAGS = "$ cxxflags -dhave_mmmx -dlinux -march = i686 -fschedule-insns2 -malign-
Change all "-March = I686" to "-March = I586", and finally recompile and install to solve this error.
Author: unknown
Source: Linux.tcpip.com.cn