Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated


Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated



AVStream *out_stream = avformat_new_stream(ofmt_ctx, pCodecH264);

if (!out_stream) {

printf("Failed allocating output stream\n");

ret = AVERROR_UNKNOWN;

return NULL;

}

解决方法:

out_stream->time_base = rate;


AVRational rate;

rate.num = 1;

rate.den = 25;


猜你喜欢

转载自blog.csdn.net/jacke121/article/details/80335962