# HG changeset patch # User eyck # Date 1044820195 0 # Node ID a07c2838fd287c6ec0fa321c01cb2947385176ec # Parent b4bd650b30cadd35db2fb70b41d9a2b5a5f85909 Translation from Zorg ( Krzysztof Materka ) diff -r b4bd650b30ca -r a07c2838fd28 DOCS/pl/cd-dvd.html --- a/DOCS/pl/cd-dvd.html Sun Feb 09 19:45:20 2003 +0000 +++ b/DOCS/pl/cd-dvd.html Sun Feb 09 19:49:55 2003 +0000 @@ -1,236 +1,331 @@ + +
+ - - - +uryweg z dokumentacji Linuksa:
- +Nowoczesne napędy CD-ROM mogą osiągać bardzo wysokie + prędkości głowicy, jeszcze niektóre napędy CD-ROM są w stanie + działać przy zmniejszonej prędkości. Jest kilka powodów, które + mogą spowodować, że rozważysz zmianę prędkości napędu + CD-ROM:
- - -Playing standard Video CDs:
+
-mplayer -vcd trackno [-cdrom-device device]
-Examples:
-mplayer -vcd 1
-mplayer -fs -vcd 2 -cdrom-device /dev/hdc
-
Możesz zmniejszyć prędkość napędu CD-ROM IDE programem
+ hdparm
lub programem o nazwie setcd
.
+ Działa to miej więcej tak:
hdparm -E [prędkość] [napęd cdrom]
setcd -x [prędkość] [napęd cdrom]
-Notes:
-- Do NOT mount VCD disks and play DAT files directly! It may work under windows
-but won't work under linux. You have to play them directly, with the -vcd
-option!
-- VCD disks usually have 2 tracks: a data track (containing autostart windows
-playback program, karaoke data etc) and a mode-2 track (the movie), so try
--vcd 2 first!
-- the default VCD device is /dev/cdrom. if your device differs, then you have
-to make a symlink, or specify it in command line!
-
Możez ponad to spróbować
+ + echo current_speed:4 > /proc/ide/[napęd
+ cdrom]/settings
ale będziesz uprawnień roota. Poniższa komenda także może + pomóc:
-From Linux documentation:
+ echo file_readahead:2000000 > /proc/ide/[napęd
+ cdrom]/settings
Ustawi to pobranie wstępne odczytu pliku na 2MB, co pomaga z
+ porysowanymi CD-ROMami. Jeżeli ustawisz zbyt wysoką wartość,
+ napęd będzie ciągle zwiększał i zmniejszał obroty, co
+ radykalnie zmniejszy wydajność. Zalecane jest byś ponad to
+ wyregulował twój napęd CD-ROM programem
+ hdparm
:
hdparm -d1 -a8 -u1 (napęd cdrom)
Some CDROM drives are capable of changing their head-speed. There are several -reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may -benefit from less-than-maximum head rate. Modern CDROM drives can obtain very -high head rates (up to 24-times is common). It has been reported that these -drives can make reading errors at these high speeds, reducing the speed can -prevent data loss in these circumstances. Finally, some of these drives can -make an annoyingly loud noise, which a lower speed may reduce.
+Włązcy to DMA, read-ahead, i odmaskowanie IRQ (przeczytaj
+ stronę man dla hdparm
po szczegółowe
+ wyjaśnienie).
Prosimy o odwołanie sie do "/proc/ide/[napęd
+ cdrom]/settings
" by lepiej dostroić twój CD-ROM.
The recommended way to do it is with a program called 'setcd' . It's kinda -old, but won't be too hard to find on the Net. (UPDATE : new hdparm -has an option for this !) -Use it with :
+Napędy SCSI nie mają jednolitego sposobu ustawiania ich + parametrów (Znasz jakiś? Powiedz nam!) Jest narzędzie, które + działa z napędami Plextor + SCSI drives.
+ +FreeBSD:
- setcd -x [speed] [cdrom device]
Prędkość: cdcontrol [-f urządzenie] speed
+ [prędkość]
Also you can try:
+ DMA: sysctl hw.ata.atapi_dma=1
echo current_speed:4 >/proc/ide/[cdrom device]/settings
but you'll need root privileges. I use following command too:
- - echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings
Po kompletną listę dostępnych opcji, prosimy o przeczytanie + manula.
-for 2MB prefetched reading from the file (it's useful for scratched CDROMs). -It's recommended that you tuneup your CDROM drive also with hdparm:
- - hdparm -d1 -a8 -u1 (cdrom device)
to enable using DMA access, readahead, and IRQ unmasking. -(if you don't understand these, *read the hdparm manpage*)
+Please refer to "/proc/ide/[cdrom device]/settings
" for fine-tuning your
-CDROM.
MPlayer używa libdvdread
i
+ libdvdcss
do deszyfrowania i odtwarzania DVD. Te
+ dwie biblioteki są zawarte w podkatalogu
+ libmpdvdkit2/
w drzewie kodu źródłowego MPlayera,
+ nie musisz instalować ich osobno. Zdecydowaliśmy się na takie
+ rozwiązanie ponieważ musieliśmy naprawić błąd w
+ libdvdread
i nałożych nakładkę która dodawałą do
+ libdvdcss
obługę buforowania (cache)
+ skrakowanych kluczy CSS. Dało to duży przyrost sprędkości,
+ ponieważ klucze nie muszą być krakowane za każdym razem przed
+ odtwarzaniem.
MPlayer uses libdvdread
and libdvdcss
for
- DVD decryption and playing. These two libraries are contained in the
- libmpdvdkit/
subdirectory in the MPlayer tree, you
- don't have to install them separately. We opt for this solution because
- we had to fix a libdvdread bug, and apply a patch which adds
- cracked CSS keys caching support for libdvdcss (results in large
- speed increase before playing). These cracked keys are stored in
- $HOME/.mplayer/DVDKeys
directory.
MPlayer może również używać systemowych bibliotek
+ libdvdread
i libdvdcss
, ale to
+ rozwiązanie nie jest polecane, ponieważ może to
+ powodować błędy, niekompatybilność bibliotek i wolniejszą
+ prędkość.
Wsparcie dla DVD navigation (menu na płycie DVD, z wyborem
+ scen, napisów itp.; przyp.tłum.). przez dvdnav
+ zaczęło działać, ale nigdy nie zostało poprawnie zakończone i
+ aktualnie nie jest rozwijane. Kto wie, może jeszcze zostanie
+ ukończone.
Support for dvdnav
is being added (not usable now).
Przydatne jeżeli chcesz odtworzyć zakodowane VOBy z
+ twardego dysku. W tym celu skompiluj i zainstaluj
+ libcss 0.0.1 (nie nowszy) (Jeżeli MPlayer nie wykryję
+ go, użyj opcji -csslib /ścieżka/do/libcss.so
). By
+ go użyć, musisz być rootem, używać MPlayera z suid root lub
+ kazać MPlayerowi użyć programu wrapera z suid-root o nazwie
+ fibmap_mplayer.
Old-style DVD support - OPTIONAL
+Useful if you want to play encoded VOB's from hard disk. Compile and
- install libcss 0.0.1 (not newer) (if MPlayer can't detect
- it, use the -csslib /path/to/libcss.so
option).
Dyski DVD mają po 2048 bajtów na sektor z ECC/CRC. Mają + zazwyczaj system plików UDF na pojedyńczej ścieżce, + zawierającej różne pliki (małe pliki .IFO i .BUK i duże (1GB) + pliki .VOB). To są prawdziwe pliki które możesz + kopiować/odtwarzać z zamontowanego systemu plików na + niezaszyfrowanym DVD.
-Compile MPlayer.
- -Run ./configure
. If you didn't delete
- libmpdvdkit
subdirectory from MPlayer tree, ./configure should
- say the following:
Pliki .IFO zawierają informacje nawigacyjne filmu + (rozdziały/tytułu/kąty kamery, tablice języków, itd.) i są + wymagane do odczytu i interpretacji zawartości .VOB (filmu). + Pliki .BUK są ich kopiami zapasowymi. Wszędzie wykorzystują + sektory, więc musiał użyć adresowania sektorów raw na + dysku by użyć nawigacji DVD lub zdeszyfrować zawartość.
-Checking for DVD support (libmpdvdkit) ... yes
Całe wsparcie dla starego-stylu DVD jest przez
+ libcss
, zatem potrzebuje zamontowanego systemu
+ plików DVD i dostępu dla raw opartego na sektorach do
+ urządzenia. Na nieszczęście musisz być (w Linuksie) rootem by
+ pobrać adres sektora pliku. Masz następujące rozwiązania:
(of course you can put your favourite configure options into the command - line when you run ./configure)
+MPlayer can use libdvdread
and libdvdcss
- libraries installed system-wide, but this solution is NOT RECOMMENDED, as
- can result in bugs, library incompatibilities, and slower speed.
libcss
).Either way, say: make
, then make install
.
Using MPlayer to play DVDs:
- +libdvdread
0.9.x i libmpdvdkit
+ robią to (wsparcie nowego-stylu DVD). System plików UDF
+ kernela nie jest potrzebny, ponieważ biblioteki te mają już
+ własny wbudowany sterownik systemu plików UDF. Ponad to DVD
+ nie muszą być montowane, ponieważ tylko dostęp raw oparty na
+ sektorach jest użyty.-dvd <title_id> | -Enables DVD support and selects title. |
-chapter <chapter_id> | -Selects DVD chapter(s) to play (default: play from chapter 1).
- Example : -chapter 5-10 or -chapter -9 |
-dvdangle <angle_id> | -Selects camera angle (default: 1) |
-alang <country code> | -
- The country code tells MPlayer which audio language(s) to prefer.
- For the list of available languages, add -v option after
- your DVD options, and browse the output.- For example : - -alang hu,en - first tries to find hungarian
- audio, and if not found, decode english audio. | -slang <country code> | -
- Turns on DVD subtitles. The country code tells MPlayer
- which language(s) to prefer.
- For the list of available languages, add -v option after
- your DVD options, and browse the output.- For example : - -slang hu,en - first tries to display hungarian
- subtitles, and if not found, display english subtitles. |
--sid <subtitle_id> | -
- Displays a subtitle channel with the given id (values can be
- 0-31). Useful for example with badly mastered DVDs where country code
- selects the wrong channel. |
--csslib <path/filename> | -
- (old-style DVD option) This option is used to override the default location
- of libcss.so
- |
--dvdauth <DVD device> | -- (old-style DVD option) Turns on DVD authentication using the given device. - | --dvdkey <CSS key> | -- (old-style DVD option) When decoding from non-DVD, this option gives the - CSS key needed to crack the DVD (the key is printed when authenticating - with DVD). - | -
Czasami /dev/dvd
nie możę być odczytany przez
+ użytkownikóws, więc autorzy libdvdread
+ zaimpletowali emulację która przesyła adresy sektorów do
+ nazwplików+przesunięć, by zemulować dostęp raw na zamontowanym
+ systemie plików lub nawet na dysku twardym.
libdvdread
akceptuje nawet pukty mantowania
+ (ang. mountpoint) zamiast nazwy urządzenia dla dostępy raw i
+ sprawdza /proc/mounts
by pobrać nazwę urządzenia.
+ Zrobione to zostało dla Solarisa, gdzie nazwy urządzeń są
+ dynamicznie przydzielane.
Domyślnym urządzeniem DVD jest /dev/dvd
. jeżeli
+ ustawiłeś inne, stwórz link symboliczny, lyb podaj poprawne
+ urządzenie w linii komend opcją -dvd-device
.
Wspacia dla autentyfikacji i metod deszyfrowania
+ nowego-stylu DVD są ukończone, używają poprawionej biblioteki
+ libdvdcss
(patrz wyżej). Metoda może być określona
+ poprzez zmienną systemową DVDCSS_METHOD
, która
+ może być ustawiona na key (klucz)
, disk
+ (dysk)
lub title (tytuł)
.
Jeżeli nic nie jest określone, biblioteka próbuje poniższych + metod (domyślnie: key, title request):
+ +Default device is /dev/dvd
, you can change it in config.h
-(compile time option), or you can specify it using the -dvd-device option :
-
~/.mplayer/DVDKeys
(szybkie ;). mplayer -dvd 1 -dvd-device /dev/dvd
mplayer -dvd 1 -slang en -dvd-device /dev/dvd
mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25
mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2
mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob
mplayer -dvdkey C005D4A16D vts_03_1.vob
ioctl()
. Kod regionu
+ (dla USA, Japoni, Europy inny, kwestia zabezpieczeń; przyp.
+ tłum.) urządzeń RPC-2 jest sprawdzany w tym kroku i może się
+ nie powieść w takich urządzeniach. Jeżeli się powiedzie,
+ klucz tytułu zostanie zdeszyfrowany z magistralą (bus) i
+ kluczem dysku.Q: |
-Playing a DVD, I encountered this error : - mplayer: ifo_read.c:1143: ifoRead_C_ADT_internal: Assertion nfo_length /
-sizeof(cell_adr_t) >= c_adt->nr_of_vobs' failed.
- | |||||||||||||||||||||||||
A: | -This is a known libdvdread 0.9.1 bug, it should be already fixed in 0.9.2 and -libmpdvdkit, use the later. - | |||||||||||||||||||||||||
Q: | -Can I compile libdvdread and libdvdcss for example on my sweet Sparc/Solaris? - | |||||||||||||||||||||||||
A: | -Who knows ... Please test it and send feedback. But it's said that it -should work. Please refer documentation of libdvdread and its homepage -as well. We're not authors of libdvdread. - | |||||||||||||||||||||||||
Q: | -What about subtitles? Can MPlayer display them? - | |||||||||||||||||||||||||
A: | -Yes! See above in the DVD chapter. - | |||||||||||||||||||||||||
Q: | -How can I set the region code of my DVD-Drive ? I don't have windows! - | |||||||||||||||||||||||||
A: | -Use the 'regionset' tool: -http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz - | |||||||||||||||||||||||||
Q: | -Do I need to be (setuid) root/setuid fibmap_mplayer to be able to play DVD? - | |||||||||||||||||||||||||
A: | -No, you don't. Only for old-style DVD support. However of course you must have -the proper rights to the DVD device driver entry (in /dev). - | |||||||||||||||||||||||||
Q: | -Where can I get libdvdread and libdvdcss packages from? - | |||||||||||||||||||||||||
A: | -From the site of Ogle: -http://www.dtek.chalmers.se/groups/dvd. - | |||||||||||||||||||||||||
Q: | -Is it possible to play/encode only selected chapters ? - | |||||||||||||||||||||||||
A: |
-Yes, see the -chapter option.
- | |||||||||||||||||||||||||
Q: | -My DVD playing is sluggish ! - | |||||||||||||||||||||||||
A: |
-Use the -cache option (see the manpage!). If it still doesn't
-work, try enabling DMA for the DVD drive.
- | |||||||||||||||||||||||||