[FFmpeg-devel] [PATCH] avformat/utils: fix seek failed

2020-12-31 Thread Zhao Zhili
Rounding min_ts towards +infinity and max_ts towards -infinity can make ts out of the [min_ts, max_ts] range, and then leads to seek failure. For example, max_ts = ts = -25057 time_base = (num = 1, den = 14112000) After rescale, ts = -353604, and max_ts = -353605. --- libavformat/utils.c | 4 ++-

Re: [FFmpeg-devel] [PATCH] avformat/utils: fix seek failed

2020-12-31 Thread Marton Balint
On Thu, 31 Dec 2020, Zhao Zhili wrote: Rounding min_ts towards +infinity and max_ts towards -infinity can make ts out of the [min_ts, max_ts] range, and then leads to seek failure. For example, I think this is intentional to adhere to the docs of the function: "Seeking will be done so that

Re: [FFmpeg-devel] [PATCH] avformat/utils: fix seek failed

2020-12-31 Thread zhilizhao(赵志立)
> On Dec 31, 2020, at 6:51 PM, Marton Balint wrote: > > > > On Thu, 31 Dec 2020, Zhao Zhili wrote: > >> Rounding min_ts towards +infinity and max_ts towards -infinity can >> make ts out of the [min_ts, max_ts] range, and then leads to seek >> failure. For example, > > I think this is intent

[FFmpeg-devel] [RFC] API and infrastructure enhancement projects

2020-12-31 Thread Nicolas George
Hi. I would like to summarize the projects I have had in mind for FFmpeg for some time. I have already evoked some of them here in more or less details. These projects are not directly related to FFmpeg's work of codecs and formats, they are about FFmpeg's infrastructure and API, to make the actu

[FFmpeg-devel] [RFC] Global state into structure

2020-12-31 Thread Nicolas George
This mail is about a project I have to make FFmpeg's API and infrastructure more convenient. For a common introduction, see this thread: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html Global mutable state has annoyed developers for a long time. Log callbacks and flags, malloc

[FFmpeg-devel] [RFC] Unified string / stream API

2020-12-31 Thread Nicolas George
This mail is about a project I have to make FFmpeg's API and infrastructure more convenient. For a common introduction, see this thread: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html int av_foo_to_string(char *buf, size_t buf_size, AVFoo *foo); int av_bar_to_string(char *buf,

[FFmpeg-devel] [RFC] Type descriptors

2020-12-31 Thread Nicolas George
This mail is about a project I have to make FFmpeg's API and infrastructure more convenient. For a common introduction, see this thread: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html For each simple type, including enumerations like AVColorRange and flat structures like AVRep

[FFmpeg-devel] [RFC] Internal error messages

2020-12-31 Thread Nicolas George
This mail is about a project I have to make FFmpeg's API and infrastructure more convenient. For a common introduction, see this thread: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html The way we currently report errors is fine for command-line tools running in a terminal, but

[FFmpeg-devel] [RFC] Event loop

2020-12-31 Thread Nicolas George
This mail is about a project I have to make FFmpeg's API and infrastructure more convenient. For a common introduction, see this thread: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html The API to access our protocols, in particular network protocols, is copied from the Unix fil

Re: [FFmpeg-devel] [RFC] API and infrastructure enhancement projects

2020-12-31 Thread Nicolas George
Nicolas George (12020-12-31): > Hi. > > I would like to summarize the projects I have had in mind for FFmpeg for > some time. I have already evoked some of them here in more or less details. > > These projects are not directly related to FFmpeg's work of codecs and > formats, they are about FFmpe

[FFmpeg-devel] [PATCH] avfilter: add estdif video filter

2020-12-31 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- TODO: add working >8 depth support --- doc/filters.texi | 56 ++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_estdif.c | 372 +++ 4 files changed, 430 insertions(+) create mode

Re: [FFmpeg-devel] [PATCH 23/30] avcodec/qdmc: Mark decoder as init-threadsafe

2020-12-31 Thread Paul B Mahol
probably ok On Thu, Dec 31, 2020 at 12:36 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > It already uses ff_thread_once() to initialize its static data. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/qdmc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libav

Re: [FFmpeg-devel] [PATCH] avfilter: add temporal midway equalizer filter

2020-12-31 Thread Paul B Mahol
Will apply soon. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 01/30] avcodec/opustab: Make array static

2020-12-31 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/opustab.c | 12 ++-- > libavcodec/opustab.h | 1 - > 2 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/opustab.c b/libavcodec/opustab.c > index 64070f8299..7276dad793 100644 > --- a/lib

Re: [FFmpeg-devel] [RFC] Event loop

2020-12-31 Thread Kieran Kunhya
> > I want to replace it with an event loop. That means that instead of reading > on a protocol context, we would register a callback for when data is > available, and then let the loop run. > This would be a good idea in general and bring FFmpeg into the early 21st century. As I understand it the

Re: [FFmpeg-devel] [RFC] Type descriptors

2020-12-31 Thread Jim DeLaHunt
On Thu Dec 31 15:35:38 EET 2020, Nicolas George wrote: …For each simple type, including enumerations like AVColorRange and flat structures like AVReplayGain, have a set of standardized functions for common operations, including probably: - printing; - serializing to string; - parsing from stri

Re: [FFmpeg-devel] [RFC] Internal error messages

2020-12-31 Thread Derek Buitenhuis
On 31/12/2020 13:36, Nicolas George wrote: > This mail is about a project I have to make FFmpeg's API and > infrastructure more convenient. For a common introduction, see this thread: > https://ffmpeg.org/pipermail/ffmpeg-devel/2020-December/274167.html > > The way we currently report errors is fi

Re: [FFmpeg-devel] [RFC] Type descriptors

2020-12-31 Thread Derek Buitenhuis
On 31/12/2020 20:15, Jim DeLaHunt wrote: > One of the places where FFmpeg's inconsistent encoding caused me a > problem was when I was operating on a Quicktime video. FFmpeg (or > perhaps FFprobe) printed a 4-byte Quicktime tag literally to stdout. The > tag's byte sequence was not valid UTF-8.

[FFmpeg-devel] [PATCH v2 06/30] Mark some pointers as const

2020-12-31 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- Found a few more, in particular the hw_configs lists. fftools/ffmpeg_opt.c| 86 ++--- libavcodec/aacenctab.c | 4 +- libavcodec/aacenctab.h | 4 +- libavcodec/av1dec.c

Re: [FFmpeg-devel] [PATCH v2 06/30] Mark some pointers as const

2020-12-31 Thread Lynne
Jan 1, 2021, 01:35 by andreas.rheinha...@gmail.com: > Signed-off-by: Andreas Rheinhardt > --- > Found a few more, in particular the hw_configs lists. > > fftools/ffmpeg_opt.c| 86 ++--- > libavcodec/aacenctab.c | 4 +- > libavcodec/aa