Lines Matching defs:duration
944 "duration:%s duration_time:%s\n",
948 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &enc->time_base));
956 "duration:%s duration_time:%s\n",
960 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &enc->time_base));
1063 pkt->duration = av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase);
1087 double duration = 0;
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)));
1111 duration = lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base));
1121 delta = delta0 + duration;
1132 av_log(NULL, AV_LOG_VERBOSE, "Past duration %f too large\n", -delta0);
1136 duration += delta0;
1144 delta = duration;
1867 int duration = av_get_audio_frame_duration(ist->dec_ctx, pkt->size);
1868 if(!duration)
1869 duration = ist->dec_ctx->frame_size;
1871 (AVRational){1, ist->dec_ctx->sample_rate}, duration,
1879 opkt->duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->mux_timebase);
1881 ost->sync_opts += opkt->duration;
2132 if (pkt && pkt->duration && ist->prev_pkt_pts != AV_NOPTS_VALUE &&
2133 pkt->pts != AV_NOPTS_VALUE && pkt->pts - ist->prev_pkt_pts > pkt->duration)
2297 "Subtitle duration reduced from %"PRId32" to %d%s\n",
2422 if (pkt && pkt->duration) {
2423 duration_dts = av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q);
2511 av_assert1(pkt->duration >= 0);
2516 ist->next_dts += av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q);
2525 } else if (pkt->duration) {
2526 ist->next_dts += av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q);
2769 // copy estimated duration as a hint to the muxer
2770 if (ost->st->duration <= 0 && ist->st->duration > 0)
2771 ost->st->duration = av_rescale_q(ist->st->duration, ist->st->time_base, ost->st->time_base);
3236 // copy estimated duration as a hint to the muxer
3237 if (ost->st->duration <= 0 && ist && ist->st->duration > 0)
3238 ost->st->duration = av_rescale_q(ist->st->duration, ist->st->time_base, ost->st->time_base);
3809 // set duration to max(tmp, duration) in a proper time base and return duration's time_base
3810 static AVRational duration_max(int64_t tmp, int64_t *duration, AVRational tmp_time_base,
3815 if (!*duration) {
3816 *duration = tmp;
3820 ret = av_compare_ts(*duration, time_base, tmp, tmp_time_base);
3822 *duration = tmp;
3834 int64_t duration = 0;
3844 /* duration is the length of the last frame in a stream
3859 duration = av_rescale_q(ist->nb_samples, sample_rate, ist->st->time_base);
3865 duration = av_rescale_q(1, av_inv_q(ist->framerate), ist->st->time_base);
3867 duration = av_rescale_q(1, av_inv_q(ist->st->avg_frame_rate), ist->st->time_base);
3869 duration = 1;
3872 if (!ifile->duration)
3874 /* the total duration of the stream, max_pts - min_pts is
3875 * the duration of the stream without the last frame */
3876 if (ist->max_pts > ist->min_pts && ist->max_pts - (uint64_t)ist->min_pts < INT64_MAX - duration)
3877 duration += ist->max_pts - ist->min_pts;
3878 ifile->time_base = duration_max(duration, &ifile->duration, ist->st->time_base,
3902 int64_t duration;
4003 "next_dts:%s next_dts_time:%s next_pts:%s next_pts_time:%s pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s off:%s off_time:%s\n",
4009 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base),
4097 duration = av_rescale_q(ifile->duration, ifile->time_base, ist->st->time_base);
4099 pkt->pts += duration;
4105 pkt->dts += duration;
4160 av_log(NULL, AV_LOG_INFO, "demuxer+ffmpeg -> ist_index:%d type:%s pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s off:%s off_time:%s\n",
4164 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base),