[FFmpeg-devel] [PATCH] flvenc: flush after write header

2021-10-27 Thread Lingjiang Fang
keep align with movenc, or it seems a little weired when debug --- libavformat/flvenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 3f24c7e192..f4798dc9a6 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -767,6 +767,8 @@ st

Re: [FFmpeg-devel] [PATCH] flvenc: flush after write header

2021-11-01 Thread Lingjiang Fang
On Thu, 28 Oct 2021 20:50:05 +0800 Steven Liu wrote: ping for review or apply :) > > > > 2021??10??28?? 2:32??Lingjiang Fang > > ?? > > > > keep align with movenc, or it seems a little weired when debug > > --- > > libavformat/flvenc

Re: [FFmpeg-devel] [PATCH] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-05-24 Thread Lingjiang Fang
> +(ts_diff >= 0 && (pls->seek_flags & > AVSEEK_FLAG_ANY || > + pls->pkt->flags & > AV_PKT_FLAG_KEY))) { pls->seek_timestamp = AV_NOPTS_VALUE; > break; >

Re: [FFmpeg-devel] [PATCH 1/1] avformat/hlsenc: Fix bug on start_pts

2021-05-25 Thread Lingjiang Fang
_VIDEO && vs->start_pts > pkt->pts) { > +if (vs->start_pts_from_audio && st->codecpar->codec_type == > AVMEDIA_TYPE_VIDEO > +&& vs->start_pts > pkt->pts && pkt->pts != AV_NOPTS_VALUE) { maybe it's better put pkt->

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-11 Thread Lingjiang Fang
t is to get exactly packets of the specified seek time, not only the specified stream but also all streams I need. To achieve this, I will put this patch lines before this if block, like this: if (pls->seek_timestamp == AV_NOPTS_VALUE) break; if ( pls->seek_flags &

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-12 Thread Lingjiang Fang
On Sat, 12 Jun 2021 14:16:22 +0200 Gustav Grusell wrote: > On Fri, Jun 11, 2021 at 6:29 PM Lingjiang Fang > wrote: > > > On Sat, 5 Jun 2021 22:42:26 +0200 > > Gustav Grusell wrote: > > > > > Before, seeking in hls streams would always seek to the

Re: [FFmpeg-devel] [PATCH v2] avformat/hls Implement support for using AVSEEK_FLAG_BACKWARD when seeking

2021-06-13 Thread Lingjiang Fang
On Sat, 12 Jun 2021 23:14:16 +0200 Gustav Grusell wrote: > On Sat, Jun 12, 2021 at 6:51 PM Lingjiang Fang > wrote: > > > On Sat, 12 Jun 2021 14:16:22 +0200 > > Gustav Grusell wrote: > > > > > On Fri, Jun 11, 2021 at 6:29 PM Lingjiang Fang > > >

Re: [FFmpeg-devel] [PATCH] lavfi/drawtext: Add localtime_ms for millisecond precision

2021-06-15 Thread Lingjiang Fang
g.org with subject "unsubscribe". > > Thanks > Steven > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > f

Re: [FFmpeg-devel] [PATCH] lavfi/drawtext: Add localtime_ms for millisecond precision

2021-06-16 Thread Lingjiang Fang
On Wed, 16 Jun 2021 10:52:31 +0800 Steven Liu wrote: > > 2021??6??16?? 9:56??Lingjiang Fang > > ?? > > > > On Tue, 15 Jun 2021 11:42:44 +0800 > > Steven Liu wrote: > > > >> Thilo Borgmann ??2021??6??15?? > >> 3:14??

[FFmpeg-devel] [PATCH] lavf/vf_ocr: add subregion support

2021-06-16 Thread Lingjiang Fang
--- doc/filters.texi | 7 +++ libavfilter/vf_ocr.c | 30 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index da8f7d7726..9c650a2a5a 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -15451,6 +15451,1

[FFmpeg-devel] [PATCH V2] lavf/vf_ocr: add subregion support

2021-06-17 Thread Lingjiang Fang
fix bugs of previous patch, ping for review --- doc/filters.texi | 7 +++ libavfilter/vf_ocr.c | 35 ++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index da8f7d7726..a955cf46e0 100644 --- a/doc/filters

Re: [FFmpeg-devel] [PATCH] lavf/vf_ocr: add subregion support

2021-06-17 Thread Lingjiang Fang
On Thu, 17 Jun 2021 11:57:00 +0530 Gyan Doshi wrote: > On 2021-06-17 11:31, Lingjiang Fang wrote: > > --- > > doc/filters.texi | 7 +++ > > libavfilter/vf_ocr.c | 30 +- > > 2 files changed, 36 insertions(+), 1 deletion(

Re: [FFmpeg-devel] [PATCH V2] lavf/vf_ocr: add subregion support

2021-06-17 Thread Lingjiang Fang
On Thu, 17 Jun 2021 22:08:52 +0530 Gyan Doshi wrote: > On 2021-06-17 20:28, Lingjiang Fang wrote: > > fix bugs of previous patch, ping for review > > --- > > doc/filters.texi | 7 +++ > > libavfilter/vf_ocr.c | 35 ++

[FFmpeg-devel] [PATCH V3] lavf/vf_ocr: add subregion support

2021-06-18 Thread Lingjiang Fang
fix doc errors, ping for review, thanks :) --- doc/filters.texi | 8 libavfilter/vf_ocr.c | 35 ++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index da8f7d7726..041fd28c57 100644 --- a/doc/filte

Re: [FFmpeg-devel] [PATCH V3] lavf/vf_ocr: add subregion support

2021-07-04 Thread Lingjiang Fang
On Fri, 18 Jun 2021 23:56:56 +0800 Lingjiang Fang wrote: ping for review, thanks > fix doc errors, ping for review, thanks :) > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 35 ++- > 2 files changed, 42 insertions

[FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-11 Thread Lingjiang Fang
follow comments from Steven Liu --- doc/filters.texi | 8 libavfilter/vf_ocr.c | 45 +++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d991c06628..f41ba0ce46 100644 --- a/doc/filters.t

[FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-11 Thread Lingjiang Fang
follow comments from Steven Liu --- doc/filters.texi | 8 libavfilter/vf_ocr.c | 45 +++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d991c06628..f41ba0ce46 100644 --- a/doc/filters.t

[FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-11 Thread Lingjiang Fang
follow comments from Steven Liu --- doc/filters.texi | 8 libavfilter/vf_ocr.c | 45 +++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d991c06628..f41ba0ce46 100644 --- a/doc/filters.t

Re: [FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-11 Thread Lingjiang Fang
On Mon, 12 Jul 2021 13:09:26 +0800 Lingjiang Fang wrote: Sorry, I made a mistake when reply to previous email, ignore this please : ( > follow comments from Steven Liu > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 45 > +

Re: [FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-11 Thread Lingjiang Fang
On Mon, 12 Jul 2021 13:11:28 +0800 Lingjiang Fang wrote: Sorry, I made a mistake when reply to previous email, ignore this please : ( > follow comments from Steven Liu > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 45 > +++

Re: [FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-20 Thread Lingjiang Fang
On Mon, 12 Jul 2021 13:14:01 +0800 Lingjiang Fang wrote: ping for review, thanks > follow comments from Steven Liu > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 45 > +++- 2 files changed, 52 > insertions(+), 1 del

Re: [FFmpeg-devel] [PATCH V4] lavf/vf_ocr: add subregion support

2021-07-21 Thread Lingjiang Fang
On Wed, 21 Jul 2021 09:38:51 +0800 Steven Liu wrote: > > > > 2021??7??12?? 1:14??Lingjiang Fang > > ?? > > > > follow comments from Steven Liu > > --- > > doc/filters.texi | 8 > > libavfilter/vf_ocr.c | 45 > > ++

[FFmpeg-devel] [PATCH V5] lavf/vf_ocr: add subregion support

2021-07-22 Thread Lingjiang Fang
remove TODO assignee --- doc/filters.texi | 8 libavfilter/vf_ocr.c | 45 +++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d991c06628..f41ba0ce46 100644 --- a/doc/filters.texi +++ b/d

Re: [FFmpeg-devel] [PATCH] avfilter: add stereoupmix

2020-12-13 Thread Lingjiang Fang
t;+AVFilterContext *ctx = outlink->src; >+StereoUpmixContext *s = ctx->priv; >+double w0 = 2. * M_PI * 120. / outlink->sample_rate; >+double alpha = sin(w0) / 2. * sqrt(2.); >+double a0 = 1. + alpha; >+ >+s->a[0] = 2. * cos(w0); >+s->

[FFmpeg-devel] [PATCH] doc/tcp: update option listen description

2021-01-02 Thread Lingjiang Fang
--- doc/protocols.texi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/protocols.texi b/doc/protocols.texi index de377a9546..e5a68dcbf4 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -1635,8 +1635,10 @@ tcp://@var{hostname}:@var{port}[?@var{options}] The

[FFmpeg-devel] [PATCH] accelerate h2645 nalu start code finding

2021-12-08 Thread Lingjiang Fang
--- libavcodec/h2645_parse.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) refer from webrtc h264 parser diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index 6fbe97ad4a..e372d2a27b 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c

[FFmpeg-devel] [PATCH] lavc: fix h264 parser bug

2022-05-12 Thread Lingjiang Fang
will give a wrong nalu length(+1) when next nalu start with 0001 this bug will lead to an padding zero to pps in AVC Sequence header(flv) or in avc1(mpr) --- libavcodec/h2645_parse.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c

Re: [FFmpeg-devel] [PATCH] lavc: fix h264 parser bug

2022-05-16 Thread Lingjiang Fang
On Fri, 13 May 2022 00:22:02 +0800 Lingjiang Fang wrote: ping for review padding zero after pps may lead to decode crash in same ipads btw, I am working on update fate cases to fit this bugfix > will give a wrong nalu length(+1) when next nalu start with 0001 > this bug will lead