From dbc39da0e6b5cb1e3abbecb0e07b6cf213916650 Mon Sep 17 00:00:00 2001
From: gabucino
Bevezető
+ Bevezető
A MEncoder (MPlayer's Movie Encoder) egy egyszerű film
enkóder, az MPlayer által lejátszható formátumok
(AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) más - MPlayerrel lejátszható -
@@ -15,7 +15,7 @@ Jelenleg b
stream másoló képességgel. A közeljövőben tervezzük vágó, átméretező filterek
beépítését, és hasonlókat. 2 menetes DivX4 enkódolása 2 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 file-t hoz létre, amiket
@@ -87,11 +88,52 @@ mutatja be. Csak k
-o movie.avi -pass 1 Szintaxis Átméretezés Gyakran előjön a filmek átméretezésének igénye. Ennek oka sokféle lehet,
+ például a fileméret csökkentése, vagy SVCD-ből DivX-be kódolás. A rippelt
+ DVD-ket legtöbbször átméretezik (például egy 4:3-as DVD-t 640x480-ra),
+ különösen akkor ha a cél az 1 CD-s méret és ezzel együtt a jó minőség is.
+ Az SVCD-k képmérete 480x480, és a lejátszóprogramok az ezen fileok
+ fejlécében található aspektusinformáció alapján számítják ki a megjelenítendő
+ kép méretét (pl.: 480x480 + 4:3 = 640x480). Ezért AVI (DivX) file-okba
+ történő kódolásnál figyelembe kell venni azt is, hogy az AVI file-ok ezen
+ információ eltárolására nem képesek. Így az egyetlen megoldás az átméretezés. Opciók A kimeneti file képméretét az Az átméretezés egyszerű : Stream másolása A MEncoder kétféleképpen tudja a bemeneti stream-eket kezelni :
+ enkódolja vagy csak átmásolja őket. Ez a rész a másolásról
+ szól.
+
mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2mencoder [opciók] <bemeneti file> [opciók] ...
-x
és -y
opciókkal
+ lehet megadni. Ezenkívül 3 féle átméretezőszűrő közül is lehet választani,
+ 0 : gyors bilinear, 1 : bilinear, 2 : bicubic (ennek
+ van a legjobb minősége). Ezt az -sws
opcióval lehet megadni.
+ Alapértelmezett a 0 : gyors bilinear.
+ mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi
+
+-ovc copy
opció) : érdekes dolgokat
+ lehet vele csinálni :)
+ Mint például FLI vagy VIVO vagy MPEG1 video másolása AVI file-ba !
+ Persze az ilyen videokat csak az MPlayer tudja lejátszani :) És
+ ezeknek a haszna gyakorlatilag nulla. A racionális felhasználása ennek
+ például amikor csak az audio stream-et kell enkódolni (pl tömörítetlen
+ PCM-et MP3-ba).-oac copy
opció) : egyértelmű.
Szintaxis
+ + mencoder [opciók] [bemeneti file] [opciók] ...
Opciók
Megj.: az összes rendelkezésre álló opcióhoz olvasd el a manpage-t !
@@ -192,13 +234,16 @@ mutatja be. Csak k -Példák
+Példák
A MEncoder használata a legkönnyebb dolog a Földön.
A DVD 2-es fejezetének enkódolása :
mencoder -dvd 2 -o title2.avi
A DVD 2-es fejezetének enkódolása, átméretezéssel :
+ mencoder -dvd 2 -x 640 -y 480 -sws 2 -o title2.avi
Enkódolás HTTP-ről :
mencoder http://mplayer.hq/example.avi -o example.avi
Overview
+ Overview
MEncoder (MPlayer's Movie Encoder) is a simple movie encoder,
designed to encode MPlayer-playable movies
(AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) to other MPlayer-playable formats (see
@@ -14,7 +14,7 @@ passes) video, PCM/MP3/VBRMP3 audio. Also has stream
copying abilities. In the future, there will be cropping, resizing filters, and
other interesting stuff. You are ready. As you probably know, other encoding tools need the
avifile library installed. MEncoder doesn't need it at all. MEncoder features :
+ MEncoder features :
-ofps
option (useful when encoding
29.97fps VOB to 24fps AVI)
Encoding 2-pass DivX4
+Encoding 2-pass DivX4
The name comes from the fact that this method encodes the file twice.
The first encoding (dubbed pass) creates some temporary files with a
@@ -82,11 +83,49 @@ commands are needed :
-o movie.avi -pass 1
mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2
Syntax
+Rescaling movies
- mencoder [options] <input file> [options] ...
Often the need to resize movie images' size emerges. Its reasons can be many, + examples are decreasing output file size, encoding SVCDs to DivX. Ripped DVDs + are mostly rescaled, for example a 4:3 DVD should be 640x480, especially + when you want it to fit to 1 CD, and have good quality at the same time. + SVCDs have 480x480 size, and their header contains the aspect ratio the + player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to + AVI (DivX) files, you have be aware that AVI headers don't store this + value. Thus, the only solution is rescaling.
-Available options
+The output size is specified with the -x
, and -y
+ options. Furthermore, there are 3 rescaling filters in MEncoder, 0
+ : fast 1 : bilinear, 2 : bilinear, bicubic (best quality).
+ They can be specified with the -sws
option. If not specified,
+ MEncoder will use 0 : fast bilinear.
Rescaling is very simple :
+ mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi
Stream copying
+ +MEncoder can handle input streams in two ways : encode or + copy them. This section is about copying.
+ ++
-ovc copy
) : nice stuff can be done :)-oac copy
) : straightforward.Syntax
+ + mencoder [options] [input file] [options] ...
Available options
NOTE : for all available options, read the manpage !
@@ -187,13 +226,16 @@ commands are needed :Examples
+Examples
Using MEncoder is the easiest thing on Earth. See the following :
Encoding from DVD, title 2 :
mencoder -dvd 2 -o title2.avi
Encoding from DVD, title 2, with rescaling :
+ mencoder -dvd 2 -x 640 -y 480 -sws 2 -o title2.avi
Encoding from HTTP :
mencoder http://mplayer.hq/example.avi -o example.avi