Mercurial > mplayer.hg
comparison DOCS/xml/en/usage.xml @ 31889:ee8e6a959d68
Merge CD/DVD chapter into the usage chapter.
This improves the overall structure of the documentation.
author | diego |
---|---|
date | Tue, 17 Aug 2010 16:44:29 +0000 |
parents | ec2388db0566 |
children | 219aa324be06 |
comparison
equal
deleted
inserted
replaced
31888:a564f632ba49 | 31889:ee8e6a959d68 |
---|---|
422 <replaceable>stream.asf</replaceable>. | 422 <replaceable>stream.asf</replaceable>. |
423 This works with all protocols supported by | 423 This works with all protocols supported by |
424 <application>MPlayer</application>, like MMS, RTSP, and so forth. | 424 <application>MPlayer</application>, like MMS, RTSP, and so forth. |
425 </para> | 425 </para> |
426 </sect2> | 426 </sect2> |
427 </sect1> | |
428 | |
429 | |
430 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
431 | |
432 | |
433 <sect1 id="dvd"> | |
434 <title>DVD playback</title> | |
435 | |
436 <para> | |
437 For the complete list of available options, please read the man page. | |
438 The syntax to play a standard DVD is as follows: | |
439 <screen> | |
440 mplayer dvd://<replaceable><track></replaceable> [-dvd-device <replaceable><device></replaceable>] | |
441 </screen> | |
442 </para> | |
443 | |
444 <para> | |
445 Example: | |
446 <screen>mplayer dvd://1 -dvd-device /dev/hdc</screen> | |
447 </para> | |
448 | |
449 <para> | |
450 If you have compiled <application>MPlayer</application> with dvdnav support, the | |
451 syntax is the same, except that you need to use dvdnav:// instead of dvd://. | |
452 </para> | |
453 | |
454 <para> | |
455 The default DVD device is <filename>/dev/dvd</filename>. If your setup | |
456 differs, make a symlink or specify the correct device on the command | |
457 line with the <option>-dvd-device</option> option. | |
458 </para> | |
459 | |
460 <para> | |
461 <application>MPlayer</application> uses <systemitem>libdvdread</systemitem> and | |
462 <systemitem>libdvdcss</systemitem> for DVD playback and decryption. These two | |
463 libraries are contained in the | |
464 <application>MPlayer</application> source tree, you do not have | |
465 to install them separately. You can also use system-wide versions of the two | |
466 libraries, but this solution is not recommended, as it can result in bugs, | |
467 library incompatibilities and slower speed. | |
468 </para> | |
469 | |
470 <note><para> | |
471 In case of DVD decoding problems, try disabling supermount, or any other such | |
472 facilities. Some RPC-2 drives may also require setting the region code. | |
473 </para></note> | |
474 | |
475 <formalpara> | |
476 <title>DVD decryption</title> | |
477 <para> | |
478 DVD decryption is done by <systemitem>libdvdcss</systemitem>. The method | |
479 can be specified through the <envar>DVDCSS_METHOD</envar> environment | |
480 variable, see the manual page for details. | |
481 </para> | |
482 </formalpara> | |
483 | |
484 <!-- ********** --> | |
485 | |
486 <sect2 id="region_code"> | |
487 <title>region code</title> | |
488 <para> | |
489 DVD drives nowadays come with a nonsensical restriction labeled | |
490 <ulink url="http://en.wikipedia.org/wiki/DVD_region_code">region code</ulink>. | |
491 This is a scheme to force DVD drives to only accept DVDs produced for one of | |
492 the six different regions into which the world was partitioned. How a group | |
493 of people can sit around a table, come up with such an idea and expect the | |
494 world of the 21st century to bow to their will is beyond anyone's guess. | |
495 </para> | |
496 | |
497 <para> | |
498 Drives that enforce region settings through software only are also known as | |
499 RPC-1 drives, those that do it in hardware as RPC-2. RPC-2 drives allow | |
500 changing the region code five times before it remains fixed. | |
501 Under Linux you can use the | |
502 <ulink url="http://linvdr.org/projects/regionset/">regionset</ulink> tool | |
503 to set the region code of your DVD drive. | |
504 </para> | |
505 | |
506 <para> | |
507 Thankfully, it is possible to convert RPC-2 drives into RPC-1 drives through | |
508 a firmware upgrade. Feed the model number of your DVD drive into your favorite | |
509 search engine or have a look at the forum and download sections of | |
510 <ulink url="http://www.rpc1.org/">"The firmware page"</ulink>. | |
511 While the usual caveats for firmware upgrades apply, experience with | |
512 getting rid of region code enforcement is generally positive. | |
513 </para> | |
514 </sect2> | |
515 </sect1> | |
516 | |
517 | |
518 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
519 | |
520 | |
521 <sect1 id="vcd"> | |
522 <title>VCD playback</title> | |
523 | |
524 <para> | |
525 For the complete list of available options, please read the man page. The | |
526 Syntax for a standard Video CD (VCD) is as follows: | |
527 <screen>mplayer vcd://<replaceable><track></replaceable> [-cdrom-device <replaceable><device></replaceable>]</screen> | |
528 Example: | |
529 <screen>mplayer vcd://2 -cdrom-device /dev/hdc</screen> | |
530 The default VCD device is <filename>/dev/cdrom</filename>. If your setup | |
531 differs, make a symlink or specify the correct device on the command line | |
532 with the <option>-cdrom-device</option> option. | |
533 </para> | |
534 | |
535 <note><para> | |
536 At least Plextor and some Toshiba SCSI CD-ROM drives have horrible performance | |
537 reading VCDs. This is because the CDROMREADRAW <systemitem>ioctl</systemitem> | |
538 is not fully implemented for these drives. If you have some knowledge of SCSI | |
539 programming, please <ulink url="../../tech/patches.txt">help us</ulink> | |
540 implement generic SCSI support for VCDs. | |
541 </para></note> | |
542 | |
543 <para> | |
544 In the meantime you can extract data from VCDs with | |
545 <ulink url="http://ftp.ntut.edu.tw/ftp/OS/Linux/packages/X/viewers/readvcd/">readvcd</ulink> | |
546 and play the resulting file with <application>MPlayer</application>. | |
547 </para> | |
548 | |
549 <formalpara> | |
550 <title>VCD structure</title> | |
551 <para> | |
552 A Video CD (VCD) is made up of CD-ROM XA sectors, i.e. CD-ROM mode 2 | |
553 form 1 and 2 tracks: | |
554 <itemizedlist> | |
555 <listitem><para> | |
556 The first track is in mode 2 form 2 format which means it uses L2 | |
557 error correction. The track contains an ISO-9660 file system with 2048 | |
558 bytes/sector. This file system contains VCD metadata information, as | |
559 well as still frames often used in menus. MPEG segments for menus can | |
560 also be stored in this first track, but the MPEGs have to be broken up | |
561 into a series of 150-sector chunks. The ISO-9660 file system may | |
562 contain other files or programs that are not essential for VCD | |
563 operation. | |
564 </para></listitem> | |
565 | |
566 <listitem><para> | |
567 The second and remaining tracks are generally raw 2324 bytes/sector | |
568 MPEG (movie) tracks, containing one MPEG PS data packet per | |
569 sector. These are in mode 2 form 1 format, so they store more data per | |
570 sector at the loss of some error correction. It is also legal to have | |
571 CD-DA tracks in a VCD after the first track as well. | |
572 On some operating systems there is some trickery that goes on to make | |
573 these non-ISO-9660 tracks appear in a file system. On other operating | |
574 systems like GNU/Linux this is not the case (yet). Here the MPEG data | |
575 <emphasis role="bold">cannot be mounted</emphasis>. As most movies are | |
576 inside this kind of track, you should try <option>vcd://2</option> | |
577 first. | |
578 </para></listitem> | |
579 | |
580 <listitem><para> | |
581 There exist VCD disks without the first track (single track and no file system | |
582 at all). They are still playable, but cannot be mounted. | |
583 </para></listitem> | |
584 | |
585 <listitem><para> | |
586 The definition of the Video CD standard is called the | |
587 Philips "White Book" and it is not generally available online as it | |
588 must be purchased from Philips. More detailed information about Video | |
589 CDs can be found in the | |
590 <ulink url="http://www.vcdimager.org/pub/vcdimager/manuals/0.7/vcdimager.html#SEC4">vcdimager documentation</ulink>. | |
591 </para></listitem> | |
592 </itemizedlist> | |
593 </para> | |
594 </formalpara> | |
595 | |
596 <formalpara> | |
597 <title>About .DAT files</title> | |
598 <para> | |
599 The ~600 MB file visible on the first track of the mounted VCD is not a real | |
600 file! It is a so called ISO gateway, created to allow Windows to handle such | |
601 tracks (Windows does not allow raw device access to applications at all). | |
602 Under Linux you cannot copy or play such files (they contain garbage). Under | |
603 Windows it is possible as its iso9660 driver emulates the raw reading of | |
604 tracks in this file. To play a .DAT file you need the kernel driver which can | |
605 be found in the Linux version of PowerDVD. It has a modified iso9660 file system | |
606 (<filename>vcdfs/isofs-2.4.X.o</filename>) driver, which is able to emulate the | |
607 raw tracks through this shadow .DAT file. If you mount the disc using their | |
608 driver, you can copy and even play .DAT files with | |
609 <application>MPlayer</application>. But it will not | |
610 work with the standard iso9660 driver of the Linux kernel! Use | |
611 <option>vcd://</option> instead. Alternatives for VCD copying are the | |
612 new <ulink url="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</ulink> kernel | |
613 driver (not part of the official kernel) that shows CD sessions as image files | |
614 and <ulink url="http://cdrdao.sf.net/">cdrdao</ulink>, a bit-by-bit | |
615 CD grabbing/copying application. | |
616 </para> | |
617 </formalpara> | |
427 </sect1> | 618 </sect1> |
428 | 619 |
429 | 620 |
430 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | 621 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
431 | 622 |