# HG changeset patch # User gabucino # Date 1015152843 0 # Node ID 40b48a0a780e83f67cff2e4e74e6734e4e19a0f8 # Parent 8e6ccd3e53254d290cc6e581536a297619592ce0 documented Multifile JPEG/PNG input (-mf) diff -r 8e6ccd3e5325 -r 40b48a0a780e DOCS/Hungarian/documentation.html --- a/DOCS/Hungarian/documentation.html Sun Mar 03 09:01:47 2002 +0000 +++ b/DOCS/Hungarian/documentation.html Sun Mar 03 10:54:03 2002 +0000 @@ -151,6 +151,7 @@
vcodec
opciónak, pl : -lavcopts vcodec=msmpeg4
+2.4.3.6. Enkódolás több bemeneti file-ból (JPEG, PNG)
+ +A MEncoder képes több JPEG vagy PNG file-ból filmet létrehozni. + Egyszerű framecopy használatával pedig MJPEG (Motion JPEG) vagy MPNG + (Motion PNG) filmek hozhatók létre.
+ +A folyamat magyarázata
+ +Először a MEncoder dekódolja a bemeneti fileokat egy
+ rendelkezésre álló és szabadonválasztott MJPEG dekóderrel (PNG-k dekódolása
+ esetén csak a beépitett PNG dekóder használható). Alapértelmezésben az
+ ffmjpeg
codec-et próbálja használni, így ajánlott libavcodec-kel
+ fordítani. Ennek a codecnek a legnagyobb hátránya hogy bizonyos JPEG
+ fileokat nem tud kezelni (ilyenkor zöld kimenet látható). Ilyenkor különböző
+ képkonvertáló programokkal előtte konvertáld át ezeket a MEncoder
+ által is emészthető formába.
+ Választhatsz más dekódert is, például az mcmjpg32.dll
-t
+ (MainConcept Motion JPEG). Ilyenkor meg kell nézni a codecs.conf
+ fileban hogy az adott codecre milyen névvel lehet hivatkozni (videocodec
+ sor), és utána ezt a nevet a -vc
opció után írni. A fenti
+ példát véve: -vc mjpeg
+
A MEncoder ezután a kiválasztott kimeneti codecnek adja a + dekódolt képet (pl DivX4, Xvid, ffmpeg msmpeg4, stb). Vigyázat: a PNG + dekóder jelenleg csak RGB formátumú képek kiadására képes, így nem + használható olyan codecekkel amelyek YUV formátumot várnak. Ilyen + például a DivX4, vagy az ffmpeg-beli msmpeg4.
+ +Példák
+ +Az -mf
opció magyarázata a lenti összefoglaló
+ Opciók fejezetben, illetve a manpage-ben található.
DivX4 film létrehozása az aktuális könyvtárban található összes JPEG fileból :
+ mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc divx4 -o
+ kimenet.avi
MJPEG (Motion JPEG) film létrehozása az aktuális könyvtárban található összes JPEG fileból :
+ mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc copy
+ -o kimenet.avi
Tömörítetlen film létrehozása az aktuális könyvtárban található összes PNG fileból :
+ mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc raw -o
+ kimenet.avi
MPNG (Motion PNG) film létrehozása az aktuális könyvtárban található összes PNG fileból :
+ mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc copy
+ -o kimenet.avi
mencoder [opciók] [bemeneti file] [opciók] ...
mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg
+2.4.3.6. Encoding from multiple input image files (JPEGs or PNGs)
+ +MEncoder is capable of creating movies from one or more JPEG or PNG + files. With simple framecopy it can create MJPEG (Motion JPEG) or MPNG + (Motion PNG) files.
+ +Explanation of the process
+ +MEncoder decodes the input image(s) with an available MJPEG
+ video codec (when decoding PNGs, it will use the internal PNG decoder). By
+ default it uses ffmjpeg
, so you have to compile with libavcodec
+ support (which is recommended anyways). Its disadvantage is that it can't
+ handle some JPEG types (green image will be encoded for these). Use some
+ external utility to convert those images into edible format.
You can
+ freely choose any other MJPEG decoder, like mcmjpg32.dll
+ (MainConcept Motion JPEG) if installed, and after checking
+ codecs.conf
and checking the videocodec
line which
+ refers to this file, you'll learn you have to use the -vc mjpeg
+ option for it.
+
MEncoder then feeds the decoded image to the chosen video compressor + (DivX4, Xvid, ffmpeg msmpeg4, etc...). Watch for the PNG decoder, as + currently it can output only to RGB formats, thus can't be used with codecs + that require YUV as input, like DivX4 or ffmpeg's msmpeg4.
+ +Examples
+ +The explanation of the -mf
option can be found below in the
+ global Options section and in the manpage.
Creating a DivX4 file from all the JPEG files in the current dir :
+ mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc divx4 -o
+ output.avi
Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current dir :
+ mencoder \*.jpg -mf on:w=800:h=600:fps=25 -ovc copy
+ -o output.avi
Creating an uncompressed file from all the PNG files in the current dir :
+ mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc raw -o
+ output.avi
Creating a Motion PNG (MPNG) file from all the PNG files in the current dir :
+ mencoder \*.png -mf on:w=800:h=600:fps=25:type=png -ovc copy
+ -o output.avi
mencoder [options] [input file] [options] ...
jpeg
, png
)-divx4opts br=1800:deinterlace:key=250
-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250