Re: [FFmpeg-devel] [PATCHv4] af_hdcd: more FATE tests

2016-12-28 Thread Burt P.
applied. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCHv4] af_hdcd: more FATE tests

2016-12-26 Thread Burt P
s the first second of filter/hdcd.flac, with the 16-bit LSB copied into bit 20 of a 24-bit stream. There isn't an actual non-16-bit HDCD sample available to test. Signed-off-by: Burt P --- tests/fate/filter-audio.mak | 84 +++-- 1 file changed, 73

Re: [FFmpeg-devel] [PATCHv3] af_hdcd: more FATE tests

2016-12-26 Thread Burt P.
On Tue, Dec 20, 2016 at 11:57 AM, Michael Niedermayer wrote: > did you post links to any of the files or how can the new files be > added ? Yes, in IRC. Thank you for uploading. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmp

Re: [FFmpeg-devel] [PATCHv3] af_hdcd: more FATE tests

2016-12-19 Thread Burt P.
On Sun, Dec 18, 2016 at 6:54 PM, Michael Niedermayer wrote: > On Sun, Dec 18, 2016 at 12:48:45PM -0600, Burt P wrote: >> Additional/Modified FATE tests improve code coverage from 63.7% to 98.1%. >> >> Changed fate-suite sample files: >> * filter/hdcd-encoding-errors.fla

[FFmpeg-devel] [PATCHv3] af_hdcd: more FATE tests

2016-12-18 Thread Burt P
tream. There isn't an actual non-16-bit HDCD sample available to test. Net change -34K. Would be -944K if hdcd.flac could be removed. Signed-off-by: Burt P --- tests/fate/filter-audio.mak | 86 ++--- 1 file changed, 74 insertions(+), 12 deletions(-) di

[FFmpeg-devel] [PATCHv2] af_hdcd: more FATE tests

2016-12-18 Thread Burt P
tream. There isn't an actual non-16-bit HDCD sample available to test. Net change -34K. Would be -944K if hdcd.flac could be removed. Signed-off-by: Burt P --- tests/fate/filter-audio.mak | 86 ++--- 1 file changed, 74 insertions(+), 12 deletions(-) di

Re: [FFmpeg-devel] [PATCH] af_hdcd: more FATE tests

2016-12-18 Thread Burt P.
On Sun, Dec 18, 2016 at 3:30 AM, Hendrik Leppkes wrote: > On Sun, Dec 18, 2016 at 8:42 AM, Burt P wrote: >> Additional/Modified FATE tests improve code coverage from 63.7% to 98.1%. >> >> Changed fate-suite sample files: >> * filter/hdcd-encoding-errors.flac (1.3M) r

[FFmpeg-devel] [PATCH] af_hdcd: more FATE tests

2016-12-17 Thread Burt P
/hdcd.flac (910K) removed, although it was a nice tune and the samples that replace it are terrible sounds. Net change +290K. Signed-off-by: Burt P --- tests/fate/filter-audio.mak | 86 ++--- 1 file changed, 74 insertions(+), 12 deletions(-) diff --git a/tests

Re: [FFmpeg-devel] [PATCH 5/5] af_hdcd: add experimental 20 and 24-bit decoding support

2016-10-05 Thread Burt P.
applied split into two commits -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 3/5] af_hdcd: add mono as a supported channel layout

2016-10-05 Thread Burt P.
applied -- Burt On Sun, Oct 2, 2016 at 2:46 AM, Burt P wrote: > Signed-off-by: Burt P > --- > libavfilter/af_hdcd.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c > index 90b6b64..6f35c09 10064

Re: [FFmpeg-devel] [PATCH 2/5] af_hdcd: support s16p (WavPack) directly

2016-10-05 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 4/5] af_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel

2016-10-05 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 1/5] af_hdcd: allow all HDCD sample rates

2016-10-05 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH 5/5] af_hdcd: add experimental 20 and 24-bit decoding support

2016-10-02 Thread Burt P
sted by Nicolas George. [1] [0] https://github.com/bp0/libhdcd/commit/dc32b383efab5608820af4f641db292f9a776778 [1] http://ffmpeg.org/pipermail/ffmpeg-devel/2016-August/197571.html Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 135 ++ 1 file changed

[FFmpeg-devel] [PATCH 2/5] af_hdcd: support s16p (WavPack) directly

2016-10-02 Thread Burt P
The buffer is already being copied anyway, so interlace the planar format during the copy and remove one use of auto-convert. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter

[FFmpeg-devel] Alternate HDCD format/rate support

2016-10-02 Thread Burt P
According to the Users' Manual, the PM Model Two would encode HDCD in any CD or DVD-Audio sampler rates, and at 16, 20, or 24-bit output. While HDCD was (afaik) only published on CD, and therefor 16-bit@44100Hz, audio may exist in any other other formats supported by the encoding equipment, so I'

[FFmpeg-devel] [PATCH 4/5] af_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel

2016-10-02 Thread Burt P
New versions of hdcd_scan() and hdcd_integrate() that also do the work of hdcd_scan_stereo() and hdcd_integrate_stereo(). Some code split into previously separate functions to remove duplication is now merged back into each function in the single place where it is used. Signed-off-by: Burt P

[FFmpeg-devel] [PATCH 1/5] af_hdcd: allow all HDCD sample rates

2016-10-02 Thread Burt P
The PM Model Two could output HDCD-encoded audio in CD and all DVD-Audio sample rates. (44100, 48000, 88200, 96000, 176400, and 192000 Hz) Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavfilter/af_hdcd.c b

[FFmpeg-devel] [PATCH 3/5] af_hdcd: add mono as a supported channel layout

2016-10-02 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 90b6b64..6f35c09 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1724,6 +1724,9 @@ static int

Re: [FFmpeg-devel] [PATCH 2/5] af_hdcd: hdcd_analyze_gen() using int instead of float

2016-09-07 Thread Burt P.
applied as is for now. Thanks for the comment. I will look into a faster way of doing it. I only needed to change from the float version because it was giving different results for i686 than for amd64. I don't know why, exactly, but I do know that this version gives bit-perfect results everywhere

Re: [FFmpeg-devel] [PATCH 1/5] af_hdcd: some types renamed to remove _t

2016-09-07 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 3/5] af_hdcd: fix possible integer overflow

2016-09-07 Thread Burt P.
applied with fix: uint64_t sustain_reset = (uint64_t)cdt_ms * rate / 1000; Thank you, Michael. -- Burt On Tue, Sep 6, 2016 at 5:00 PM, Michael Niedermayer wrote: > On Mon, Sep 05, 2016 at 06:18:43AM -0500, Burt P wrote: >> Signed-off-by: Burt P >> --- >> liba

Re: [FFmpeg-devel] [PATCH 4/5] af_hdcd: move decoding setup from init to config_input

2016-09-07 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 5/5] af_hdcd: tweak hdcd_analyze_prepare() a bit

2016-09-07 Thread Burt P.
applied On Mon, Sep 5, 2016 at 6:18 AM, Burt P wrote: > * use the actual sample rate > * use a more sensible frequency for the tone > * update fate test result > > Signed-off-by: Burt P > --- > libavfilter/af_hdcd.c | 9 ++--- > tests/fate/filter-audio.mak |

Re: [FFmpeg-devel] [PATCH 5/5] af_hdcd: tweak hdcd_analyze_prepare() a bit

2016-09-06 Thread Burt P.
On Tue, Sep 6, 2016 at 6:12 AM, Carl Eugen Hoyos wrote: > 2016-09-06 13:02 GMT+02:00 Burt P. : >> On Tue, Sep 6, 2016 at 5:22 AM, Carl Eugen Hoyos wrote: >>> 2016-09-05 13:18 GMT+02:00 Burt P : >>>> * use the actual sample rate >>> >>> Is hdcd supp

Re: [FFmpeg-devel] [PATCH 5/5] af_hdcd: tweak hdcd_analyze_prepare() a bit

2016-09-06 Thread Burt P.
On Tue, Sep 6, 2016 at 5:22 AM, Carl Eugen Hoyos wrote: > 2016-09-05 13:18 GMT+02:00 Burt P : >> * use the actual sample rate > > Is hdcd supposed to work for sample_rates > different from 44100? As I understand it, yes. The PM Model 2 supported code insertion at all CD an

[FFmpeg-devel] [PATCH 2/5] af_hdcd: hdcd_analyze_gen() using int instead of float

2016-09-05 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index cde2340..c8bda82 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1316,11 +1316,10 @@ static void

[FFmpeg-devel] [PATCH 3/5] af_hdcd: fix possible integer overflow

2016-09-05 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index c8bda82..c249589 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1004,16 +1004,15

[FFmpeg-devel] [PATCH 1/5] af_hdcd: some types renamed to remove _t

2016-09-05 Thread Burt P
Following a suggestion by Diego Biurrun. _t is reserved for POSIX, apparently. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 58 +-- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c

[FFmpeg-devel] [PATCH 4/5] af_hdcd: move decoding setup from init to config_input

2016-09-05 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index c249589..1487a0b 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c

[FFmpeg-devel] [PATCH 5/5] af_hdcd: tweak hdcd_analyze_prepare() a bit

2016-09-05 Thread Burt P
* use the actual sample rate * use a more sensible frequency for the tone * update fate test result Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 9 ++--- tests/fate/filter-audio.mak | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libavfilter/af_hdcd.c b

[FFmpeg-devel] [PATCH 0/5] af_hdcd changes

2016-09-05 Thread Burt P
Hi. Patches follow. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCHv2] af_hdcd: for easier maintenance alongside libhdcd

2016-08-25 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 3/3] af_hdcd: for easier maintenance alongside libhdcd

2016-08-25 Thread Burt P.
Thanks for looking at it. On Wed, Aug 24, 2016 at 1:06 PM, Carl Eugen Hoyos wrote: > Hi! > > 2016-08-24 16:38 GMT+02:00 Burt P. : >> On Tue, Aug 23, 2016 at 2:29 PM, Carl Eugen Hoyos wrote: >>> It seems safer to me to use the actual number of channels than the >>&

Re: [FFmpeg-devel] [PATCH 3/3] af_hdcd: for easier maintenance alongside libhdcd

2016-08-24 Thread Burt P.
On Tue, Aug 23, 2016 at 2:29 PM, Carl Eugen Hoyos wrote: > It seems safer to me to use the actual number of channels than the > channel layout. Alright, new patch version incoming. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://f

[FFmpeg-devel] [PATCHv2] af_hdcd: for easier maintenance alongside libhdcd

2016-08-24 Thread Burt P
filter_frame() into hdcd_analyze_prepare(), from libhdcd * moved some macro definitions to the top so they are all together Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 271 -- 1 file changed, 172 insertions(+), 99 deletions(-) diff --git a

Re: [FFmpeg-devel] [PATCH 2/3] af_hdcd: check return value of av_frame_copy_props()

2016-08-24 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 1/3] fate: add test for af_hdcd analyze mode

2016-08-24 Thread Burt P.
applied -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 0/3] libhdcd and things

2016-08-23 Thread Burt P.
On Tue, Aug 23, 2016 at 3:04 AM, Paul B Mahol wrote: > So you basically saying that foo* something will not use this lib, but > lavfi will? > > What is point of lib than? To use it in things other than ffmpeg. I personally use deadbeef and quodlibet as music players, I would like to get support i

Re: [FFmpeg-devel] [PATCH 0/3] libhdcd and things

2016-08-22 Thread Burt P.
Hi. On Mon, Aug 22, 2016 at 7:52 PM, James Almer wrote: > A couple comments about the library. > > -The name hdcd_decode2 is still used in some places after your rename > commit, like the installed header and main c file. That is intentional. I want to keep the code there compatible with foo_hdcd

[FFmpeg-devel] [PATCH 1/3] fate: add test for af_hdcd analyze mode

2016-08-22 Thread Burt P
Signed-off-by: Burt P --- tests/fate/filter-audio.mak | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak index d1d9d59..2066fa9 100644 --- a/tests/fate/filter-audio.mak +++ b/tests/fate/filter-audio.mak @@ -238,6 +238,12 @@ fate

[FFmpeg-devel] [PATCH 3/3] af_hdcd: for easier maintenance alongside libhdcd

2016-08-22 Thread Burt P
filter_frame() into hdcd_analyze_prepare(), from libhdcd * moved some macro definitions to the top so they are all together Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 275 -- 1 file changed, 175 insertions(+), 100 deletions(-) diff --git a

[FFmpeg-devel] [PATCH 2/3] af_hdcd: check return value of av_frame_copy_props()

2016-08-22 Thread Burt P
Anton Khirnov: "[av_frame_copy_props()] potentially contains memory allocation, so the return value needs to be checked." Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter

[FFmpeg-devel] [PATCH 0/3] libhdcd and things

2016-08-22 Thread Burt P
I have created a stand-alone library of the HDCD decoder from af_hdcd, and called it libhdcd. [ https://github.com/bp0/libhdcd ] I hope to use it in patches/plugins to some media players, and still be able to easily maintain them both together. There is some concern that I wanted to remove the na

Re: [FFmpeg-devel] [PATCHv5] af_hdcd: Extract generic HDCD decoder, wrap for ffmpeg

2016-08-19 Thread Burt P.
I've reconsidered and I think this change may not be a good idea at this time. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] af_volumedetect: Work with sample formats other than s16/s16p

2016-08-13 Thread Burt P.
On Sat, Aug 13, 2016 at 4:23 AM, Paul B Mahol wrote: > > Also, swresample already does what converting code do, but faster. Doing the conversion in the filter itself instead of using the auto-inserted conversion filter is that the original data is left completely untouched. Using astats, the samp

Re: [FFmpeg-devel] [PATCH] af_volumedetect: Work with sample formats other than s16/s16p

2016-08-13 Thread Burt P.
Thanks, I will use astats instead. On Sat, Aug 13, 2016 at 4:23 AM, Paul B Mahol wrote: > On 8/13/16, Nicolas George wrote: >> Le septidi 27 thermidor, an CCXXIV, Burt P a écrit : >>> The histogram will still only be shown for s16 and s16p. >>>

[FFmpeg-devel] [PATCH] af_volumedetect: Work with sample formats other than s16/s16p

2016-08-12 Thread Burt P
The histogram will still only be shown for s16 and s16p. Signed-off-by: Burt P --- libavfilter/af_volumedetect.c | 133 ++ 1 file changed, 121 insertions(+), 12 deletions(-) diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c index

Re: [FFmpeg-devel] [PATCHv2] avfiltergraph.c: restore disabling of auto conversions

2016-08-10 Thread Burt P.
applied On Wed, Aug 10, 2016 at 4:09 AM, Burt P wrote: > Restore a check added in 440af105f2306d3c7b3b3f4d7530bab910d49cb9 > but lost sometime after. avfilter_graph_set_auto_convert() will > have an effect once again. > > Signed-off-by: Burt P > --- > libavfilte

Re: [FFmpeg-devel] avfilter_graph_set_auto_convert() appears to do nothing

2016-08-10 Thread Burt P.
Now reading to the end of the original message by Nicolas George, which I should have done before, I can see that it is already known to be lost. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-dev

[FFmpeg-devel] [PATCH] avfiltergraph.c: restore disabling of auto conversions

2016-08-10 Thread Burt P
Signed-off-by: Burt P --- libavfilter/avfiltergraph.c | 8 1 file changed, 8 insertions(+) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 4275113..1685b76 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -507,6 +507,14

[FFmpeg-devel] [PATCHv2] avfiltergraph.c: restore disabling of auto conversions

2016-08-10 Thread Burt P
Restore a check added in 440af105f2306d3c7b3b3f4d7530bab910d49cb9 but lost sometime after. avfilter_graph_set_auto_convert() will have an effect once again. Signed-off-by: Burt P --- libavfilter/avfiltergraph.c | 8 1 file changed, 8 insertions(+) diff --git a/libavfilter

[FFmpeg-devel] avfilter_graph_set_auto_convert() appears to do nothing

2016-08-10 Thread Burt P.
As suggested by Nicolas George, I've recently tried avfilter_graph_set_auto_convert(ctx->graph, AVFILTER_AUTO_CONVERT_NONE) in a filter init() function, but it did not prevent auto-inserted resampling filters from appearing. I looked around a bit and could not find a place where the member of AVFi

Re: [FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

2016-08-08 Thread Burt P.
ed and removing the invasive scan. On Mon, Aug 8, 2016 at 5:16 AM, Nicolas George wrote: > Le primidi 21 thermidor, an CCXXIV, Burt P. a écrit : >> Are you now talking about plans of the future or this specific case? > > Both. > >> As it is, automatic conversion is very helpful

Re: [FFmpeg-devel] [PATCHv5] af_hdcd: Add analyze mode

2016-08-08 Thread Burt P.
applied On Sun, Aug 7, 2016 at 2:50 AM, Burt P wrote: > A new mode, selected by filter option, to aid in analysis of HDCD > encoded audio. In this mode the audio is replaced by a solid tone and > the amplitude is adjusted to signal some specified aspect of the process. > The output

Re: [FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

2016-08-07 Thread Burt P.
Are you now talking about plans of the future or this specific case? As it is, automatic conversion is very helpful, for example from WavePack, which uses s16p. This filter is only looking at the AVFilterLinks between filters, not at the filters themselves. This scan and warn behavior was added to

Re: [FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

2016-08-07 Thread Burt P.
On Sun, Aug 7, 2016 at 12:20 PM, Nicolas George wrote: > Sorry if it has been addressed before, but what are these tests? Why is this > filter invading other filters' privacy? The HDCD codes are stored in the LSB of consecutive samples, and anything that would change a sample could cause problems.

[FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

2016-08-07 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index e4e37e2..ebfe0f1 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1714,7 +1714,9 @@ static int config_input

[FFmpeg-devel] [PATCH] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

2016-08-07 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index e4e37e2..36da409 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1714,7 +1714,9 @@ static int config_input

[FFmpeg-devel] [PATCHv5] af_hdcd: Add analyze mode

2016-08-07 Thread Burt P
can see where different features or states are present. Signed-off-by: Burt P --- doc/filters.texi | 32 ++ libavfilter/af_hdcd.c | 163 +++--- 2 files changed, 187 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc

[FFmpeg-devel] [PATCHv4] af_hdcd: Add analyze mode (v4)

2016-08-07 Thread Burt P
can see where different features or states are present. Signed-off-by: Burt P --- doc/filters.texi | 32 ++ libavfilter/af_hdcd.c | 163 +++--- 2 files changed, 187 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc

Re: [FFmpeg-devel] [PATCH 2/2] aacenc: unmark the fast coder as experimental

2016-08-06 Thread Burt P.
"The ANMR coder requires -strict -2 and some may be removed in the future" should have "some" removed. On Sat, Aug 6, 2016 at 6:51 PM, Rostislav Pehlivanov wrote: > This version has had much testing so there's little point in keeping it > maked as experimental. > > Signed-off-by: Rostislav Pehliv

Re: [FFmpeg-devel] [PATCH 1/2] af_hdcd: convert AVOptions from INT to BOOL

2016-08-06 Thread Burt P.
applied thx :) On Fri, Aug 5, 2016 at 4:54 PM, Burt P wrote: > As suggested by Timothy Gu. > > Signed-off-by: Burt P > --- > libavfilter/af_hdcd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavfilter/af_hdcd.c b/libavfilter/a

[FFmpeg-devel] [PATCHv3] af_hdcd: Add analyze mode (v3)

2016-08-06 Thread Burt P
can see where different features or states are present. Signed-off-by: Burt P --- doc/filters.texi | 32 ++ libavfilter/af_hdcd.c | 164 +++--- 2 files changed, 188 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc

[FFmpeg-devel] [PATCHv2] af_hdcd: Add analyze mode

2016-08-05 Thread Burt P
can see where different features or states are present. Signed-off-by: Burt P --- doc/filters.texi | 32 ++ libavfilter/af_hdcd.c | 164 +++--- 2 files changed, 188 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc

[FFmpeg-devel] [PATCH 1/2] af_hdcd: convert AVOptions from INT to BOOL

2016-08-05 Thread Burt P
As suggested by Timothy Gu. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index ef3c369..610dd9e 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -906,9

[FFmpeg-devel] [PATCH 2/2] af_hdcd: Add analyze mode

2016-08-05 Thread Burt P
can see where different features or states are present. Signed-off-by: Burt P --- doc/filters.texi | 32 ++ libavfilter/af_hdcd.c | 164 +++--- 2 files changed, 188 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc

[FFmpeg-devel] [PATCH 0/2] Analyze mode

2016-08-05 Thread Burt P
1. Converts a couple AVOptions from INT to BOOL as suggested. 2. Adds a mode that is useful to analyze the HDCD encoding, and find interesting samples to examine more closely. Thanks for any comments. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@

Re: [FFmpeg-devel] FFmpeg 3.1.2

2016-08-05 Thread Burt P.
Can this small fix be applied to 3.1? http://ffmpeg.org/pipermail/ffmpeg-devel/2016-July/196268.html Although, if you can, please fix my typo in the subject, bing -> being. :/ On Thu, Aug 4, 2016 at 5:25 AM, Michael Niedermayer wrote: > Hi all > > ill soon make FFmpeg 3.1.2 > that is if someone

[FFmpeg-devel] [PATCHv2] af_hdcd: Process stereo channels together, fix #5727

2016-08-01 Thread Burt P
both channels together. * target_gain applied will be the last matching target_gain. * The old single channel functions remain as an option. They can be used by: -af hdcd=process_stereo=0. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 287 +++--- 1

[FFmpeg-devel] af_hdcd: add flags to AVOption defs

2016-08-01 Thread Burt P
Fix for options not showing up in ffmpeg --help filter=hdcd Apply after the earlier set of 7 patches where options were introduced. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] af_hdcd: add flags to AVOption defs

2016-08-01 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 2d7fe8d..7c90861 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -903,11 +903,12 @@ typedef struct

[FFmpeg-devel] [PATCH] MAINTAINERS: Add myself for af_hdcd

2016-07-31 Thread Burt P
Signed-off-by: Burt P --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6d4c9f9..932e6fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -308,6 +308,7 @@ Filters: af_chorus.c Paul B Mahol af_compand.c

[FFmpeg-devel] [PATCH 7/7] af_hdcd: Warn if there is any resampling or format conversion in the link chain

2016-07-29 Thread Burt P
HDCD is only encoded in s16@44100Hz. Scan the chain of AVFilterLinks for any resampling or format conversion/truncation that might cause problems for the filter and issue warnings. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 62 +++ 1 file

[FFmpeg-devel] [PATCH 3/7] af_hdcd: Improve error detection logging

2016-07-29 Thread Burt P
* Moves the filter context member out of state and into HDCDContext * More useful information when an error is detected * Gives a location near where the error was detected Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 34 +++--- 1 file changed, 19 insertions

[FFmpeg-devel] [PATCH 4/7] af_hdcd: add force_pe filter option

2016-07-29 Thread Burt P
Used to attempt replication of some results from http://www.audiomisc.co.uk/HFN/HDCD/Examined.html May not be generally useful, defaults to off. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a

[FFmpeg-devel] [PATCH 2/7] af_hdcd: give cdt expired counter a value for never set

2016-07-29 Thread Burt P
The counter is now -1 if the code detect timer was never set, and 0 if it was set but never expired. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index b860077

[FFmpeg-devel] [PATCH 1/7] af_hdcd: fix a minor annoyance

2016-07-29 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 6f3eb1e..b860077 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -23,12 +23,12 @@ LIABILITY, WHETHER

[FFmpeg-devel] [PATCH 6/7] af_hdcd: Process stereo channels together, fix #5727

2016-07-29 Thread Burt P
both channels together. * target_gain applied will be the last matching target_gain. * The old single channel functions remain as an option. They can be used by: -af hdcd=process_stereo=0. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 287 +++--- 1

[FFmpeg-devel] [PATCH 5/7] af_hdcd: Move code detect/check into own function

2016-07-29 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 86 +++ 1 file changed, 60 insertions(+), 26 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index aeb65eb..902827e 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter

[FFmpeg-devel] [PATCH 0/7] fix(v2) for #5727 split up, plus other things

2016-07-29 Thread Burt P
Here is a set with the earlier patch split into smaller patches. Added to the old version is hdcd_control_stereo() that logs information about the mismatched target_gain so that problem samples can be found more easily. Also, a patch for warning about problems in the AVFilterLink chain. Thanks f

Re: [FFmpeg-devel] [PATCH 0/1] af_hdcd: Process stereo channels together, fix #5727

2016-07-27 Thread Burt P.
> My suggestion is that you send your public key to > Michael and commit yourself including adding yourself > as maintainer of hdcd. I don't know enough about what that would mean. I'm also not an expert user of git. >> One strange case is John Mellencamp - [1994] Mr. Happy Go Lucky >> 06. Emotio

[FFmpeg-devel] [PATCH] af_hdcd: Process stereo channels together, fix #5727

2016-07-25 Thread Burt P
(), hdcd_sustain_reset(). * This is against master, so it also includes the changes in an earlier patch set for HDCD detection, PE mode, cdt counter, and code comments. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 463 +- 1 file changed, 386

[FFmpeg-devel] [PATCH 0/1] af_hdcd: Process stereo channels together, fix #5727

2016-07-25 Thread Burt P
For review, a fix for #5727. Please test and comment. I've made new versions of the processing functions that process stereo channels together so that the rule regarding target_gain can be implemented. The target_gain used for both channels will now be the last valid target_gain that matched betwe

[FFmpeg-devel] [PATCH] af_hdcd: Add counter for cdt expirations

2016-07-24 Thread Burt P
Adds a counter for when the "code detect timer" expired without finding a valid packet. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 72560d

[FFmpeg-devel] [PATCH 4/4] af_hdcd: Report PE as being intermittent or permanent

2016-07-23 Thread Burt P
The Peak Extend feature could be enabled permanently or only when needed. This is now reported. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index

Re: [FFmpeg-devel] [PATCH] af_hdcd: Improve HDCD detection

2016-07-23 Thread Burt P.
On Sat, Jul 23, 2016 at 5:41 PM, Michael Niedermayer wrote: > > this looks like 2 unrelated changes > one is improving documentation the other is changing ths detect code > can you split these in 2 patches ? Ok, I've submitted a new set. ___ ffmpeg-deve

[FFmpeg-devel] [PATCH 3/4] af_hdcd: Add counter for cdt expirations

2016-07-23 Thread Burt P
Adds a counter for when the code detect timer expired without finding a valid packet. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 72560db..7c9494d 100644

[FFmpeg-devel] [PATCH 1/4] af_hdcd: Improve HDCD detection

2016-07-23 Thread Burt P
HDCD is now only considered detected if a valid packet is active in both channels simultaneously. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 6f0db71..f68a105

[FFmpeg-devel] [PATCH 2/4] af_hdcd: more comments in state struct

2016-07-23 Thread Burt P
Add some comments describing the fields in hdcd_state_t. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index f68a105..72560db 100644 --- a

[FFmpeg-devel] [PATCH 0/4] HDCD filter improvements

2016-07-23 Thread Burt P
I've split an earlier patch as requested, and added a couple more to the set. -- Burt ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] af_hdcd: Improve HDCD detection

2016-07-23 Thread Burt P.
kets. I am attempting this. On Fri, Jul 22, 2016 at 1:49 AM, Carl Eugen Hoyos wrote: > Burt P gmail.com> writes: > >> HDCD is only "detected" if a valid code is active in both >> channels simultaneously > > Does your patch fix ticket #5727? > You don't men

[FFmpeg-devel] [PATCH] af_hdcd: Improve HDCD detection

2016-07-17 Thread Burt P
HDCD is only "detected" if a valid code is active in both channels simultaneously, as described here: https://hydrogenaud.io/index.php/topic,79427.msg900371.html#msg900371 Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 34 -- 1 file changed, 24

[FFmpeg-devel] [PATCH] fate: Add HDCD filter tests for false positive and error detection

2016-07-14 Thread Burt P
Signed-off-by: Burt P --- tests/fate-run.sh | 3 ++- tests/fate/filter-audio.mak | 12 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index c898695..5841b0c 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh

[FFmpeg-devel] [PATCH 2/5] af_hdcd: fewer false positives by ignoring code_counterC in HDCD detection

2016-07-12 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 73a0b93..48f87f6 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1094,7 +1094,7 @@ static int filter_frame

[FFmpeg-devel] [PATCH 3/5] af_hdcd: only hdcd_update_info() when something changes

2016-07-12 Thread Burt P
Only call hdcd_update_info() when the control code changes instead of every frame, so the counters are more meaningful. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 34 +- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/libavfilter/af_hdcd.c

[FFmpeg-devel] [PATCH 5/5] af_hdcd: detect and report encoding errors and oddities

2016-07-12 Thread Burt P
Count and report when a code is signaled but fails to match a known pattern. For example try Līve - Secret Samadhi. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 73 --- 1 file changed, 58 insertions(+), 15 deletions(-) diff --git a

[FFmpeg-devel] [PATCH 4/5] af_hdcd: don't log full HDCD stats if HDCD was not detected

2016-07-12 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 4104935..8acbdda 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -1157,13 +1157,15 @@ static

[FFmpeg-devel] [PATCH 0/5] Split up HDCD filter patch

2016-07-12 Thread Burt P
This is the previous patch split into smaller patches, as requested. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH 1/5] af_hdcd: integrate() renamed hdcd_integrate() to be consistent with the other function names

2016-07-12 Thread Burt P
Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 89012eb..73a0b93 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -883,7 +883,7 @@ static void hdcd_reset

  1   2   >