Introduction to playing DVDs in LINUX

Source: Internet
Author: User
Article title: Guide to Playing DVDs in LINUX. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Playing a DVD movie in a LINUX system may be a dream of many friends who have a DVD drive and like LINUX. However, in LINUX, it is not easy to install a DVD drive to actually play a DVD movie.
  
?? This article describes how to smoothly play a DVD movie in LINUX through specific configuration and debugging. I hope it will be helpful to enthusiasts of DVD and LINUX.
  
?? Before introducing how to configure the system, let's first introduce some knowledge about the LINUX operating system and DVD.
  
?? As we all know, DVD-ROM is to increase the storage capacity of CD to 17 GB. They are usually used as media for storing full-process film in MPEG-2 format. Special decoding hardware is usually used to decode these MPEG videos.
  
?? Because the data needs to be decompressed when playing a DVD movie, to play a DVD movie normally, whether on Microsoft's WINDOWS or LINUX operating system platform, DVD has high requirements on computer hardware. At present, the Linux 2.4 kernel has been successfully launched. The 2.4 kernel architecture, main features, and improvements are satisfying. in the Linux 2.4 kernel, A major improvement in the file system is the support of LVM (Logic Volume Manager. The file system running on LVM spans the disk and can dynamically scale the file system size and increase the file system size at runtime. This has become an enterprise standard for HP-UX and Compaq True64 UNIX. In fact, many features of LVM are supported in Linux's MD (Multi Disk), but this will be an important basis for commercial users to adopt Linux. The support for RAID (redundant disk array) has also been enhanced, which optimizes the execution efficiency of the RAID sub-system and achieves RAID 0, 1, and 4/5. Multi-threaded multi-processor is enhanced, and RAID devices can be directly used as the root partition for startup. In addition, raw io support has been added, which is a feature that many commercial software urgently need, such as Oracle databases. The partition system supported by Linux supports UDF (file system used by DVD), which enables Linux to support the DVD system.
  
?? It is learned from the above that if you want to play a DVD in a LINUX system, the system software and hardware requirements must at least meet the following requirements:
  
Linux kernel> v2.2.0
XFree86 3.3.X or later
Fully compatible with Linux DVD-ROM drives
Familiar with LINUX systems and operating commands
Ability to correctly modify the Linux kernel
?? The installation of DVD-ROM hardware is basically the same as that in WINDOWS. Most DVD-ROM is the standard IDE interface, which is recognized by various LINUX versions on the market.
  
?? Before configuring LINUX parameters to enable playback of DVD movies, we must prepare the following useful files.
  
?? First, the LINUX operating system kernel in your 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 the mtrr linux kernel on the ftp://ftp.kernel.org/website.
  
?? At present, the latest LINUX version of the kernel is relatively stable and the version is relatively high. instead of upgrading the kernel, it is better to directly reinstall the later version of LINUX. upgrading the LINUX kernel is very troublesome.
  
?? Next, we also need LiViD, a dedicated tool for playing DVDs,
  
  
Download the package at http://linuxvideo.org/#/data/livid.tar.gz. After extracting LiViD, there are several files and directories. to fully install LiViD, 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
Note that the OMS file requires some special fifo pipelines to create the distribution of DVD data. you can use
# Mkfifo/tmp/video
# Mkfifo/tmp/audio
These two commands are used to create a fifo pipeline.
The last step is to create a synchronization path for the DVD drive. In general, the DVD-ROM driver in LINUX is considered to be in/dev/hdb1 or/dev/MDS 0, we want to make a Synchronous Connection to/dev/hdb1 and/dev/dvd, run the following command:
# Ln-s/dev/cdrom/dev/dvd
  
Play a DVD movie
To be able to play a DVD movie, we must be above 16 colors when starting a LINUX X-WINDOWS.
Check the discs in the DVD. input # ac3dec/tmp/audio & mpeg2dec/tmp/video & oms.
This command can be, if there is a DVD disc in the DVD-ROM, then enter this command there will be some prompt text appear, this time pay attention to observe whether there is DVDDB words appear, if there is, if the answer is YES, the oms panel will talk about it. at this time, you can click the play button to play the DVD.
Common problems:
If the CPU in the computer is not an Intel chip, but an AMD chip, such as a common K6 processor, the running time error may occur when running mpeg2video to play a DVD movie. If this problem occurs, try to modify nist/configure. in. in this file, locate this parameter between lines 12:
CFLAGS = "$ CFLAGS-DHAVE_MMX-DLINUX-march = i686-fschedule-insns2-malign-doub
CXXFLAGS = "$ CXXFLAGS-DHAVE_MMX-DLINUX-march = i686-fschedule-insns2-malign-
Change "-march = i686" to "-march = i586", and re-compile and install it to solve the problem.
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.