# HG changeset patch # User gabucino # Date 1012226489 0 # Node ID 970a09005860c7ccb4f951441f4b23adb6c6587f # Parent a07b7233930b6d575f2761cfccd29d77eebe39ef 3-pass encoding dox diff -r a07b7233930b -r 970a09005860 DOCS/Hungarian/documentation.html --- a/DOCS/Hungarian/documentation.html Mon Jan 28 08:37:58 2002 +0000 +++ b/DOCS/Hungarian/documentation.html Mon Jan 28 14:01:29 2002 +0000 @@ -140,7 +140,7 @@
2.4.3.1. 2 menetes DivX4 enkódolása
+2.4.3.1. 2, 3 menetes DivX4 enkódolása
-Az elnevezés onnan jön, hogy ezzel a módszerrel a file kétszer lesz -enkódolva. Az első menet néhány pár Mb-os ideiglenes (*.log) file-t hoz létre, -amiket egyelőre nem szabad törölni (az AVI törölhető, ugyanolyan mintha -pass -opciók nélkül keletkezett volna). A második menetben keletkezik a tényleges -2 menetes DivX, az ideiglenes file-ok adataiből. A keletkező file az -egy menetesekhez képest sokkal jobb minőséggel és kisebb mérettel bír. Ha most -hallassz erről először, jobb ha keresel a neten egy útmutatót.
+2 menetes enkódolás : az elnevezés onnan jön, hogy ezzel a + módszerrel a file kétszer lesz enkódolva. Az első menet néhány pár + Mb-os ideiglenes (*.log) file-t hoz létre, amiket egyelőre nem szabad törölni + (az AVI törölhető, ugyanolyan mintha -pass opciók nélkül keletkezett volna). + A második menetben keletkezik a tényleges 2 menetes DivX, az ideiglenes + file-ok adataiből. A keletkező file az egy menetesekhez képest sokkal jobb + minőséggel és kisebb mérettel bír. Ha most hallassz erről először, jobb ha + keresel a neten egy útmutatót.
A következő példa egy DVD 2 menetes DivX4 AVI-ba történő enkódolását
mutatja be. Csak két parancs szükséges :
- mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100
--o movie.avi -pass 1
- mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2
rm frameno.avi
- töröld ezt a file-t,
+ ami egy esetleges előző 3 menetes enkódolásból származhat mencoder -dvd 2 -divx4opts br=1100
+ -o movie.avi -pass 1
+ mencoder -dvd 2 -divx4opts br=1100
+ -o movie.avi -pass 2
+
+3 menetes enkódolás : ez egyfajta bővített kétmenetes + enkódolás. A különbség abban áll hogy itt az audio enkódolása külön + menetben történik, ezáltal lehetővé válik annak megbecslése hogy az adott + filmet milyen bitrátával kell tömöríteni hogy ráférjen egy 650, 700 vagy + 800Mb-os CD-re, és ezt a MEncoder ki is számolja. Továbbá, ilyenkor + az audio csak egyszer kerül enkódolásra, ellentétben a 2 menetes móddal. + A használata a következő :
+ ++
+ rm frameno.avi |
+ + egy esetleges előző 3 menetes enkódolásból származó file törlése, + mely konfliktolhat a most következővel | +
+ mencoder <file/DVD> -ovc frameno -o
+ frameno.avi |
+
+ Első menet : egy csak audiot tartalmazó AVI file jön létre,
+ ami a kért formátumban tartalmazza az audio streamet. Ha akarod
+ használhatod a -lameopts opciót. Ha ez egy hosszabb film,
+ e menet végén a MEncoder kiírja hogy mekkora bitrate-tel tömöríts
+ a következő menetekben hogy a film ráférjen egy 650, 700 vagy 800Mb-os
+ CD-re. |
+
+ mencoder <file/DVD> -oac copy -pass 1
+ -divx4opts br=<bitrate> |
+ + Második menet : alias a DivX4 video enkódolás első menete. + Opcionálisan megadhatod azt a bitrate-et amit a MEncoder az előző + menet végén kiírt, lásd feljebb. | +
+ mencoder <file/DVD> -oac copy -pass 2
+ -divx4opts br=<bitrate> |
+
+ Harmadik menet : alias a DivX4 video enkódolás második menete.
+ Opcionálisan megadhatod azt a bitrate-et amit a MEncoder az előző
+ menet végén kiírt, lásd feljebb. Ebben a menetben a
+ frameno.avi -ban levő audio belekerül a célfileba..
+ és kész is az egész! |
+
Példa a 3 menetes enkódolásra :
+ + rm frameno.avi
- esetlegesen egy előző
+ enkódolásbol származó file törlése (bezavar a most következőnek)
+ mencoder -dvd 2 -ovc frameno
+ -o frameno.avi
+ mencoder -dvd 2
+ -divx4opts br=1100 -oac copy -o movie.avi -pass 1
+
+ mencoder -dvd 2 -divx4opts
+ br=1100 -oac copy -o movie.avi -pass 2
MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies -(AVI/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable formats (see -below). Currently it's in beta stage, and encodes only to DivX4 (1 or 2 -passes) video, PCM/MP3/VBRMP3 audio. Also has stream -copying abilities. In the future, there will be cropping, resizing filters, and -other interesting stuff.
+(AVI/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable +formats (see below). It can encode with various codecs, like DivX4 (1 or +2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has +stream copying and video resizing abilities. @@ -54,7 +53,7 @@ libavcodec2.4.3.1. Encoding 2-pass DivX4
+2.4.3.1. Encoding 2 or 3-pass DivX4
-The name comes from the fact that this method encodes the file twice. +
2-pass encoding : the name comes from the fact that this method encodes the file twice. The first encoding (dubbed pass) creates some temporary files (*.log) with a size of few megabytes, do not delete them yet (you can delete the AVI). In the second pass, the 2-pass output file is created, using the bitrate data from the temporary files. The resulting @@ -88,9 +87,71 @@
This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two
commands are needed :
- mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100
+
rm frameno.avi
- remove this file, which
+ can come from a previous 3-pass encoding (it interferes with current one)
+ mencoder -dvd 2 -divx4opts br=1100
-o movie.avi -pass 1
- mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2
3-pass encoding : this is an extension of 2-pass encoding, + where the audio encoding takes place in a separate pass. This method enables + estimation of recommended video bitrate in order to fit on a CD. Also, the + audio is encoded only once, unlike in 2-pass mode. The schematics :
+ ++
+ rm frameno.avi |
+ + remove conflicting temporary file | +
+ mencoder <file/DVD> -ovc frameno -o
+ frameno.avi |
+
+ First pass : an audio-only avi file will be created, containing
+ ONLY the requested audio stream. Don't forget -lameopts , if
+ you need to set it. If you were encoding a long movie, MEncoder prints
+ the recommended bitrate values for 650Mb, 700Mb, and 800Mb destination
+ sizes, after this pass finishes. |
+
+ mencoder <file/DVD> -oac copy -pass 1
+ -divx4opts br=<bitrate> |
+ + Second pass : alias the first pass of DivX4 video encoding. + Optionally specify the video bitrate MEncoder printed at the end of the + previous pass. | +
+ mencoder <file/DVD> -oac copy -pass 2
+ -divx4opts br=<bitrate> |
+
+ Third pass : alias the second pass of DivX4 video encoding.
+ Optionally specify the video bitrate MEncoder printed at the end of the
+ previous pass. In this pass, audio from frameno.avi will be
+ inserted into the destination file.. and it's all ready! |
+
Example for 3-pass encoding :
+ + rm frameno.avi
- remove this file,
+ which can come from a previous 3-pass encoding (it interferes with current
+ one)
+ mencoder -dvd 2 -ovc frameno
+ -o frameno.avi
+ mencoder -dvd 2
+ -divx4opts br=1100 -oac copy -o movie.avi -pass 1
+
+ mencoder -dvd 2
+ -divx4opts br=1100 -oac copy -o movie.avi -pass 2