📄 hooks.texi
字号:
\input texinfo @c -*- texinfo -*-@settitle Video Hook Documentation@titlepage@sp 7@center @titlefont{Video Hook Documentation}@sp 3@end titlepage@chapter IntroductionThe video hook functionality is designed (mostly) for live video. It allowsthe video to be modified or examined between the decoder and the encoder.Any number of hook modules can be placed inline, and they are run in theorder that they were specified on the ffmpeg command line.Three modules are provided and are described below. They are all intended tobe used as a base for your own modules.Modules are loaded using the -vhook option to ffmpeg. The value of this parameteris a space separated list of arguments. The first is the module name, and the restare passed as arguments to the Configure function of the module.@section null.cThis does nothing. Actually it converts the input image to RGB24 and then convertsit back again. This is meant as a sample that you can use to test your setup.@section fish.cThis implements a 'fish detector'. Essentially it converts the image into HSVspace and tests whether more than a certain percentage of the pixels fall intoa specific HSV cuboid. If so, then the image is saved into a file for processingby other bits of code.Why use HSV? It turns out that HSV cuboids represent a more compact range ofcolors than would an RGB cuboid.@section imlib2.cThis allows a caption to be placed onto each frame. It supports inserting thetime and date. By using the imlib functions, it would be easy to add your owngraphical logo, add a frame/border, etc.@bye
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -