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

 

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