Re: [FFmpeg-devel] [PATCH] avfilter/alimiter:add latency compensation

2022-05-10 Thread Wang Cao
On Thu, May 5, 2022 at 2:14 PM Wang Cao wrote: > Also added 2 FATE tests to verify delay is compenated correctly > > Signed-off-by: Wang Cao > --- > doc/filters.texi| 5 +++ > libavfilter/af_alimiter.c | 90 + > tests/

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add an option "comp_delay" that removes the delay introduced by lookahead buffer

2022-05-05 Thread Wang Cao
On Mon, May 2, 2022 at 1:24 AM Paul B Mahol wrote: > On Fri, Apr 29, 2022 at 10:49 PM Wang Cao < > wangcao-at-google@ffmpeg.org> > wrote: > > > On Fri, Apr 15, 2022 at 11:50 AM Wang Cao wrote: > > > > > 1. The option also flushes all the valid audio s

[FFmpeg-devel] [PATCH] avfilter/alimiter:add latency compensation

2022-05-05 Thread Wang Cao
Also added 2 FATE tests to verify delay is compenated correctly Signed-off-by: Wang Cao --- doc/filters.texi| 5 +++ libavfilter/af_alimiter.c | 90 + tests/fate/filter-audio.mak | 24 -- 3 files changed, 116 insertions(+), 3 deletions

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add an option "comp_delay" that removes the delay introduced by lookahead buffer

2022-04-29 Thread Wang Cao
On Fri, Apr 15, 2022 at 11:50 AM Wang Cao wrote: > 1. The option also flushes all the valid audio samples in the lookahead >buffer so the audio integrity is preserved. Previously the the output >audio will lose the amount of audio samples equal to the size of >lookahea

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-15 Thread Wang Cao
On Tue, Apr 12, 2022 at 12:40 PM Paul B Mahol wrote: > On Mon, Apr 11, 2022 at 10:59 PM Wang Cao < > wangcao-at-google@ffmpeg.org> > wrote: > > > On Sat, Apr 9, 2022 at 5:35 AM Paul B Mahol wrote: > > > > > On Fri, Apr 8, 2022 at 10:41 PM Wang Cao

[FFmpeg-devel] [PATCH] avfilter/alimiter: Add an option "comp_delay" that removes the delay introduced by lookahead buffer

2022-04-15 Thread Wang Cao
as passthrough filter, all audio samples are properly handled from the input to the output. Signed-off-by: Wang Cao --- doc/filters.texi| 5 +++ libavfilter/af_alimiter.c | 74 + tests/fate/filter-audio.mak | 12 ++ 3 files changed, 91

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-12 Thread Wang Cao
On Tue, Apr 12, 2022 at 12:40 PM Paul B Mahol wrote: > On Mon, Apr 11, 2022 at 10:59 PM Wang Cao < > wangcao-at-google@ffmpeg.org> > wrote: > > > On Sat, Apr 9, 2022 at 5:35 AM Paul B Mahol wrote: > > > > > On Fri, Apr 8, 2022 at 10:41 PM Wang Cao

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-11 Thread Wang Cao
On Sat, Apr 9, 2022 at 5:35 AM Paul B Mahol wrote: > On Fri, Apr 8, 2022 at 10:41 PM Wang Cao > > wrote: > > > On Fri, Apr 8, 2022 at 11:40 AM Paul B Mahol wrote: > > > > > On Thu, Apr 7, 2022 at 11:56 PM Wang Cao < > > wangcao-at-google@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-08 Thread Wang Cao
On Fri, Apr 8, 2022 at 11:40 AM Paul B Mahol wrote: > On Thu, Apr 7, 2022 at 11:56 PM Wang Cao > > wrote: > > > On Thu, Apr 7, 2022 at 12:44 AM Paul B Mahol wrote: > > > > > On Wed, Apr 6, 2022 at 1:49 PM Paul B Mahol wrote: > > > > > > &g

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-07 Thread Wang Cao
On Thu, Apr 7, 2022 at 12:44 AM Paul B Mahol wrote: > On Wed, Apr 6, 2022 at 1:49 PM Paul B Mahol wrote: > > > > > > > On Tue, Apr 5, 2022 at 8:57 PM Wang Cao < > wangcao-at-google@ffmpeg.org> > > wrote: > > > >&g

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-04-05 Thread Wang Cao
On Mon, Apr 4, 2022 at 3:28 PM Marton Balint wrote: > > > On Mon, 4 Apr 2022, Paul B Mahol wrote: > > > On Sun, Mar 27, 2022 at 11:41 PM Marton Balint wrote: > > > >> > >> > >> On Sat, 26 Mar 2022, Wang Cao wrote: > >> > >>>

[FFmpeg-devel] [PATCH] avfilter/alimiter: Remove the delay introduced by lookahead buffer

2022-03-30 Thread Wang Cao
The change essentially removes the delay introduces by lookahead buffer. The valid audio data in the internal buffer is also flushed to ensure the integrity of output. Signed-off-by: Wang Cao --- doc/filters.texi | 2 - libavfilter/af_alimiter.c | 97 +- tests/ref/fate

[FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

2022-03-27 Thread Wang Cao
The change in the commit will add some samples to the end of the audio stream. The intention is to add a "zero_delay" option eventually to not have the delay in the begining the output from alimiter due to lookahead. Signed-off-by: Wang Cao --- doc/filters.texi | 5 l

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/libaomenc.c: Add command-line options for tx tools.

2020-07-22 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 20 libavcodec/libaomenc.c | 30 ++ libavcodec/version.h | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/libaomenc.c: Add command-line options for inter-coding tools

2020-07-22 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 36 + libavcodec/libaomenc.c | 60 ++ libavcodec/version.h | 2 +- 3 files changed, 97 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg.c: Use the streams from the first output in print_final_stats.

2020-07-17 Thread Wang Cao
Hi, I am wondering if this is a change that would make unpredictable impact on the stats report for ffmpeg. If this is the case, can you take a look at my next patch in the series? It adds an option to print stats for each output file when enabled. Thank you! Best, Wang

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/libaomenc.c: Add command-line options for inter-coding tools

2020-07-14 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 36 + libavcodec/libaomenc.c | 60 ++ libavcodec/version.h | 2 +- 3 files changed, 97 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/libaomenc.c: Add command-line options for tx tools.

2020-07-14 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 20 libavcodec/libaomenc.c | 32 libavcodec/version.h | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg.c: Use the streams from the first output in print_final_stats.

2020-07-07 Thread Wang Cao
Friendly ping here. Is there something I need to change for this patch set? Any comments are welcome. Thank you! ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

[FFmpeg-devel] [PATCH v3] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-30 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 36 + libavcodec/libaomenc.c | 46 ++ libavcodec/version.h | 2 +- 3 files changed, 83 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b

[FFmpeg-devel] [PATCH v3] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-29 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- Check libaom ABI version to use SUPERRES enum in aom_encoder.h doc/encoders.texi | 36 + libavcodec/libaomenc.c | 46 ++ libavcodec/version.h | 2 +- 3 files changed, 83

[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg.c: Add an option "multiple_output_final_stats"

2020-06-26 Thread Wang Cao
From: Wang Cao * "multiple_output_final_stats" is used to display stats for each output when ffmpeg completes processing. * Also refactor to add a new function to print verbose stats for input/output so that the behavior is same as before by default. Signed-off-by: Wang Cao

[FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg.c: Use the streams from the first output in print_final_stats.

2020-06-26 Thread Wang Cao
From: Wang Cao It appears the initial intention was to print stats for the first output. Currently all output streams are aggregated for the final stats which is inconsistent with the "size" reported in print_report. For example, when two outputs are specified, output 0 has size

[FFmpeg-devel] [PATCH 2/5] libavcodec/libaomenc: Add command-line options to control the use of partition tools.

2020-06-25 Thread Wang Cao
This patch adds the control for enabling rectangular partitions, 1:4/4:1 partitions and AB shape partitions. Signed-off-by: Wang Cao --- doc/encoders.texi | 10 ++ libavcodec/libaomenc.c | 15 +++ libavcodec/version.h | 2 +- 3 files changed, 26 insertions(+), 1

[FFmpeg-devel] [PATCH 4/5] libavcodec/libaomenc.c: Add command-line options for tx tools.

2020-06-25 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 21 + libavcodec/libaomenc.c | 31 +++ libavcodec/version.h | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index f052d68c46

[FFmpeg-devel] [PATCH 5/5] libavcodec/libaomenc.c: Add command-line options for inter-coding tools

2020-06-25 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 36 + libavcodec/libaomenc.c | 61 ++ libavcodec/version.h | 2 +- 3 files changed, 98 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index

[FFmpeg-devel] [PATCH 3/5] libavcodec/libaomenc.c: Add command-line options for intra-coding tools

2020-06-25 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 21 +++ libavcodec/libaomenc.c | 47 -- libavcodec/version.h | 2 +- 3 files changed, 63 insertions(+), 7 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index

[FFmpeg-devel] [PATCH 1/5] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-25 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 39 +++ libavcodec/libaomenc.c | 38 ++ libavcodec/version.h | 2 +- 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b

[FFmpeg-devel] [PATCH v3] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-25 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- Updated to use the enum defined in libaom for super-resolution. doc/encoders.texi | 39 +++ libavcodec/libaomenc.c | 38 ++ libavcodec/version.h | 2 +- 3 files changed

[FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-04-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 39 +++ libavcodec/libaomenc.c | 47 ++ libavcodec/version.h | 2 +- 3 files changed, 87 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc

[FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-04-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 9 + libavcodec/libaomenc.c | 7 +++ libavcodec/version.h | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b32fe..18bfe8f2eb 100644 --- a/doc/encoders.texi

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-04-03 Thread Wang Cao
On Wed, Mar 18, 2020 at 6:38 AM James Zern wrote: > Hi, > > On Thu, Mar 5, 2020 at 6:20 PM Wang Cao wrote: > > > > Signed-off-by: Wang Cao > > --- > > The changes are made according to the code review > > - Bump the MICRO version > > - Use enum f

Re: [FFmpeg-devel] [PATCH 2/2] libavcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-03-05 Thread Wang Cao
On Wed, Mar 4, 2020 at 1:38 AM Moritz Barsnick wrote: > On Wed, Mar 04, 2020 at 05:59:03 +0800, Wang Cao wrote: > > Signed-off-by: Wang Cao > > --- > > doc/encoders.texi | 39 +++ > >

[FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-03-05 Thread Wang Cao
Signed-off-by: Wang Cao --- Made changes according to the review. - Bump the MICRO version of libavcodec. - Use enum for 'tune' option consts for better consistency doc/encoders.texi | 11 +++ libavcodec/libaomenc.c | 7 +++ libavcodec/version.h | 2 +- 3 files changed, 19

[FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-03-05 Thread Wang Cao
Signed-off-by: Wang Cao --- The changes are made according to the code review - Bump the MICRO version - Use enum for Super resolution mode consts. The original enum in libaom is not public so a enum is defined and matched the original enum doc/encoders.texi | 39

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
On Tue, Mar 3, 2020 at 3:53 PM Carl Eugen Hoyos wrote: > Am Mi., 4. März 2020 um 00:51 Uhr schrieb Wang Cao > : > > [...] > > Please find out what "top-posting" means and avoid it here. > > Carl Eugen > I am very sorry about this my "top-posting&quo

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
Let me reply again with the correct posting form. On Tue, Mar 3, 2020 at 2:50 PM Carl Eugen Hoyos wrote: > Am Di., 3. März 2020 um 22:43 Uhr schrieb Wang Cao : > > > +@item tune (@emph{tune}) > > +Set the distortion metric tuned with for encoder. Default is PSNR. >

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
IM are two metrics that the library definitely has default support with. On Tue, Mar 3, 2020 at 2:50 PM Carl Eugen Hoyos wrote: > Am Di., 3. März 2020 um 22:43 Uhr schrieb Wang Cao : > > > +@item tune (@emph{tune}) > > +Set the distortion metric tuned with for encoder. Defaul

[FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 11 +++ libavcodec/libaomenc.c | 7 +++ 2 files changed, 18 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b32fe..4215f237bd 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1508,6 +1508,17

[FFmpeg-devel] [PATCH 2/2] libavcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-03-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 39 +++ libavcodec/libaomenc.c | 38 ++ 2 files changed, 77 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4215f237bd..ac00c305d5 100644 --- a/doc

[FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 11 +++ libavcodec/libaomenc.c | 7 +++ 2 files changed, 18 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b32fe..4215f237bd 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1508,6 +1508,17

[FFmpeg-devel] [PATCH 1/2] libavcodec/libaomenc.c: Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 11 +++ libavcodec/libaomenc.c | 7 +++ 2 files changed, 18 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b32fe..4215f237bd 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1508,6 +1508,17

[FFmpeg-devel] [PATCH 2/2] libavcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-03-03 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 39 +++ libavcodec/libaomenc.c | 38 ++ 2 files changed, 77 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4215f237bd..ac00c305d5

[FFmpeg-devel] [PATCH] Add a libaom command-line opton 'tune'

2020-03-03 Thread Wang Cao
From: Wang Cao Signed-off-by: Wang Cao --- doc/encoders.texi | 11 +++ libavcodec/libaomenc.c | 7 +++ 2 files changed, 18 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b32fe..a9f5c9fd28 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi

[FFmpeg-devel] [PATCH] Add a commandline option to control loop restoration for libaom

2019-12-23 Thread Wang Cao
Signed-off-by: Wang Cao --- doc/encoders.texi | 3 +++ libavcodec/libaomenc.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 4ee518a124..56b36c156b 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1587,6 +1587,9 @@ Enable row

[FFmpeg-devel] [PATCH] Add a commandline option to control loop restoration for libaom

2019-12-18 Thread Wang Cao
Signed-off-by: Wang Cao --- libavcodec/libaomenc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index e06697c1bf..41a250302d 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -92,6 +92,7 @@ typedef struct

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: add an option "detail_stats" to allow ffmpeg to output stats for each stream

2018-11-12 Thread Wang Cao
Friendly ping! On Tue, Oct 16, 2018 at 3:39 PM Wang Cao wrote: > From: Wang Cao > > - Add an option "detail_stats" to ffmpeg to output stats for each > video/audio streams and each ouptut file ffmpeg output log in print_report. > - Make print_final_stats only ou

[FFmpeg-devel] [PATCH] ffmpeg.c: add an option "detail_stats" to allow ffmpeg to output stats for each stream

2018-10-16 Thread Wang Cao
From: Wang Cao - Add an option "detail_stats" to ffmpeg to output stats for each video/audio streams and each ouptut file ffmpeg output log in print_report. - Make print_final_stats only output stats for one output instead of aggregate stats. Signed-off-by: Wang Cao --- When creatin

[FFmpeg-devel] [PATCH] ffmpeg.c: add an option "detail_stats" to allow ffmpeg to output stats for each stream

2018-08-28 Thread Wang Cao
From: Wang Cao Add an option "detail_stats" to ffmpeg to output stats for each video/audio streams and each ouptut file ffmpeg output log in print_report. The format of stats is unchanged. Signed-off-by: Wang Cao --- Run after "make fate" and all tests passed. doc/f

[FFmpeg-devel] [PATCH] ffmpeg.c: add an option "detail_stats" to allow ffmpeg to output stats for each stream

2018-08-23 Thread Wang Cao
From: Wang Cao Add an option "detail_stats" to ffmpeg to output stats for each video/audio streams and each ouptut file ffmpeg output log in print_report. The format of stats is unchanged. Signed-off-by: Wang Cao --- doc/ffmpeg.texi | 4 fftools/ffmpeg.

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-07-16 Thread Wang Cao
output stats for each video/audio stream one line by another. It seems this would be a huge change to users who are not aware. Keeping the old file bitrate looks good to me. Can I extend this to output file bitrate for each output file? -- Wang Cao ___

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-07-12 Thread Wang Cao
ze not the file size. On Thu, Jul 12, 2018 at 2:18 PM Carl Eugen Hoyos wrote: > 2018-07-12 20:56 GMT+02:00, Wang Cao : > > > After my change: > > > >> frame=3 fps=0.0 q=2.0 Lsize= 51kB time=00:00:00.12 > >> bitrate=3495.7kbits/s speed= 12x > >

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-07-12 Thread Wang Cao
context with "frame, fps, time". For bitrate, I use the stream size to calculate it and I think it's more accurate. On Thu, Jul 12, 2018 at 5:01 AM Michael Niedermayer wrote: > On Wed, Jul 11, 2018 at 03:47:45PM -0700, Wang Cao wrote: > > > > > > This changes the pri

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-06-28 Thread Wang Cao
Friendly ping. Thanks! ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] (no subject)

2018-06-28 Thread Wang Cao
I created a newer version to change "MPEG" to "LIMITED" and "JPEG" to "FULL". ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M.

2018-06-28 Thread Wang Cao
Set pixel format and color_range for YUVJ pixel formats. Also set color_range based on AVFormatContext. Signed-off-by: Wang Cao --- libavformat/yuv4mpegdec.c | 8 libavformat/yuv4mpegenc.c | 37 +++-- 2 files changed, 43 insertions(+), 2 deletions

Re: [FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M. Also set pixel format and color_range for YUVJ pixel formats.

2018-06-28 Thread Wang Cao
> > If this is a type we are choosing then it would be probably better > to use something else than mpeg/jpeg as names > these are 2 standard comittees and their standards support more than > one color range. > maybe "full" and "limited" or some other terms may be better Thanks for pointing out

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-06-22 Thread Wang Cao
for all output files. Signed-off-by: Wang Cao --- fftools/ffmpeg.c | 52 +--- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d4ac6903cc..321f7a6017 100644 --- a/fftools/ffmpeg.c +++ b/fftools

[FFmpeg-devel] (no subject)

2018-06-22 Thread Wang Cao
Thanks for pointing this out. I have modified the code according to your comments. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M. Also set pixel format and color_range for YUVJ pixel formats.

2018-06-22 Thread Wang Cao
x.die.net/man/5/yuv4mpeg, we should be able to use X tag to support color range. Color range would be good to have to give Y4M more capability to handle HDR(probably) and other pixel formats (.e.g. YUV420P with full range). -- Wang Cao ___ ffmpeg-devel mail

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream - Make ffmpeg to output stats for each video/audio streams and each ouptut file ffmpeg output log in print_repor

2018-06-20 Thread Wang Cao
800, Wang Cao wrote: > > Signed-off-by: Wang Cao > > --- > > fftools/ffmpeg.c | 45 +++-- > > 1 file changed, 31 insertions(+), 14 deletions(-) > > this adds some warnings: > > CC fftools/ffmpeg.o > fftools/ffmpeg.c:15

Re: [FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M. Also set pixel format and color_range for YUVJ pixel formats.

2018-06-20 Thread Wang Cao
It's in the yuv4mpegenc.c. I added a support for color range by specifying metadata in the Y4M header. On Thu, Jun 14, 2018 at 12:19 AM Carl Eugen Hoyos wrote: > 2018-06-13 18:03 GMT+02:00, Wang Cao : > > > @@ -220,6 +221,12 @@ static int yuv4_read_header(AVForm

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-06-20 Thread Wang Cao
for all output files. Signed-off-by: Wang Cao --- fftools/ffmpeg.c | 47 +-- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d4ac6903cc..1842ccd543 100644 --- a/fftools/ffmpeg.c +++ b/fftools

[FFmpeg-devel] (no subject)

2018-06-20 Thread Wang Cao
For example: with (-psnr) frame= 450 fps=315 q=0.0 LPSNR=Y:44.15 U:43.21 V:42.36 *:43.64 size= 385kB time=00:00:15.01 bitrate= 210.0kbits/s speed=10.5x (video stats) size= 107kB time=00:00:15.13 bitrate= 58.0kbits/s speed=10.6x (audio stats) frame= 450 fps=112 q=0.0 LPSNR=Y:44.15

[FFmpeg-devel] (no subject)

2018-06-20 Thread Wang Cao
For example: with (-psnr) frame= 450 fps=315 q=0.0 LPSNR=Y:44.15 U:43.21 V:42.36 *:43.64 size= 385kB time=00:00:15.01 bitrate= 210.0kbits/s speed=10.5x (video stats) size= 107kB time=00:00:15.13 bitrate= 58.0kbits/s speed=10.6x (audio stats) If there are multiple files, stats of the

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-06-14 Thread Wang Cao
for all output files. Signed-off-by: Wang Cao --- fftools/ffmpeg.c | 45 +++-- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d4ac6903cc..1eaf344552 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream - Make ffmpeg to output stats for each video/audio streams and each ouptut file ffmpeg output log in print_report. T

2018-06-14 Thread Wang Cao
Signed-off-by: Wang Cao --- fftools/ffmpeg.c | 45 +++-- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d4ac6903cc..1eaf344552 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1530,17

[FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M. Also set pixel format and color_range for YUVJ pixel formats.

2018-06-13 Thread Wang Cao
--- libavformat/yuv4mpegdec.c | 8 libavformat/yuv4mpegenc.c | 37 +++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c index eff7fc518e..86e8673b2f 100644 ---

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-05-22 Thread Wang Cao
for all output files. Signed-off-by: Wang Cao <wang...@google.com> --- fftools/ffmpeg.c | 65 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 5a19a09d9a..0b98521852 100644 --- a/fftools/ff

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-05-21 Thread Wang Cao
Sorry the ticket doesn't contain alaw_2.aif as in https://trac.ffmpeg.org/ticket/1660 On Fri, May 18, 2018 at 8:13 PM, Michael Niedermayer <mich...@niedermayer.cc > wrote: > On Fri, May 18, 2018 at 04:54:25PM -0700, Wang Cao wrote: > > - Make ffmpeg to output stats for eac

[FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-05-18 Thread Wang Cao
output files. Signed-off-by: Wang Cao <wang...@google.com> --- fftools/ffmpeg.c | 182 ++- 1 file changed, 101 insertions(+), 81 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 5a19a09d9a..4aa6c1d3e4 100644 --- a/fftools/ffmpeg.c