You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.9KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle Video Filter Documentation
  3. @titlepage
  4. @sp 7
  5. @center @titlefont{Video Filter Documentation}
  6. @sp 3
  7. @end titlepage
  8. @chapter Introduction
  9. Libavfilter is the filtering API of FFmpeg. It is the substitute of the
  10. now deprecated 'vhooks' and started as a Google Summer of Code project.
  11. Integrating libavfilter into the main FFmpeg repository is a work in
  12. progress. If you wish to try the unfinished development code of
  13. libavfilter then check it out from the libavfilter repository into
  14. some directory of your choice by:
  15. @example
  16. svn checkout svn://svn.ffmpeg.org/soc/libavfilter
  17. @end example
  18. And then read the README file in the top directory to learn how to
  19. integrate it into ffmpeg and ffplay.
  20. But note that there may still be serious bugs in the code and its API
  21. and ABI should not be considered stable yet!
  22. In libavfilter, it is possible for filters to have multiple inputs and
  23. multiple outputs.
  24. To illustrate the sorts of things that are possible, we can
  25. use a complex filter graph. For example, the following one:
  26. @example
  27. input --> split --> fifo -----------------------> overlay --> output
  28. | ^
  29. | |
  30. +------> fifo --> crop --> vflip --------+
  31. @end example
  32. splits the stream in two streams, sends one stream through the crop filter
  33. and the vflip filter before merging it back with the other stream by
  34. overlaying it on top. You can use the following command to achieve this:
  35. @example
  36. ./ffmpeg -i in.avi -s 240x320 -vfilters "[in] split [T1], fifo, [T2] overlay= 0:240 [out]; [T1] fifo, crop=0:0:-1:240, vflip [T2]
  37. @end example
  38. where input_video.avi has a vertical resolution of 480 pixels. The
  39. result will be that in output the top half of the video is mirrored
  40. onto the bottom half.
  41. Video filters are loaded using the @var{-vfilters} option passed to
  42. ffmpeg or to ffplay. Filters in the same linear chain are separated by
  43. commas. In our example, @var{split, fifo, overlay} are in one linear
  44. chain, and @var{fifo, crop, vflip} are in another. The points where
  45. the linear chains join are labeled by names enclosed in square
  46. brackets. In our example, that is @var{[T1]} and @var{[T2]}. The magic
  47. labels @var{[in]} and @var{[out]} are the points where video is input
  48. and output.
  49. Some filters take in input a list of parameters: they are specified
  50. after the filter name and an equal sign, and are separated each other
  51. by a semicolon.
  52. There exist so-called @var{source filters} that do not have a video
  53. input, and we expect in the future some @var{sink filters} that will
  54. not have video output.
  55. @chapter Available video filters
  56. When you configure your FFmpeg build, you can disable any of the
  57. existing video filters.
  58. The configure output will show the video filters included in your
  59. build.
  60. Below is a description of the currently available video filters.
  61. @section null
  62. Pass the source unchanged to the output.
  63. @bye