AVFilterPad and AVFilterInOut

本文探讨了FFmpeg音频滤镜中出现的output pad... no source found错误,并详细解释了AVFilterPad和AVFilterInOut的概念及其作用。
This post was updated on Jul 31, 2013; 5:07am.
Hi all, 
I am currently trying to figure out how to resolve the "output pad .... no source found" error from a modification of the ffmpeg audio filter example because I am using a filter that requires 2 or more inputs. 
(Simple change, change the filter_descrip into "amix=input=2") 

However, I am having trouble understanding exactly what "AVFilterPad", "AVFilterInOut" are in playing a role towards filtering. 

I could not find any examples or proper clarification from these objects (FFMPEG documentation for it simply mentions "input and output", can anyone provide some context towards this?



//===================================

答;

Le duodi 12 thermidor, an CCXXI, sunswang a écrit : 
> I am currently trying to figure out how to resolve the "output pad .... no 
> source found" error from a modification of the ffmpeg audio filter example 
> because I am using a filter that requires 2 or more inputs. 

Please do not trim error messages. 

> However, I am having trouble understanding exactly what "AVFilterPad", 

AVFilterPad is used to describe an input or output of a filter: its type, 
its name, pointers to functions used to handle incoming or outgoing frames 
and a few more technical details. It is part of the filter. 

> "AVFilterInOut" are in playing a roll towards filtering. 

AVFilterInOut is mostly a way of encoding the information "the 4th input of 
the concat filter": a pointer to the filter context, and the index of the 
designated input or output. Plus a next pointer to build a linked list, and 
possibly a name if the structure comes from parsing a graph description. 

For example, if you parse a graph that says "[0:a] [ex] amerge", you get 
two AVFilterInOut for the input: 
- one pointing to the context for amerge, index #0, name "0:a"; 
- one pointing to the context for amerge, index #1, name "ex"; 
and one AVFilterInOut for the output: 
- pointing to the context for amerge, index #0 (it has only one output), 
  name NULL. 

Regards, 

-- 
  Nicolas George 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值