From: Anton Khirnov <anton@khirnov.net> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Nicolas Gaullier <nicolas.gaullier@cji.paris> Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] avformat/demux: Add durationprobesize AVOption Date: Tue, 05 Mar 2024 15:59:45 +0100 Message-ID: <170965078578.29002.11479096985564363199@lain.khirnov.net> (raw) In-Reply-To: <20240305120751.2025216-2-nicolas.gaullier@cji.paris> Quoting Nicolas Gaullier (2024-03-05 13:07:51) > diff --git a/doc/APIchanges b/doc/APIchanges > index 7d46ebb006..548c91effe 100644 > --- a/doc/APIchanges > +++ b/doc/APIchanges > @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 > > API changes, most recent first: > > +2024-03-05 - xxxxxxxxxx - lavf 60.23.100 - options_table.h > + Add AVOption durationprobesize This is wrong: * options_table.h is not a public header, so it has no meaning for API users * the main thing that should be mentioned is the AVFormatContext field, we usually do not mention avoptions here > + > 2024-02-28 - xxxxxxxxxx - swr 4.14.100 - swresample.h > swr_convert() now accepts arrays of const pointers (to input and output). > > diff --git a/doc/formats.texi b/doc/formats.texi > index 69fc1457a4..b9feef5d15 100644 > --- a/doc/formats.texi > +++ b/doc/formats.texi > @@ -228,6 +228,19 @@ would require too many resources due to a large number of streams. > Skip estimation of input duration when calculated using PTS. > At present, applicable for MPEG-PS and MPEG-TS. > > +@item durationprobesize @var{integer} (@emph{input}) > +Set probing size in bytes for estimating durations when calculated using PTS. I don't understand what 'calculated using PTS' is supposed to mean. > diff --git a/libavformat/avformat.h b/libavformat/avformat.h > index f4506f4cf1..7b714f3c65 100644 > --- a/libavformat/avformat.h > +++ b/libavformat/avformat.h > @@ -1994,6 +1994,15 @@ typedef struct AVFormatContext { > * Freed by libavformat in avformat_free_context(). > */ > AVStreamGroup **stream_groups; > + > + /** > + * Maximum number of bytes read from input in order to determine stream durations > + * when using estimate_timings_from_pts in avformat_find_stream_info(). > + * > + * - encoding: unused > + * - decoding: set by user > + */ > + int64_t duration_probesize; Presumably 0 means some special behaviour? The documentation should say so. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2024-03-05 14:59 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-05 12:07 [FFmpeg-devel] [PATCH v2 0/1] " Nicolas Gaullier 2024-03-05 12:07 ` [FFmpeg-devel] [PATCH v2 1/1] " Nicolas Gaullier 2024-03-05 14:59 ` Anton Khirnov [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=170965078578.29002.11479096985564363199@lain.khirnov.net \ --to=anton@khirnov.net \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=nicolas.gaullier@cji.paris \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git