Lines Matching defs:duration

104     { "frag_duration", "Maximum fragment duration", offsetof(MOVMuxContext, max_fragment_duration), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
105 { "min_frag_duration", "Minimum fragment duration", offsetof(MOVMuxContext, min_fragment_duration), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
569 info->pkt->duration += pkt->duration;
1167 /* check to see if duration is constant for all clusters */
2603 avio_wb32(pb, frame_duration); /* Frame duration */
2679 ctts_entries[0].duration = track->cluster[0].cts;
2681 if (track->cluster[i].cts == ctts_entries[entries].duration) {
2685 ctts_entries[entries].duration = track->cluster[i].cts;
2701 avio_wb32(pb, ctts_entries[i].duration);
2720 stts_entries[0].duration = 1;
2729 int duration = get_cluster_duration(track, i);
2730 if (i && duration == stts_entries[entries].duration) {
2734 stts_entries[entries].duration = duration;
2747 avio_wb32(pb, stts_entries[i].duration);
3347 // another track's duration, while the end_pts may be left at zero.
3348 // Calculate the pts duration for that track instead.
3374 // Calculate the actual duration of the track, after edits.
3391 int64_t duration = calc_samples_pts_duration(mov, track);
3392 int version = duration < INT32_MAX ? 0 : 1;
3414 (version == 1) ? avio_wb64(pb, duration) : avio_wb32(pb, duration); /* duration */
3420 "FATAL error, file duration too long for timebase, this file will not be\n"
3464 int64_t duration = av_rescale_rnd(calc_pts_duration(mov, track),
3467 int version = duration < INT32_MAX ? 0 : 1;
3511 (version == 1) ? avio_wb64(pb, duration) : avio_wb32(pb, duration);
3598 int64_t duration = av_rescale_rnd(calc_samples_pts_duration(mov, track),
3601 int version = duration < INT32_MAX ? 0 : 1;
3640 * list duration as well. */
3657 * ensuring that we don't reduce the duration for cases with
3659 duration += delay;
3663 * duration to 0 allows us to only specify the offset, including
3665 * an explicit duration. */
3667 duration = 0;
3669 /* duration */
3671 avio_wb64(pb, duration);
3674 avio_wb32(pb, duration);
3927 avio_wb32(pb, 0); /* default sample duration */
3990 (version == 1) ? avio_wb64(pb, max_track_len) : avio_wb32(pb, max_track_len); /* duration of longest track */
4000 avio_wb32(pb, 0); /* reserved (preview duration) */
4003 avio_wb32(pb, 0); /* reserved (selection duration) */
5174 * to play files with that set. Don't set a default sample duration,
5317 avio_wb64(pb, track->frag_info[index].duration);
5367 info->duration = track->end_pts -
5373 info->duration += info->time;
5474 int64_t presentation_time, duration, offset;
5482 duration = track->end_pts -
5488 duration += presentation_time;
5518 duration = track->frag_info[i].duration;
5523 avio_wb32(pb, duration); /* subsegment_duration */
6108 // queue) and its duration is zero. Skipping writing it.
6109 if (!had_packets && squashed_packet->duration == 0) {
6171 // Try to fill in the duration of the last packet in each stream
6203 // on what was set as duration in the AVPacket. Not all callers
6208 // Use the duration (i.e. dts diff) of the second last sample for
6211 // duration is bad as well.
6216 "Estimating the duration of the last packet in a "
6217 "fragment, consider setting the duration field in "
6382 uint64_t duration;
6398 duration = pkt->dts - ref;
6399 if (pkt->dts < ref || duration >= INT_MAX) {
6400 av_log(s, AV_LOG_WARNING, "Packet duration: %"PRId64" / dts: %"PRId64" is out of range\n",
6401 duration, pkt->dts);
6407 if (pkt->duration < 0 || pkt->duration > INT_MAX) {
6408 av_log(s, AV_LOG_ERROR, "Application provided duration: %"PRId64" is invalid\n", pkt->duration);
6640 /* First packet of a new fragment. We already wrote the duration
6643 * of this packet to be what the previous packets duration implies. */
6645 /* We also may have written the pts and the corresponding duration
6646 * in sidx/tfrf/tfxd tags; make sure the sidx pts and duration match up with
6656 * Pretend the duration sum of the earlier fragments is
6669 * its duration instead. */
6677 * already written. If the stream started at pts=0, the duration sum
6682 * already written, with a duration summing up to pkt->dts. */
6693 trk->track_duration = pkt->dts - trk->start_dts + pkt->duration;
6708 trk->cluster[trk->entry].cts + pkt->duration;
6712 pkt->duration);
6834 // Set the duration of this track to line up with the next
6836 // duration, but only helps for this particular track, not
6867 end->duration = 0;
6917 * dts is past the duration of the last subtitle sample. If
7059 pkt->duration = end - pkt->dts;
7614 "WARNING codec timebase is very high. If duration is too long,\n"