view DOCS/zh/cd-dvd.html @ 11786:06474b60be53
EDL section moved into usage.
author |
diego |
date |
Wed, 14 Jan 2004 19:56:36 +0000 (2004-01-14) |
parents |
a5785a0b9ee1 |
children |
|
line source
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>CD�DVD�VCD -- MPlayer -- Linux和議窮唹殴慧匂</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="../default.css">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gbk">
</HEAD>
<BODY>
<H2><A NAME="drives">4.1 CD/DVD高駁</A></H2>
<P>Linux猟周姜村�</P>
<P>�旗議CD-ROM高駁嬬器欺噴蛍互議遊堀業�珊嗤匯乂CD-ROM高駁嬬塰佩壓瓜屎械秤趨詰議堀業貧。低深打個延CD-ROM高駁議堀業辛嬬嗤飛孤圻咀�</P>
<UL>
<LI>壓御盆秤趨和窟伏響函危列�喩凪斤噐儿崙音挫議CD-ROM。週詰堀業嬬契峭宸嶽秤趨和議方象卿払。</LI>
<LI>載謹CD-ROM高駁議蕗咄崖議網凵�詰議堀業辛參週詰夐咄。</LI>
</UL>
<P>低嬬聞喘hdparm賜匯倖出setcd議殻會栖週詰高駁議堀業。万頁宸劔垢恬議�</P>
<P> <CODE>hdparm -E [speed] [cdrom device]</CODE></P>
<P> <CODE>setcd -x [speed] [cdrom device]</CODE></P>
<P>低匆辛參編編</P>
<P> <CODE>echo current_speed:4 > /proc/ide/[cdrom device]/settings</CODE></P>
<P>徽宸劔低俶勣root幡�。和中宸倖凋綜匆嗤喘侃�</P>
<P> <CODE>echo file_readahead:2000000 > /proc/ide/[cdrom device]/settings</CODE></P>
<P>宸委猟周圓響函譜崔葎2MB�斤噐肯彬議CD-ROM嗤挫侃。泌惚低委宸倖峙譜崔議湊寄�低議高駁氏音唯議廬�
�广議週詰丼楕。秀咏低揖扮匆喘hdparm距屁低議CD-ROM高駁�</P>
<P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
<P>宸蝕尼DMA贋函�圓響函�才IRQ unmasking(聾准盾瞥萩堋響hdparm議man page)。</P>
<P>葎阻單晒低議CD-ROM萩歌深"<CODE>/proc/ide/[cdrom device]/settings</CODE>"。</P>
<P>SCSI駁強匂短嗤匯倖由匯議譜崔歌方議圭隈(低岑祇宸劔匯嶽圭隈�御盆厘断�) 嗤匯嶽垢醤辛參喘噐<A
HREF="http://das.ist.org/~georg/">Plextor議SCSI駁強匂</A>。</P>
<P>FreeBSD:</P>
<P> Speed: <CODE>cdcontrol [-f device] speed [speed]</CODE></P>
<P> DMA: <CODE>sysctl hw.ata.atapi_dma=1</CODE></P>
<H2><A NAME="dvd">4.2 DVD殴慧</A></H2>
<P>辛喘僉�議頼屁双燕歌需man page。殴慧炎彈議方忖謹孔嬬禦頭(DVD)議囂隈泌和�</P>
<P><CODE>mplayer dvd://<track> [-dvd-device <device>]</CODE></P>
<P>幣箭�<CODE>mplayer dvd://1 -dvd-device /dev/hdc</CODE></P>
<P>潮範議DVD譜姥頁<CODE>/dev/dvd</CODE>。泌惚低議譜崔音揖�恬匯倖憲催全俊�賜宀壓凋綜佩嶄喘<CODE>-dvd-device</CODE>僉�
峺協匯倖屎鳩議譜姥。</P>
<H4>仟塀議DVD屶隔(mpdvdkit2)</H4>
<P>MPlayer聞喘<CODE>libdvdread</CODE>才<CODE>libdvdcss</CODE>序佩DVD盾畜才指慧。宸曾倖垂淫根壓MPlayer坿鷹峯議<CODE>libmpdvdkit/</CODE>
徨朕村嶄�低音俶勣汽鏡芦廾麿断。厘断僉夲宸嶽盾畳圭宛頁咀葎厘断駅倬俐屎匯倖libdvdread議bug�旺拝公libdvdcss耶紗匯倖<B>cracked CSS keys caching support</B>議温供。
宸揮栖自寄議堀業戻幅�咀葎音喘壓耽肝殴慧岻念脅篤盾畜埒。</P>
<P>MPlayer匆嬬聞喘狼由議<CODE>libdvdread</CODE>才<CODE>libdvdcss</CODE>垂�徽宸嶽盾畳圭隈<B>音</B>容呪�咀葎万氏擬崑bug�垂議音惹否�旺拝週詰堀業。</P>
<H4>DVD擬砂暇汽屶隔(dvdnav)</H4>
<P>宥狛<CODE>dvdnav</CODE>屶隔DVD擬砂暇汽議垢恬厮将蝕兵�徽万辛嬬喟垓音氏頼撹遇拝�壓涙繁略擦。豊岑祇�万辛嬬珊嬬園咎狛肇。</P>
<H4>析塀DVD屶隔 -- 辛僉</H4>
<P>泌惚低�貫啣徒貧殴慧園鷹議VOB頁嗤喘。葎緩勣園咎旺芦廾<B>libcss</B>0.0.1(音勣厚仟議)(泌惚MPlayer殊霞音欺万�聞喘<CODE>-csslib /path/to/libcss.so</CODE>僉�)。葎阻聞喘万低駅倬頁root�聞喘匯倖suid root阻議MPlayer屈序崙殻會賜宀斑MPlayer距喘suid-root阻議fibmap_mplayer翌診殻會。</P>
<H4>DVD潤更</H4>
<P>DVD徒耽倖蛭曝嗤2048忖准現揮ECC/CRC。万断将械壓匯倖咄轟貧聞喘匯倖UDF猟周潤更�淫根光嶽猟周(弌議.IFO才.BUK猟周才寄議
(1GB) .VOB猟周)。万断頁寔屎議猟周�辛參壓匯倖mount阻議隆紗畜議DVD議猟周狼由貧瓜鹸崙/殴慧。</P>
<P>.IFO猟周淫根窮唹議擬砂佚連(chapter/title/angle map, 囂冱燕吉吉)俶勣万栖響函才盾瞥.VOB猟周議坪否(窮唹)。.BUK猟周頁万断議姥芸。
万断欺侃聞喘<B>蛭曝</B>�侭參低俶勣聞喘禦頭貧蛭曝議隆将侃尖議仇峽窃糞�DVD擬砂暇汽才坪否盾畜。</P>
<P>屁倖議析塀DVD屶隔聞喘<CODE>libcss</CODE>侭參俶勣匯倖mount阻議DVD猟周狼由才岷俊議児噐蛭曝議譜姥恵諒。音侑議頁(壓Linux和)低駅倬
頁root嘉嬬誼欺匯倖猟周議蛭曝仇峽。低嗤參和叱嶽僉夲�</P>
<UL>
<LI>撹葎root賜宀聞喘匯倖suid-root議mplayer屈序崙殻會。</LI>
<LI>斑MPlayer距喘suid-root議fibmap_mplayer翌診殻會栖恵諒DVD(聞喘宥狛<CODE>libcss</CODE>議析塀DVD殴慧圭塀)。</LI>
<LI>功云音聞喘坪宰議猟周狼由駁強遇頁壓喘薩腎寂嶷仟糞�万。<CODE>libdvdread</CODE> 0.9.x才<CODE>libmpdvdkit</CODE>
祥頁宸担恂議(仟塀DVD屶隔)。坪宰議UDF猟周狼由駁強頁音俶勣議咀葎万断嗤徭失坪秀議UDF猟周狼由駁強。揖劔DVD音俶勣mount
咀葎峪俶勣聞喘岷俊議児噐蛭曝議恵諒。</LI>
</UL>
<P>嗤扮<CODE>/dev/dvd</CODE>喘薩音嬬響函�侭參<CODE>libdvdread</CODE>議恬宀譜柴阻匯倖庁亭蚊委蛭曝仇峽延算葎猟周兆
+陶卞楚�喘栖壓匯倖mount阻議猟周狼由封崛啣徒貧庁亭岷俊恵諒。</P>
<P><CODE>libdvdread</CODE>封崛辛參宥狛mountpoint遇音頁譜姥兆�宥狛恵諒<CODE>/proc/mounts</CODE>臥孀譜姥兆栖序佩岷俊恵諒�
宸頁葎Solaris譜柴議�椎戦譜姥兆頁強蓑蛍塘議。</P>
<P>潮範議DVD譜姥頁<CODE>/dev/dvd</CODE>。泌惚低議譜崔音揖�恬匯倖憲催全俊�賜宀壓凋綜佩嶄喘<CODE>-dvd-device</CODE>僉�
峺協匯倖屎鳩議譜姥。</P>
<H4>DVD範屬</H4>
<P>仟塀DVD屶隔議範屬才盾畜議圭隈頁宥狛匯倖嬉阻温供議<CODE>libdvdcss</CODE>(需貧中)栖頼撹議。辛參宥狛峺協桟廠
延楚<CODE>DVDCSS_METHOD</CODE>栖譜崔盾畜圭隈�辛參譜崔議峙葎<CODE>key</CODE>, <CODE>disk</CODE>賜宀<CODE>title</CODE>。</P>
<P>泌惚焚担脅短嗤峺協万繍氏晦編和双圭隈(潮範: key, title request)�</P>
<OL>
<LI><B>bus key:</B> 宸倖畜埒壓範屬(匯海堪議ioctls才光嶽畜埒議住算�紗畜議叫廉議詞栽)議狛殻嶄鳩協�隼朔壓宥狛短嗤隠擦議
悳�岻念喘万紗畜title才disk keys(契峭敗油)。俶勣bus key栖資誼紗畜議disk key旺斤凪序佩圓盾畜.</LI>
<LI><B>cached key:</B> MPlayer儖孀厮将篤盾議title keys�贋慧壓<CODE>~/.mplayer/DVDKeys</CODE>朕村和(載酔;).</LI>
<LI><B>key:</B> 泌惚短嗤辛喘議cached key�MPlayer晦編聞喘殴慧匂畜埒栖斤disk key序佩盾畜。</LI>
<LI><B>disk:</B> 泌惚畜埒圭隈払移(曳泌�短嗤徭揮議殴慧匂畜埒)�MPlayer繍氏聞喘匯嶽羽薦麻隈栖篤盾disk key。
宸倖狛殻掲械�債CPU遇拝俶勣64 MB坪贋(16M議32Bit議屁倖hash燕)栖贋刈匝扮方象。宸嶽圭隈悳嬬軟恬喘(載蛸)。</LI>
<LI><B>title request:</B> 嗤阻disk key參朔MPlayer俶勣紗畜議title keys�万瓜喘<CODE>ioctl()</CODE>刈贋壓<I>咨茄蛭曝</I>戦。
RPC-2駁強匂議仇曝隠擦壓宸匯化糞��侭參壓宸劔議駁強匂貧辛嬬氏払移。泌惚撹孔議三�繍聞喘bus才disk key斤title keys序佩盾畜。</LI>
<LI><B>title:</B> 宸倖圭隈壓title request圭隈払移扮聞喘�音卆正噐嚥DVD駁強匂議販採畜埒住算。万聞喘匯嶽紗畜篤盾議圭隈
岷俊佳霞title key(宥狛儖孀厮盾畜議VOB坪否嶄議匯嶽嶷鹸鯉塀隼朔佳霞紗畜何蛍議念叱倖忖准頁宸嶽鯉塀議决偬)。
宸嶽圭隈匆瓜撹葎"厮岑苧猟好似"賜宀"DeCSSPlus"。載富議秤趨和�咀葎禦頭貧短嗤怎校議紗畜方象栖序佩由柴好似賜宀咀葎畜埒住算
窟伏壓匯倖title議嶄寂�宸嶽圭隈氏払移。宸嶽圭隈頁盾畜匯倖刈贋壓啣徒貧議DVD賜宀壓匯倖RPC2駁強匂貧響函匯倖仇曝危列議DVD
議率匯圭隈(載蛸)。</LI>
</OL>
<P>RPC-1 DVD駁強匂峪隠擦罷周譜協議曝囃。RPC-2駁強匂嗤匯倖啣周隠擦�峪塋俯5倖個延。泌惚低嗤匯倖RPC-2 DVD駁強匂�
辛嬬俶勣/容呪繍耕周幅雫欺RPC-1。耕周幅雫辛參壓宸戦<A HREF="http://www.firmware-flash.com">firmware page</A>孀欺。
泌惚短嗤辛喘噐低議譜姥議耕周幅雫�聞喘<A
HREF="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz">曝囃譜協垢醤</A>栖譜崔低議
DVD駁強匂議仇曝(壓Linux和)。<B>少御�</B> 低峪嗤5肝譜崔仇曝議字氏。</P>
<H2><A NAME="vcd">4.3 VCD指慧</A></H2>
<P>辛喘僉�議頼屁双燕萩堋響man page。殴慧匯倖炎彈議Video CD(VCD)議囂隈泌和�</P>
<P>殴慧炎彈議Video CDs�</P>
<P><CODE>mplayer vcd://<track> [-cdrom-device <device>]</CODE></P>
<P>幣箭�<CODE>mplayer vcd://2 -cdrom-device /dev/hdc</CODE></P>
<P>潮範議VCD譜姥頁<CODE>/dev/cdrom</CODE>。泌惚低議譜崔音揖�恬匯倖憲催全俊�賜宀壓凋綜佩嶄喘<CODE>-cdrom-device</CODE>僉�
峺協匯倖屎鳩議譜姥。</P>
<P><B>廣吭�</B>崛富斤噐Plextor才匯乂Toshiba議SCSI CD-ROM駁強匂壓響函VCD議扮昨蛸議訊伽。宸頁咀葎CDROMREADRAW ioctl壓宸乂
駁強匂貧短嗤頼畠糞�。泌惚低嗤SCSI園殻圭中議屶隔�萩<A HREF="../tech/patches.txt">逸廁厘断</A>糞�噸演議SCSI譜姥議VCD屶隔。</P>
<P>緩翌低珊辛參聞喘<A HREF="http://140.132.1.204/OS/Linux/packages/X/viewers/readvcd/">readvcd</A>戻函VCD嶄議方象�旺喘
MPlayer殴慧資誼議猟周。</P>
<H4>VCD潤更</H4>
<P>VCD禦頭喇匯倖賜謹倖咄轟怏撹�</P>
<UL>
<LI>及匯倖轟祇頁匯倖弌議2048忖准/蛭曝議方象轟�嗤匯倖iso9660猟周狼由�宥械淫根Windows VCD殴慧殻會辛嬬珊嗤凪麿佚連
(夕��猟忖吉吉)。</LI>
<LI>及屈才岻朔議轟祇頁隆侃尖議2324忖准/蛭曝議MPEG(窮唹)轟�耽倖蛭曝淫根匯倖MPEG PS方象淫遇短嗤猟周狼由。咄撞CD議轟祇匆窃貌。
宸乂轟祇頁<B>涙隈瓜mount議</B>(低奚将mount匯倖咄撞CD隼朔殴慧狛宅�)。寄何蛍窮唹脅壓宸倖轟祇�侭參低哘乎枠編編
<CODE>vcd://2</CODE>。</LI>
<LI>嗤乂VCD禦頭短嗤及匯倖轟祇(汽轟祇遇功云短嗤猟周狼由)。万断匆辛參殴慧�徽頁音嬬mount。</LI>
</UL>
<H4>購噐.DAT猟周�</H4>
<P>壓mount阻議VCD議及匯轟貧心欺議~600 MB議猟周音頁匯倖寔屎議猟周�宸頁侭僚議ISO宥祇�喘栖聞Windows嬬校侃尖宸劔議
轟祇(Windows功云音塋俯殻會岷俊恵諒隆侃尖議譜姥)。壓Linux和低音嬬鹸崙賜宀殴慧宸乂猟周(万断戦中頁乂征侍)。壓Windows和
宸頁辛參議�咀葎万議iso9660駁強嬬庁亭壓宸倖猟周嶄響函隆侃尖議咄轟。勣殴慧匯倖.DAT猟周低俶勣Linux井議PowerDVD嶄議
坪宰駁強。万嗤匯倖将狛俐個議iso9660猟周狼由(<CODE>vcdfs/isofs-2.4.X.o</CODE>)駁強�辛參宥狛宸倖.DAT唹徨猟周庁亭
響函隆侃尖咄轟。泌惚低喘万断議駁強栖mount�低辛參鹸崙封崛喘mplayer岷俊殴慧.DAT猟周。徽泌惚喘Linux坪宰議炎彈議
iso9660駁強頁<B>音氏嗤喘議</B>�哘乎聞喘<CODE>-vcd</CODE>僉�。総匯嶽鹸崙VCD議圭隈頁仟議<A
HREF="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</A>坪宰駁強(音頁郊圭坪宰議匯何蛍)�万嬬校委CD議<I>sessions</I>
�幣撹承�猟周�賜宀<A HREF="http://cdrdao.sourceforge.net/">cdrdao</A>�匯倖bit-by-bit議CD廛函/鹸崙殻會。</P>
</BODY>
</HTML>