hooks.texi 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. \input texinfo @c -*- texinfo -*-
  2. @settitle Video Hook Documentation
  3. @titlepage
  4. @sp 7
  5. @center @titlefont{Video Hook Documentation}
  6. @sp 3
  7. @end titlepage
  8. @chapter Introduction
  9. The video hook functionality is designed (mostly) for live video. It allows
  10. the video to be modified or examined between the decoder and the encoder.
  11. Any number of hook modules can be placed inline, and they are run in the
  12. order that they were specified on the ffmpeg command line.
  13. Three modules are provided and are described below. They are all intended to
  14. be used as a base for your own modules.
  15. Modules are loaded using the -vhook option to ffmpeg. The value of this parameter
  16. is a space separated list of arguments. The first is the module name, and the rest
  17. are passed as arguments to the Configure function of the module.
  18. @section null.c
  19. This does nothing. Actually it converts the input image to RGB24 and then converts
  20. it back again. This is meant as a sample that you can use to test your setup.
  21. @section fish.c
  22. This implements a 'fish detector'. Essentially it converts the image into HSV
  23. space and tests whether more than a certain percentage of the pixels fall into
  24. a specific HSV cuboid. If so, then the image is saved into a file for processing
  25. by other bits of code.
  26. Why use HSV? It turns out that HSV cuboids represent a more compact range of
  27. colors than would an RGB cuboid.
  28. @section imlib2.c
  29. This allows a caption to be placed onto each frame. It supports inserting the
  30. time and date. By using the imlib functions, it would be easy to add your own
  31. graphical logo, add a frame/border, etc.
  32. @bye