FFMPEG filter之注意事项

  • 没有pad的filter叫source filter;没有output的filtr 叫sink filter;
  • ffplay 中,使用-vf、-af;ffmpeg中,使用-filter、-vf、-af、-filter_complex
  • 符号 ' (英文单引号)可以把一个命令参数列表包含起来,其中可以在引号内使用 \来表示转义字符。如果不使用 ' (单引号),下个字符正好遇见 ‘[]=;,’,作为一个整体的命令参数就会被中断,分割成若干个命令参数;
  • If an output pad is not labelled, it is linked by default to the first unlabelled input pad of the next filter in the filterchain. For example in the filterchain
nullsrc, split[L1], [L2]overlay, nullsink //the split filter instance has two output pads, and the overlay filter instance two input pads. The first output pad of split is labelled "L1", the first input pad of overlay is labelled "L2", and the second output pad of split is linked to the second input pad of overlay, which are both unlabelled.
  • 在描述一个filter的时候,如果第一个filter的输入label没有显式指定,就假定是'in',如果最后一个filter的输出label没有显式指定,就假定是'out'。
  • 当进行格式转换时,Libavfilter 自动插入一个scale filter

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章