ffempge常用指令_ffmpeg编译E

我一直试图在我的raspberry pi上编译ffmpeg,但是它给了我很多警告,比如(codec不推荐使用),尤其是在运行sudo make时。在pi@raspberrypi:/usr/src/ffmpeg $ sudo make && sudo make install

....... lots of successful execution here ......

CC libavfilter/avf_showfreqs.o

libavfilter/lavfutils.c: In function ‘ff_load_image’:

libavfilter/lavfutils.c:53:5: warning: ‘codec’ is deprecated (declared at ./libavformat/avformat.h:880) [-Wdeprecated-declarations]

codec_ctx = format_ctx->streams[0]->codec;

^

libavfilter/lavfutils.c:79:5: warning: ‘avcodec_decode_video2’ is deprecated (declared at ./libavcodec/avcodec.h:4763) [-Wdeprecated-declarations]

ret = avcodec_decode_video2(codec_ctx, frame, &frame_decoded, &pkt);

^

CC libavfilter/lswsutils.o

CC libavfilter/opencl_allkernels.o

CC libavfilter/pthread.o

CC libavfilter/setpts.o

CC libavfilter/settb.o

CC libavfilter/split.o

CC libavfilter/src_movie.o

libavfilter/src_movie.c: In function ‘movie_push_frame’:

libavfilter/src_movie.c:524:9: warning: ‘avcodec_decode_video2’ is deprecated (declared at ./libavcodec/avcodec.h:4763) [-Wdeprecated-declarations]

ret = avcodec_decode_video2(st->codec_ctx, frame, &got_frame, pkt);

^

libavfilter/src_movie.c:527:9: warning: ‘avcodec_decode_audio4’ is deprecated (declared at ./libavcodec/avcodec.h:4714) [-Wdeprecated-declarations]

ret = avcodec_decode_audio4(st->codec_ctx, frame, &got_frame, pkt);

^

CC libavfilter/transform.o

CC libavfilter/trim.o

CC libavfilter/vaf_spectrumsynth.o

libavfilter/vaf_spectrumsynth.c: In function ‘try_push_frame’:

libavfilter/vaf_spectrumsynth.c:370:19: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

int ch, n, i, ret; ^

CC libavfilter/vf_alphamerge.o

CC libavfilter/vf_aspect.o

CC libavfilter/vf_atadenoise.o

CC libavfilter/vf_colorlevels.o

CC libavfilter/vf_colorspace.o

libavfilter/vf_colorspace.c: In function ‘fill_rgb2xyz_table’:

libavfilter/vf_colorspace.c:360:22: warning: passing argument 1 of ‘invert_matrix3x3’ from incompatible pointer type

invert_matrix3x3(rgb2xyz, i);

^

libavfilter/vf_colorspace.c:277:13: note: expected ‘const double (*)[3]’ but argument is of type ‘double (*)[3]’

static void invert_matrix3x3(const double in[3][3], double out[3][3])

^

libavfilter/vf_colorspace.c: In function ‘fill_whitepoint_conv_table’:

libavfilter/vf_colorspace.c:424:21: warning: passing argument 3 of ‘mul3x3’ from incompatible pointer type

mul3x3(tmp, ma, fac);

libavfilter/vf_colorspace.c:376:13: note: expected ‘const double (*)[3]’ but argument is of type ‘double (*)[3]’

static void mul3x3(double dst[3][3], const double src1[3][3], const double src2[3][3])

^

libavfilter/vf_colorspace.c:425:17: warning: passing argument 2 of ‘mul3x3’ from incompatible pointer type

mul3x3(out, tmp, mai);

^

libavfilter/vf_colorspace.c:376:13: note: expected ‘const double (*)[3]’ but argument is of type ‘double (*)[3]’

static void mul3x3(double dst[3][3], const double src1[3][3], const double src2[3][3])

^

libavfilter/vf_colorspace.c:425:22: warning: passing argument 3 of ‘mul3x3’ from incompatible pointer type

mul3x3(out, tmp, mai);

^

libavfilter/vf_colorspace.c:376:13: note: expected ‘const double (*)[3]’ but argument is of type ‘double (*)[3]’

static void mul3x3(double dst[3][3], const double src1[3][3], const double src2[3][3])

^

libavfilter/vf_colorspace.c: In function ‘convert’:

libavfilter/vf_colorspace.c:480:20: warning: passing argument 7 of ‘s->yuv2yuv’ from incompatible pointer type

s->yuv2yuv_coeffs, s->yuv_offset);

^

libavfilter/vf_colorspace.c:480:20: note: expected ‘const int16_t (*)[3][8]’ but argument is of type ‘int16_t (*)[3][8]’

libavfilter/vf_colorspace.c:480:39: warning: passing argument 8 of ‘s->yuv2yuv’ from incompatible pointer type

s->yuv2yuv_coeffs, s->yuv_offset);

^

libavfilter/vf_colorspace.c:480:39: note: expected ‘const int16_t (*)[8]’ but argument is of type ‘int16_t (*)[8]’

libavfilter/vf_colorspace.c:502:20: warning: passing argument 7 of ‘s->yuv2rgb’ from incompatible pointer type

s->yuv2rgb_coeffs, s->yuv_offset[0]);

^

libavfilter/vf_colorspace.c:502:20: note: expected ‘const int16_t (*)[3][8]’ but argument is of type ‘int16_t (*)[3][8]’

libavfilter/vf_colorspace.c:506:62: warning: passing argument 5 of ‘s->dsp.multiply3x3’ from incompatible pointer type

s->dsp.multiply3x3(rgb, s->rgb_stride, w, h, s->lrgb2lrgb_coeffs);

^

libavfilter/vf_colorspace.c:506:62: note: expected ‘const int16_t (*)[3][8]’ but argument is of type ‘int16_t (*)[3][8]’

libavfilter/vf_colorspace.c:511:28: warning: passing argument 7 of ‘s->rgb2yuv_fsb’ from incompatible pointer type

s->rgb2yuv_coeffs, s->yuv_offset[1], s->dither_scratch);

^

libavfilter/vf_colorspace.c:511:28: note: expected ‘const int16_t (*)[3][8]’ but argument is of type ‘int16_t (*)[3][8]’

libavfilter/vf_colorspace.c:514:24: warning: passing argument 7 of ‘s->rgb2yuv’ from incompatible pointer type

s->rgb2yuv_coeffs, s->yuv_offset[1]);

^

libavfilter/vf_colorspace.c:514:24: note: expected ‘const int16_t (*)[3][8]’ but argument is of type ‘int16_t (*)[3][8]’

libavfilter/vf_colorspace.c: In function ‘create_filtergraph’:

libavfilter/vf_colorspace.c:614:30: warning: passing argument 1 of ‘invert_matrix3x3’ from incompatible pointer type

^

它还在继续。。。。在

如何解决?此警告可能有什么问题?在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值