ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7531|回复: 1

[Max OSX] 关于AVFilterPad里pad的解释

[复制链接]
发表于 2018-12-1 11:45:48 | 显示全部楼层 |阅读模式




请问这个“A filter pad used for either input or output”里的pad是什么意思呢



因为遇到concat报错,看源码里是这样判断的
if (src->output_pads[srcpad].type != dst->input_pads[dstpad].type) {
        av_log(src, AV_LOG_ERROR,
               "Media type mismatch between the '%s' filter output pad %d (%s) and the '%s' filter input pad %d (%s)\n",
               src->name, srcpad, (char *)av_x_if_null(av_get_media_type_string(src->output_pads[srcpad].type), "?"),
               dst->name, dstpad, (char *)av_x_if_null(av_get_media_type_string(dst-> input_pads[dstpad].type), "?"));
        return AVERROR(EINVAL);
    }

但是理解不了这里的pads的含义。

回复

使用道具 举报

发表于 2018-12-2 11:47:54 | 显示全部楼层
具体的输入和输入的方法(操作函数,例如filter_frame   request_frame)的载体
参考某个具体的示例里面可以看到,比如libavfilter/vf_hue.c
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-19 19:21 , Processed in 0.053376 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表