3 <!-- Created by texi2html
1.56k from ffmpeg-doc.texi on
19 November
2002 --
>
5 <TITLE>FFmpeg Documentation
</TITLE>
8 <H1>FFmpeg Documentation
</H1>
11 <H1>Table of Contents
</H1>
13 <LI><A NAME=
"TOC1" HREF=
"ffmpeg-doc.html#SEC1">1. Introduction
</A>
14 <LI><A NAME=
"TOC2" HREF=
"ffmpeg-doc.html#SEC2">2. Quick Start
</A>
16 <LI><A NAME=
"TOC3" HREF=
"ffmpeg-doc.html#SEC3">2.1 Video and Audio grabbing
</A>
17 <LI><A NAME=
"TOC4" HREF=
"ffmpeg-doc.html#SEC4">2.2 Video and Audio file format convertion
</A>
19 <LI><A NAME=
"TOC5" HREF=
"ffmpeg-doc.html#SEC5">3. Invocation
</A>
21 <LI><A NAME=
"TOC6" HREF=
"ffmpeg-doc.html#SEC6">3.1 Syntax
</A>
22 <LI><A NAME=
"TOC7" HREF=
"ffmpeg-doc.html#SEC7">3.2 Main options
</A>
23 <LI><A NAME=
"TOC8" HREF=
"ffmpeg-doc.html#SEC8">3.3 Video Options
</A>
24 <LI><A NAME=
"TOC9" HREF=
"ffmpeg-doc.html#SEC9">3.4 Audio Options
</A>
25 <LI><A NAME=
"TOC10" HREF=
"ffmpeg-doc.html#SEC10">3.5 Advanced options
</A>
26 <LI><A NAME=
"TOC11" HREF=
"ffmpeg-doc.html#SEC11">3.6 Protocols
</A>
28 <LI><A NAME=
"TOC12" HREF=
"ffmpeg-doc.html#SEC12">4. Tips
</A>
29 <LI><A NAME=
"TOC13" HREF=
"ffmpeg-doc.html#SEC13">5. Supported File Formats and Codecs
</A>
31 <LI><A NAME=
"TOC14" HREF=
"ffmpeg-doc.html#SEC14">5.1 File Formats
</A>
32 <LI><A NAME=
"TOC15" HREF=
"ffmpeg-doc.html#SEC15">5.2 Video Codecs
</A>
33 <LI><A NAME=
"TOC16" HREF=
"ffmpeg-doc.html#SEC16">5.3 Audio Codecs
</A>
35 <LI><A NAME=
"TOC17" HREF=
"ffmpeg-doc.html#SEC17">6. Platform Specific information
</A>
37 <LI><A NAME=
"TOC18" HREF=
"ffmpeg-doc.html#SEC18">6.1 Linux
</A>
38 <LI><A NAME=
"TOC19" HREF=
"ffmpeg-doc.html#SEC19">6.2 BSD
</A>
39 <LI><A NAME=
"TOC20" HREF=
"ffmpeg-doc.html#SEC20">6.3 Windows
</A>
40 <LI><A NAME=
"TOC21" HREF=
"ffmpeg-doc.html#SEC21">6.4 MacOS X
</A>
41 <LI><A NAME=
"TOC22" HREF=
"ffmpeg-doc.html#SEC22">6.5 BeOS
</A>
43 <LI><A NAME=
"TOC23" HREF=
"ffmpeg-doc.html#SEC23">7. Developpers Guide
</A>
45 <LI><A NAME=
"TOC24" HREF=
"ffmpeg-doc.html#SEC24">7.1 API
</A>
46 <LI><A NAME=
"TOC25" HREF=
"ffmpeg-doc.html#SEC25">7.2 Integrating libavcodec or libavformat in your program
</A>
47 <LI><A NAME=
"TOC26" HREF=
"ffmpeg-doc.html#SEC26">7.3 Coding Rules
</A>
48 <LI><A NAME=
"TOC27" HREF=
"ffmpeg-doc.html#SEC27">7.4 Submitting patches
</A>
49 <LI><A NAME=
"TOC28" HREF=
"ffmpeg-doc.html#SEC28">7.5 Regression tests
</A>
60 <H1><A NAME=
"SEC1" HREF=
"ffmpeg-doc.html#TOC1">1. Introduction
</A></H1>
63 FFmpeg is a very fast video and audio converter. It can also grab from
64 a live audio/video source.
66 The command line interface is designed to be intuitive, in the sense
67 that ffmpeg tries to figure out all the parameters, when
68 possible. You have usually to give only the target bitrate you want.
72 FFmpeg can also convert from any sample rate to any other, and resize
73 video on the fly with a high quality polyphase filter.
78 <H1><A NAME=
"SEC2" HREF=
"ffmpeg-doc.html#TOC2">2. Quick Start
</A></H1>
82 <H2><A NAME=
"SEC3" HREF=
"ffmpeg-doc.html#TOC3">2.1 Video and Audio grabbing
</A></H2>
85 FFmpeg can use a video4linux compatible video source and any Open Sound
93 Note that you must activate the right video source and channel
94 before launching ffmpeg. You can use any TV viewer such as xawtv by
95 Gerd Knorr which I find very good. You must also set correctly the
96 audio recording levels with a standard mixer.
101 <H2><A NAME=
"SEC4" HREF=
"ffmpeg-doc.html#TOC4">2.2 Video and Audio file format convertion
</A></H2>
104 * ffmpeg can use any supported file format and protocol as input:
112 * You can input from YUV files:
117 ffmpeg -i /tmp/test%d.Y /tmp/out.mpg
121 It will use the files:
124 /tmp/test0.Y, /tmp/test0.U, /tmp/test0.V,
125 /tmp/test1.Y, /tmp/test1.U, /tmp/test1.V, etc...
129 The Y files use twice the resolution of the U and V files. They are
130 raw files, without header. They can be generated by all decent video
131 decoders. You must specify the size of the image with the '-s' option
132 if ffmpeg cannot guess it.
136 * You can input from a RAW YUV420P file:
141 ffmpeg -i /tmp/test.yuv /tmp/out.avi
145 The RAW YUV420P is a file containing RAW YUV planar, for each frame first
146 come the Y plane followed by U and V planes, which are half vertical and
147 horizontal resolution.
151 * You can output to a RAW YUV420P file:
156 ffmpeg -i mydivx.avi -o hugefile.yuv
160 * You can set several input files and output files:
165 ffmpeg -i /tmp/a.wav -s
640x480 -i /tmp/a.yuv /tmp/a.mpg
169 Convert the audio file a.wav and the raw yuv video file a.yuv
174 * You can also do audio and video convertions at the same time:
179 ffmpeg -i /tmp/a.wav -ar
22050 /tmp/a.mp2
183 Convert the sample rate of a.wav to
22050 Hz and encode it to MPEG audio.
187 * You can encode to several formats at the same time and define a
188 mapping from input stream to output streams:
193 ffmpeg -i /tmp/a.wav -ab
64 /tmp/a.mp2 -ab
128 /tmp/b.mp2 -map
0:
0 -map
0:
0
197 Convert a.wav to a.mp2 at
64 kbits and b.mp2 at
128 kbits. '-map
198 file:index' specify which input stream is used for each output
199 stream, in the order of the definition of output streams.
203 * You can transcode decrypted VOBs
208 ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b
800 -g
300 -bf
2 -acodec mp3 -ab
128 snatch.avi
212 This is a typicall DVD ripper example, input from a VOB file, output
213 to an AVI file with MPEG-
4 video and MP3 audio, note that in this
214 command we use B frames so the MPEG-
4 stream is DivX5 compatible, GOP
215 size is
300 that means an INTRA frame every
10 seconds for
29.97 fps
216 input video. Also the audio stream is MP3 encoded so you need LAME
217 support which is enabled using
<CODE>--enable-mp3lame
</CODE> when
218 configuring. The mapping is particullary usefull for DVD transcoding
219 to get the desired audio language.
223 NOTE: to see the supported input formats, use
<CODE>ffmpeg -formats
</CODE>.
228 <H1><A NAME=
"SEC5" HREF=
"ffmpeg-doc.html#TOC5">3. Invocation
</A></H1>
232 <H2><A NAME=
"SEC6" HREF=
"ffmpeg-doc.html#TOC6">3.1 Syntax
</A></H2>
235 The generic syntax is:
240 ffmpeg [[options][-i input_file]]... {[options] output_file}...
244 If no input file is given, audio/video grabbing is done.
248 As a general rule, options are applied to the next specified
249 file. For example, if you give the '-b
64' option, it sets the video
250 bitrate of the next file. Format option may be needed for raw input
255 By default, ffmpeg tries to convert as losslessly as possible: it
256 uses the same audio and video parameter fors the outputs as the one
257 specified for the inputs.
262 <H2><A NAME=
"SEC7" HREF=
"ffmpeg-doc.html#TOC7">3.2 Main options
</A></H2>
266 <DT><SAMP>`-L'
</SAMP>
269 <DT><SAMP>`-h'
</SAMP>
272 <DT><SAMP>`-formats'
</SAMP>
274 show available formats, codecs, protocols, ...
275 <DT><SAMP>`-f fmt'
</SAMP>
278 <DT><SAMP>`-i filename'
</SAMP>
282 <DT><SAMP>`-y'
</SAMP>
284 overwrite output files
286 <DT><SAMP>`-t duration'
</SAMP>
288 set the recording time in seconds.
<CODE>hh:mm:ss[.xxx]
</CODE> syntax is also
291 <DT><SAMP>`-title string'
</SAMP>
295 <DT><SAMP>`-author string'
</SAMP>
299 <DT><SAMP>`-copyright string'
</SAMP>
303 <DT><SAMP>`-comment string'
</SAMP>
307 <DT><SAMP>`-b bitrate'
</SAMP>
309 set video bitrate (in kbit/s)
314 <H2><A NAME=
"SEC8" HREF=
"ffmpeg-doc.html#TOC8">3.3 Video Options
</A></H2>
318 <DT><SAMP>`-s size'
</SAMP>
320 set frame size [
160x128]
321 <DT><SAMP>`-r fps'
</SAMP>
324 <DT><SAMP>`-b bitrate'
</SAMP>
326 set the video bitrate in kbit/s [
200]
327 <DT><SAMP>`-vn'
</SAMP>
329 disable video recording [no]
330 <DT><SAMP>`-bt tolerance'
</SAMP>
332 set video bitrate tolerance (in kbit/s)
333 <DT><SAMP>`-sameq'
</SAMP>
335 use same video quality as source (implies VBR)
337 <DT><SAMP>`-pass n'
</SAMP>
339 select the pass number (
1 or
2). It is useful to do two pass encoding. The statistics of the video are recorded in the first pass and the video at the exact requested bit rate is generated in the second pass.
341 <DT><SAMP>`-passlogfile file'
</SAMP>
343 select two pass log file name
349 <H2><A NAME=
"SEC9" HREF=
"ffmpeg-doc.html#TOC9">3.4 Audio Options
</A></H2>
353 <DT><SAMP>`-ab bitrate'
</SAMP>
355 set audio bitrate (in kbit/s)
356 <DT><SAMP>`-ar freq'
</SAMP>
358 set the audio sampling freq [
44100]
359 <DT><SAMP>`-ab bitrate'
</SAMP>
361 set the audio bitrate in kbit/s [
64]
362 <DT><SAMP>`-ac channels'
</SAMP>
364 set the number of audio channels [
1]
365 <DT><SAMP>`-an'
</SAMP>
367 disable audio recording [no]
372 <H2><A NAME=
"SEC10" HREF=
"ffmpeg-doc.html#TOC10">3.5 Advanced options
</A></H2>
376 <DT><SAMP>`-map file:stream'
</SAMP>
378 set input stream mapping
379 <DT><SAMP>`-g gop_size'
</SAMP>
381 set the group of picture size
382 <DT><SAMP>`-intra'
</SAMP>
384 use only intra frames
385 <DT><SAMP>`-qscale q'
</SAMP>
387 use fixed video quantiser scale (VBR)
388 <DT><SAMP>`-qmin q'
</SAMP>
390 min video quantiser scale (VBR)
391 <DT><SAMP>`-qmax q'
</SAMP>
393 max video quantiser scale (VBR)
394 <DT><SAMP>`-qdiff q'
</SAMP>
396 max difference between the quantiser scale (VBR)
397 <DT><SAMP>`-qblur blur'
</SAMP>
399 video quantiser scale blur (VBR)
400 <DT><SAMP>`-qcomp compression'
</SAMP>
402 video quantiser scale compression (VBR)
403 <DT><SAMP>`-vd device'
</SAMP>
406 <DT><SAMP>`-vcodec codec'
</SAMP>
409 <DT><SAMP>`-me method'
</SAMP>
411 set motion estimation method
412 <DT><SAMP>`-bf frames'
</SAMP>
414 use 'frames' B frames (only MPEG-
4)
415 <DT><SAMP>`-hq'
</SAMP>
417 activate high quality settings
418 <DT><SAMP>`-
4mv'
</SAMP>
420 use four motion vector by macroblock (only MPEG-
4)
421 <DT><SAMP>`-ad device'
</SAMP>
424 <DT><SAMP>`-acodec codec'
</SAMP>
427 <DT><SAMP>`-deinterlace'
</SAMP>
430 <DT><SAMP>`-benchmark'
</SAMP>
432 add timings for benchmarking
433 <DT><SAMP>`-hex'
</SAMP>
435 dump each input packet
436 <DT><SAMP>`-psnr'
</SAMP>
438 calculate PSNR of compressed frames
439 <DT><SAMP>`-vstats'
</SAMP>
441 dump video coding statistics to file
446 <H2><A NAME=
"SEC11" HREF=
"ffmpeg-doc.html#TOC11">3.6 Protocols
</A></H2>
449 The filename can be
<TT>`-'
</TT> to read from the standard input or to write
450 to the standard output.
454 ffmpeg handles also many protocols specified with the URL syntax.
458 Use 'ffmpeg -formats' to have a list of the supported protocols.
462 The protocol
<CODE>http:
</CODE> is currently used only to communicate with
463 ffserver (see the ffserver documentation). When ffmpeg will be a
464 video player it will also be used for streaming :-)
469 <H1><A NAME=
"SEC12" HREF=
"ffmpeg-doc.html#TOC12">4. Tips
</A></H1>
473 <LI>For streaming at very low bit rate application, use a low frame rate
475 and a small gop size. This is especially true for real video where
476 the Linux player does not seem to be very fast, so it can miss
477 frames. An example is:
481 ffmpeg -g
3 -r
3 -t
10 -b
50 -s qcif -f rv10 /tmp/b.rm
484 <LI>The parameter 'q' which is displayed while encoding is the current
486 quantizer. The value of
1 indicates that a very good quality could
487 be achieved. The value of
31 indicates the worst quality. If q=
31
488 too often, it means that the encoder cannot compress enough to meet
489 your bit rate. You must either increase the bit rate, decrease the
490 frame rate or decrease the frame size.
492 <LI>If your computer is not fast enough, you can speed up the
494 compression at the expense of the compression ratio. You can use
495 '-me zero' to speed up motion estimation, and '-intra' to disable
496 completly motion estimation (you have only I frames, which means it
497 is about as good as JPEG compression).
499 <LI>To have very low bitrates in audio, reduce the sampling frequency
501 (down to
22050 kHz for mpeg audio,
22050 or
11025 for ac3).
503 <LI>To have a constant quality (but a variable bitrate), use the option
505 '-qscale n' when 'n' is between
1 (excellent quality) and
31 (worst
508 <LI>When converting video files, you can use the '-sameq' option which
510 uses in the encoder the same quality factor than in the decoder. It
511 allows to be almost lossless in encoding.
517 <H1><A NAME=
"SEC13" HREF=
"ffmpeg-doc.html#TOC13">5. Supported File Formats and Codecs
</A></H1>
520 You can use the
<CODE>-formats
</CODE> option to have an exhaustive list.
525 <H2><A NAME=
"SEC14" HREF=
"ffmpeg-doc.html#TOC14">5.1 File Formats
</A></H2>
528 FFmpeg supports the following file formats thru the
<CODE>libavformat
</CODE>
534 <TR><TD>Supported File Format
</TD><TD> Encoding
</TD><TD> Decoding
</TD><TD> Comments
</TD>
537 <TR><TD>MPEG audio
</TD><TD> X
</TD><TD> X
</TD>
540 <TR><TD>MPEG1 systems
</TD><TD> X
</TD><TD> X
</TD>
542 </TD><TD> muxed audio and video
544 <TR><TD>MPEG2 PS
</TD><TD> X
</TD><TD> X
</TD>
546 </TD><TD> also known as
<CODE>VOB
</CODE> file
548 <TR><TD>MPEG2 TS
</TD><TD> </TD><TD> X
</TD>
550 </TD><TD> also known as DVB Transport Stream
552 <TR><TD>ASF
</TD><TD> X
</TD><TD> X
</TD>
555 <TR><TD>AVI
</TD><TD> X
</TD><TD> X
</TD>
558 <TR><TD>WAV
</TD><TD> X
</TD><TD> X
</TD>
561 <TR><TD>Macromedia Flash
</TD><TD> X
</TD><TD> X
</TD>
563 </TD><TD> Only embedded audio is decoded
565 <TR><TD>Real Audio and Video
</TD><TD> X
</TD><TD> X
</TD>
568 <TR><TD>PGM, YUV, PPM, JPEG images
</TD><TD> X
</TD><TD> X
</TD>
571 <TR><TD>Animated GIF
</TD><TD> X
</TD><TD></TD>
573 </TD><TD> Only uncompressed GIFs are generated
575 <TR><TD>Raw AC3
</TD><TD> X
</TD><TD> X
</TD>
578 <TR><TD>Raw MJPEG
</TD><TD> X
</TD><TD> X
</TD>
581 <TR><TD>Raw MPEG video
</TD><TD> X
</TD><TD> X
</TD>
584 <TR><TD>Raw PCM8/
16 bits, mulaw/Alaw
</TD><TD> X
</TD><TD> X
</TD>
587 <TR><TD>SUN AU format
</TD><TD> X
</TD><TD> X
</TD>
590 <TR><TD>Quicktime
</TD><TD> </TD><TD> X
</TD>
593 <TR><TD>MPEG4
</TD><TD> </TD><TD> X
</TD>
595 </TD><TD> MPEG4 is a variant of Quicktime
597 <TR><TD>Raw MPEG4 video
</TD><TD> </TD><TD> X
</TD>
599 </TD><TD> Only small files are supported.
601 <TR><TD>DV
</TD><TD> </TD><TD> X
</TD>
603 </TD><TD> Only the video track is decoded.
607 <CODE>X
</CODE> means that the encoding (resp. decoding) is supported.
612 <H2><A NAME=
"SEC15" HREF=
"ffmpeg-doc.html#TOC15">5.2 Video Codecs
</A></H2>
616 <TR><TD>Supported Codec
</TD><TD> Encoding
</TD><TD> Decoding
</TD><TD> Comments
</TD>
619 <TR><TD>MPEG1 video
</TD><TD> X
</TD><TD> X
</TD>
622 <TR><TD>MPEG2 video
</TD><TD> </TD><TD> X
</TD>
625 <TR><TD>MPEG4
</TD><TD> X
</TD><TD> X
</TD><TD> Also known as DIVX4/
5</TD>
628 <TR><TD>MSMPEG4 V1
</TD><TD> X
</TD><TD> X
</TD>
631 <TR><TD>MSMPEG4 V2
</TD><TD> X
</TD><TD> X
</TD>
634 <TR><TD>MSMPEG4 V3
</TD><TD> X
</TD><TD> X
</TD><TD> Also known as DIVX3
</TD>
637 <TR><TD>WMV7
</TD><TD> X
</TD><TD> X
</TD>
640 <TR><TD>H263(+)
</TD><TD> X
</TD><TD> X
</TD><TD> Also known as Real Video
1.0</TD>
643 <TR><TD>MJPEG
</TD><TD> X
</TD><TD> X
</TD>
646 <TR><TD>DV
</TD><TD> </TD><TD> X
</TD>
649 <TR><TD>Huff YUV
</TD><TD> X
</TD><TD> X
</TD>
654 <CODE>X
</CODE> means that the encoding (resp. decoding) is supported.
658 Check at
<A HREF=
"http://www.mplayerhq.hu/~michael/codec-features.html">http://www.mplayerhq.hu/~michael/codec-features.html
</A> to
659 get a precise comparison of FFmpeg MPEG4 codec compared to the other
665 <H2><A NAME=
"SEC16" HREF=
"ffmpeg-doc.html#TOC16">5.3 Audio Codecs
</A></H2>
669 <TR><TD>Supported Codec
</TD><TD> Encoding
</TD><TD> Decoding
</TD><TD> Comments
</TD>
672 <TR><TD>MPEG audio layer
2 </TD><TD> IX
</TD><TD> IX
</TD>
675 <TR><TD>MPEG audio layer
1/
3 </TD><TD> IX
</TD><TD> IX
</TD>
677 </TD><TD> MP3 encoding is supported thru the external library LAME
679 <TR><TD>AC3
</TD><TD> IX
</TD><TD> X
</TD>
681 </TD><TD> liba52 is used internally for decoding.
683 <TR><TD>Vorbis
</TD><TD> X
</TD><TD></TD>
685 </TD><TD> encoding is supported thru the external library libvorbis.
687 <TR><TD>WMA V1/V2
</TD><TD> </TD><TD> X
</TD>
692 <CODE>X
</CODE> means that the encoding (resp. decoding) is supported.
696 <CODE>I
</CODE> means that an integer only version is available too (ensures highest
697 performances on systems without hardware floating point support).
702 <H1><A NAME=
"SEC17" HREF=
"ffmpeg-doc.html#TOC17">6. Platform Specific information
</A></H1>
706 <H2><A NAME=
"SEC18" HREF=
"ffmpeg-doc.html#TOC18">6.1 Linux
</A></H2>
709 ffmpeg should be compiled with at least GCC
2.95.3. GCC
3.2 is the
710 prefered compiler now for ffmpeg. All futur optimizations will depend on
711 features only found in GCC
3.2.
716 <H2><A NAME=
"SEC19" HREF=
"ffmpeg-doc.html#TOC19">6.2 BSD
</A></H2>
720 <H2><A NAME=
"SEC20" HREF=
"ffmpeg-doc.html#TOC20">6.3 Windows
</A></H2>
724 <H2><A NAME=
"SEC21" HREF=
"ffmpeg-doc.html#TOC21">6.4 MacOS X
</A></H2>
728 <H2><A NAME=
"SEC22" HREF=
"ffmpeg-doc.html#TOC22">6.5 BeOS
</A></H2>
731 The configure script should guess the configuration itself.
732 Networking support is currently not finished.
733 errno issues fixed by Andrew Bachmann.
741 François Revol - revol at free dot fr - April
2002
745 The configure script should guess the configuration itself,
746 however I still didn't tested building on net_server version of BeOS.
750 ffserver is broken (needs poll() implementation).
754 There is still issues with errno codes, which are negative in BeOs, and
755 that ffmpeg negates when returning. This ends up turning errors into
756 valid results, then crashes.
762 <H1><A NAME=
"SEC23" HREF=
"ffmpeg-doc.html#TOC23">7. Developpers Guide
</A></H1>
766 <H2><A NAME=
"SEC24" HREF=
"ffmpeg-doc.html#TOC24">7.1 API
</A></H2>
769 <LI>libavcodec is the library containing the codecs (both encoding and
771 decoding). See
<TT>`libavcodec/apiexample.c'
</TT> to see how to use it.
773 <LI>libavformat is the library containing the file formats handling (mux and
775 demux code for several formats). (no example yet, the API is likely to
781 <H2><A NAME=
"SEC25" HREF=
"ffmpeg-doc.html#TOC25">7.2 Integrating libavcodec or libavformat in your program
</A></H2>
784 You can integrate all the source code of the libraries to link them
785 statically to avoid any version problem. All you need is to provide a
786 'config.mak' and a 'config.h' in the parent directory. See the defines
787 generated by ./configure to understand what is needed.
791 You can use libavcodec or libavformat in your commercial program, but
792 <EM>any patch you make must be published
</EM>. The best way to proceed is
793 to send your patches to the ffmpeg mailing list.
798 <H2><A NAME=
"SEC26" HREF=
"ffmpeg-doc.html#TOC26">7.3 Coding Rules
</A></H2>
801 ffmpeg is programmed in ANSI C language. GCC extensions are
802 tolerated. Indent size is
4. The TAB character should not be used.
806 The presentation is the one specified by 'indent -i4 -kr'.
810 Main priority in ffmpeg is simplicity and small code size (=less
815 Comments: for functions visible from other modules, use the JavaDoc
816 format (see examples in
<TT>`libav/utils.c'
</TT>) so that a documentation
817 can be generated automatically.
822 <H2><A NAME=
"SEC27" HREF=
"ffmpeg-doc.html#TOC27">7.4 Submitting patches
</A></H2>
825 When you submit your patch, try to send a unified diff (diff '-u'
826 option). I cannot read other diffs :-)
830 Run the regression tests before submitting a patch so that you can
831 verify that there is no big problems.
835 Except if your patch is really big and adds an important feature, by
836 submitting it to me, you accept implicitely to put it under my
837 copyright. I prefer to do this to avoid potential problems if
838 licensing of ffmpeg changes.
842 Patches should be posted as base64 encoded attachments (or any other
843 encoding which ensures that the patch wont be trashed during
844 transmission) to the ffmpeg-devel mailinglist, see
845 <A HREF=
"http://lists.sourceforge.net/lists/listinfo/ffmpeg-devel">http://lists.sourceforge.net/lists/listinfo/ffmpeg-devel
</A>
850 <H2><A NAME=
"SEC28" HREF=
"ffmpeg-doc.html#TOC28">7.5 Regression tests
</A></H2>
853 Before submitting a patch (or commiting with CVS), you should at least
854 test that you did not break anything.
858 The regression test build a synthetic video stream and a synthetic
859 audio stream. Then there are encoded then decoded with all codecs or
860 formats. The CRC (or MD5) of each generated file is recorded in a
861 result file. Then a 'diff' is launched with the reference results and
866 Run 'make test' to test all the codecs.
870 Run 'make libavtest' to test all the codecs.
874 [Of course, some patches may change the regression tests results. In
875 this case, the regression tests reference results shall be modified
880 This document was generated on
19 November
2002 using
881 <A HREF=
"http://wwwinfo.cern.ch/dis/texi2html/">texi2html
</A> 1.56k.