Lines Matching defs:duration

81     int64_t duration;
542 double duration = (double) seg->duration / timescale;
543 if (target_duration <= duration)
544 target_duration = lrint(duration);
565 (double) seg->duration / timescale, 0,
656 avio_printf(out, "duration=\"%"PRId64"\" ", os->seg_duration);
679 avio_printf(out, "d=\"%"PRId64"\" ", seg->duration);
681 os->segments[i + repeat + 1]->duration == seg->duration &&
682 os->segments[i + repeat + 1]->time == os->segments[i + repeat]->time + os->segments[i + repeat]->duration)
688 cur_time += (1 + repeat) * seg->duration;
695 avio_printf(out, "\t\t\t\t<SegmentList timescale=\"%d\" duration=\"%"PRId64"\" startNumber=\"%d\">\n", AV_TIME_BASE, FFMIN(os->seg_duration, os->last_duration), start_number);
706 avio_printf(out, "\t\t\t\t<SegmentList timescale=\"%d\" duration=\"%"PRId64"\" startNumber=\"%d\">\n", AV_TIME_BASE, FFMIN(os->seg_duration, os->last_duration), start_number);
1000 av_log(s, AV_LOG_ERROR, "Unable to parse option value \"%s\" as duration\n", str);
1018 if (!strcmp(type_str, "duration"))
1613 av_log(s, AV_LOG_ERROR, "Segment duration %"PRId64" is outside the allowed range for DVB-DASH profile\n", os->seg_duration);
1618 av_log(s, AV_LOG_WARNING, "frag_type set to duration for stream %d but no frag_duration set\n", i);
1622 av_log(s, AV_LOG_ERROR, "Fragment duration %"PRId64" is longer than Segment duration %"PRId64"\n", os->frag_duration, os->seg_duration);
1721 av_log(s, AV_LOG_WARNING, "no video stream and no seg duration set\n");
1753 int64_t time, int64_t duration,
1773 seg->duration = duration;
1775 seg->duration += seg->time;
1939 int64_t duration;
1979 duration = av_rescale_q(os->max_pts - os->start_pts, st->time_base, AV_TIME_BASE_Q);
1980 os->last_duration = FFMAX(os->last_duration, duration);
1984 8 * AV_TIME_BASE) / duration;
1989 os->first_segment_bit_rate = (int64_t) range_length * 8 * AV_TIME_BASE / duration;
2084 // Fill in a heuristic guess of the packet duration, if none is available.
2087 // By setting a nonzero duration here, we can be sure that the mp4 muxer won't
2090 if (!pkt->duration && os->last_dts != AV_NOPTS_VALUE)
2091 pkt->duration = pkt->dts - os->last_dts;
2095 // timestamps to 0. Do the same here, to avoid mismatches in duration/timestamps.
2125 (os->frag_type == FRAG_TYPE_EVERY_FRAME && pkt->duration))) {
2134 frame_duration = av_rescale_q(pkt->duration, st->time_base, AV_TIME_BASE_Q);
2204 os->max_pts = pkt->pts + pkt->duration;
2206 os->max_pts = FFMAX(os->max_pts, pkt->pts + pkt->duration);
2240 os->total_pkt_duration += pkt->duration;
2305 // guess of the segment duration
2366 { "seg_duration", "segment duration (in seconds, fractional value can be set)", OFFSET(seg_duration), AV_OPT_TYPE_DURATION, { .i64 = 5000000 }, 0, INT_MAX, E },
2367 { "frag_duration", "fragment duration (in seconds, fractional value can be set)", OFFSET(frag_duration), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX, E },
2371 { "duration", "fragment at specific time intervals", 0, AV_OPT_TYPE_CONST, {.i64 = FRAG_TYPE_DURATION }, 0, UINT_MAX, E, "frag_type"},
2395 { "ignore_io_errors", "Ignore IO errors during open and write. Useful for long-duration runs with network output", OFFSET(ignore_io_errors), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, E },