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.

96 lines
2.4KB

  1. <HTML>
  2. <HEAD>
  3. <!-- This HTML file has been created by texi2html 1.51
  4. from hooks.texi on 20 November 2002 -->
  5. <TITLE>Video Hook Documentation</TITLE>
  6. </HEAD>
  7. <BODY>
  8. <H1>Video Hook Documentation</H1>
  9. <P>
  10. <P><HR><P>
  11. <H1>Table of Contents</H1>
  12. <UL>
  13. <LI><A NAME="TOC1" HREF="hooks.html#SEC1">1 Introduction</A>
  14. <UL>
  15. <LI><A NAME="TOC2" HREF="hooks.html#SEC2">1.1 null.c</A>
  16. <LI><A NAME="TOC3" HREF="hooks.html#SEC3">1.2 fish.c</A>
  17. <LI><A NAME="TOC4" HREF="hooks.html#SEC4">1.3 imlib2.c</A>
  18. </UL>
  19. </UL>
  20. <P><HR><P>
  21. <P>
  22. Video Hook Documentation
  23. <P>
  24. </P>
  25. <H1><A NAME="SEC1" HREF="hooks.html#TOC1">1 Introduction</A></H1>
  26. <P>
  27. The video hook functionality is designed (mostly) for live video. It allows
  28. the video to be modified or examined between the decoder and the encoder.
  29. </P>
  30. <P>
  31. Any number of hook modules can be placed inline, and they are run in the
  32. order that they were specified on the ffmpeg command line.
  33. </P>
  34. <P>
  35. Three modules are provided and are described below. They are all intended to
  36. be used as a base for your own modules.
  37. </P>
  38. <P>
  39. Modules are loaded using the -vhook option to ffmpeg. The value of this parameter
  40. is a space seperated list of arguments. The first is the module name, and the rest
  41. are passed as arguments to the Configure function of the module.
  42. </P>
  43. <H2><A NAME="SEC2" HREF="hooks.html#TOC2">1.1 null.c</A></H2>
  44. <P>
  45. This does nothing. Actually it converts the input image to RGB24 and then converts
  46. it back again. This is meant as a sample that you can use to test your setup.
  47. </P>
  48. <H2><A NAME="SEC3" HREF="hooks.html#TOC3">1.2 fish.c</A></H2>
  49. <P>
  50. This implements a 'fish detector'. Essentially it converts the image into HSV
  51. space and tests whether more than a certain percentage of the pixels fall into
  52. a specific HSV cuboid. If so, then the image is saved into a file for processing
  53. by other bits of code.
  54. </P>
  55. <P>
  56. Why use HSV? It turns out that HSV cuboids represent a more compact range of
  57. colors than would an RGB cuboid.
  58. </P>
  59. <H2><A NAME="SEC4" HREF="hooks.html#TOC4">1.3 imlib2.c</A></H2>
  60. <P>
  61. This allows a caption to be placed onto each frame. It supports inserting the
  62. time and date. By using the imlib functions, it would be easy to add your own
  63. graphical logo, add a frame/border, etc.
  64. </P>
  65. <P><HR><P>
  66. This document was generated on 20 November 2002 using the
  67. <A HREF="http://wwwcn.cern.ch/dci/texi2html/">texi2html</A>
  68. translator version 1.51.</P>
  69. </BODY>
  70. </HTML>