Lines Matching defs:enc
768 AVCodecContext *enc = ost->enc_ctx;
770 !enc || !ost->filter || !ost->filter->graph->graph)
778 AVRational tb = enc->time_base;
790 av_rescale_q(frame->pts, filter_tb, enc->time_base) -
791 av_rescale_q(start_time, AV_TIME_BASE_Q, enc->time_base);
799 frame ? av_ts2timestr(frame->pts, &enc->time_base) : "NULL",
801 enc ? enc->time_base.num : -1,
802 enc ? enc->time_base.den : -1);
841 AVCodecContext *enc = ost->enc_ctx;
876 if (ost->error[0]>=0 && (enc->flags & AV_CODEC_FLAG_PSNR))
877 fprintf(vstats_file, "PSNR= %6.2f ", psnr(ost->error[0] / (enc->width * enc->height * 255.0 * 255.0)));
885 bitrate = (pkt->size * 8) / av_q2d(enc->time_base) / 1000.0;
894 AVCodecContext *enc = ost->enc_ctx;
896 const char *type_desc = av_get_media_type_string(enc->codec_type);
907 av_ts2str(frame->pts), av_ts2timestr(frame->pts, &enc->time_base),
908 enc->time_base.num, enc->time_base.den);
914 ret = avcodec_send_frame(enc, frame);
922 ret = avcodec_receive_packet(enc, pkt);
927 if ((ret >= 0 || ret == AVERROR_EOF) && ost->logfile && enc->stats_out)
928 fprintf(ost->logfile, "%s", enc->stats_out);
946 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &enc->time_base),
947 av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &enc->time_base),
948 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &enc->time_base));
951 av_packet_rescale_ts(pkt, enc->time_base, ost->mux_timebase);
958 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &enc->time_base),
959 av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &enc->time_base),
960 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &enc->time_base));
963 if (enc->codec_type == AVMEDIA_TYPE_VIDEO)
1000 AVCodecContext *enc;
1011 enc = ost->enc_ctx;
1024 if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE)
1036 ost->sync_opts = av_rescale_q(pts, AV_TIME_BASE_Q, enc->time_base);
1050 subtitle_out_size = avcodec_encode_subtitle(enc, subtitle_out,
1064 if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE) {
1083 AVCodecContext *enc = ost->enc_ctx;
1100 duration = 1/(av_q2d(frame_rate) * av_q2d(enc->time_base));
1103 duration = FFMIN(duration, 1/(av_q2d(ost->frame_rate) * av_q2d(enc->time_base)));
1110 lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) {
1111 duration = lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base));
1229 in_picture->quality = enc->global_quality;
1237 (in_picture->pts - ost->forced_kf_ref_pts) * av_q2d(enc->time_base) : NAN;
1323 AVCodecContext *enc = ost->enc_ctx;
1365 enc->sample_aspect_ratio = filtered_frame->sample_aspect_ratio;
1370 if (!(enc->codec->capabilities & AV_CODEC_CAP_PARAM_CHANGE) &&
1371 enc->ch_layout.nb_channels != filtered_frame->ch_layout.nb_channels) {
1513 AVCodecContext *enc;
1554 enc = ost->enc_ctx;
1558 if (vid && enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1563 if (!vid && enc->codec_type == AVMEDIA_TYPE_VIDEO) {
1585 if ((enc->flags & AV_CODEC_FLAG_PSNR) && (ost->pict_type != AV_PICTURE_TYPE_NONE || is_last_report)) {
1594 error = enc->error[j];
1595 scale = enc->width * enc->height * 255.0 * 255.0 * frame_number;
1598 scale = enc->width * enc->height * 255.0 * 255.0;
1741 AVCodecContext *enc = ost->enc_ctx;
1782 if (enc->codec_type != AVMEDIA_TYPE_VIDEO && enc->codec_type != AVMEDIA_TYPE_AUDIO)
2336 || ost->enc->type != AVMEDIA_TYPE_SUBTITLE)
2853 encoder_string_len = sizeof(LIBAVCODEC_IDENT) + strlen(ost->enc->name) + 2;
2862 av_strlcat(encoder_string, ost->enc->name, encoder_string_len);
2987 if (ost->enc->supported_framerates && !ost->force_fps) {
2988 int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
2989 ost->frame_rate = ost->enc->supported_framerates[idx];
3123 const AVCodec *codec = ost->enc;
3152 if (ist && ist->dec->type == AVMEDIA_TYPE_SUBTITLE && ost->enc->type == AVMEDIA_TYPE_SUBTITLE) {
3179 if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&
3180 !(ost->enc->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE))
3398 ost->index, ost->enc ? ost->enc->name : "?");
3415 const AVCodec *out_codec = ost->enc;
3964 (ost->stream_copy || ost->enc->type == AVMEDIA_TYPE_SUBTITLE))