1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>12.7.�Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="mencoder.html" title="Chapter�12.�Basic usage of MEncoder"><link rel="prev" href="menc-feat-streamcopy.html" title="12.6.�Stream copying"><link rel="next" href="menc-feat-extractsub.html" title="12.8.�Extracting DVD subtitles to VOBsub file"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter�1.�Introduction"><link rel="chapter" href="install.html" title="Chapter�2.�Installation"><link rel="chapter" href="usage.html" title="Chapter�3.�Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter�4.�CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter�5.�Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter�6.�Containers"><link rel="chapter" href="codecs.html" title="Chapter�7.�Codecs"><link rel="chapter" href="video.html" title="Chapter�8.�Video output devices"><link rel="chapter" href="audio.html" title="Chapter�9.�Audio output devices"><link rel="chapter" href="tv.html" title="Chapter�10.�TV"><link rel="chapter" href="ports.html" title="Chapter�11.�Ports"><link rel="chapter" href="mencoder.html" title="Chapter�12.�Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter�13.�Encoding with MEncoder"><link rel="appendix" href="mailinglists.html" title="Appendix�A.�Mailing lists"><link rel="appendix" href="bugreports.html" title="Appendix�B.�How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix�C.�Known bugs"><link rel="appendix" href="skin.html" title="Appendix�D.�MPlayer skin format"><link rel="appendix" href="users-vs-dev.html" title="Appendix�E.�Developer cries"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">12.7.�Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="menc-feat-streamcopy.html">Prev</a>�</td><th width="60%" align="center">Chapter�12.�Basic usage of <span class="application">MEncoder</span></th><td width="20%" align="right">�<a accesskey="n" href="menc-feat-extractsub.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="menc-feat-enc-images"></a>12.7.�Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</h2></div></div></div><p>
2
<span class="application">MEncoder</span> is capable of creating movies from one
3
or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG
4
(Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
5
</p><div class="orderedlist"><p class="title"><b>Explanation of the process:</b></p><ol type="1"><li><p>
6
<span class="application">MEncoder</span> <span class="emphasis"><em>decodes</em></span> the input image(s) with
7
<code class="systemitem">libjpeg</code> (when decoding PNGs, it
8
will use <code class="systemitem">libpng</code>).
10
<span class="application">MEncoder</span> then feeds the decoded image to the
11
chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).
12
</p></li></ol></div><p><b>Examples.�</b>
13
The explanation of the <tt class="option">-mf</tt> option is in the man page.
15
</p><div class="informalexample"><p>
16
Creating an MPEG-4 file from all the JPEG files in the current directory:
17
</p><pre class="screen">
18
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <em class="replaceable"><code>output.avi</code></em>
22
</p><div class="informalexample"><p>
23
Creating an MPEG-4 file from some JPEG files in the current directory:
24
</p><pre class="screen">
25
mencoder mf://<em class="replaceable"><code>frame001.jpg,frame002.jpg</code></em> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <em class="replaceable"><code>output.avi</code></em>
29
</p><div class="informalexample"><p>
30
Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory
31
contains the list of files to use as source, one per line):
32
</p><pre class="screen">
33
mencoder mf://<em class="replaceable"><code>@list.txt</code></em> -mf w=800:h=600:fps=25:type=jpg \
34
-ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <em class="replaceable"><code>output.avi</code></em>
38
</p><div class="informalexample"><p>
39
Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current
41
</p><pre class="screen">
42
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <em class="replaceable"><code>output.avi</code></em>
46
</p><div class="informalexample"><p>
47
Creating an uncompressed file from all the PNG files in the current directory:
48
</p><pre class="screen">
49
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <em class="replaceable"><code>output.avi</code></em>
53
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
54
Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format.
57
</p><div class="informalexample"><p>
58
Creating a Motion PNG (MPNG) file from all the PNG files in the current
60
</p><pre class="screen">
61
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <em class="replaceable"><code>output.avi</code></em> </pre><p>
64
</p><div class="informalexample"><p>
65
Creating a Motion TGA (MTGA) file from all the TGA files in the current
67
</p><pre class="screen">
68
mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <em class="replaceable"><code>output.avi</code></em></pre><p>
71
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="menc-feat-streamcopy.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="mencoder.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="menc-feat-extractsub.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">12.6.�Stream copying�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�12.8.�Extracting DVD subtitles to VOBsub file</td></tr></table></div></body></html>