Re: [libav-devel] [PATCH] vaapi_h264: Add trivial support for low-power encoding

2016-05-17 Thread Luca Barbato
On 18/05/16 00:08, Mark Thompson wrote: > Experimental; requires Skylake and VAAPI 0.39.1 (not yet released). > --- > Just a flag to enable for now. Needs better dynamic detection of features > (notably the Skylake implementation does not support B-frames, and we could > detect this via config

[libav-devel] [PATCH] vaapi_h264: Add trivial support for low-power encoding

2016-05-17 Thread Mark Thompson
Experimental; requires Skylake and VAAPI 0.39.1 (not yet released). --- Just a flag to enable for now. Needs better dynamic detection of features (notably the Skylake implementation does not support B-frames, and we could detect this via config attributes), though that is generally true for all

[libav-devel] [PATCH 3/3] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
--- Now checks the allocation succeeded and returns a positive value. libavutil/tests/xtea.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/libavutil/tests/xtea.c b/libavutil/tests/xtea.c index 326f271..8fd76dd 100644 --- a/libavutil/tests/xtea.c

[libav-devel] [PATCH 2/3] blowfish-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
--- Now checks the allocation succeeded and returns a positive value. libavutil/tests/blowfish.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c index 93e8998..301c616 100644 ---

[libav-devel] [PATCH 1/3] blowfish-test: Return different values for different errors

2016-05-17 Thread Diego Biurrun
--- libavutil/tests/blowfish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c index acaab70..93e8998 100644 --- a/libavutil/tests/blowfish.c +++ b/libavutil/tests/blowfish.c @@ -174,13 +174,13 @@ int main(void)

Re: [libav-devel] [PATCH 1/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
On Tue, May 17, 2016 at 09:19:35PM +0300, Martin Storsjö wrote: > On Tue, 17 May 2016, Diego Biurrun wrote: > > On Tue, May 17, 2016 at 01:15:40PM -0400, Vittorio Giovara wrote: > >> On Tue, May 17, 2016 at 12:49 PM, Diego Biurrun wrote: > >>> --- a/libavutil/tests/xtea.c > >>>

Re: [libav-devel] [PATCH 1/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Martin Storsjö
On Tue, 17 May 2016, Diego Biurrun wrote: On Tue, May 17, 2016 at 01:15:40PM -0400, Vittorio Giovara wrote: On Tue, May 17, 2016 at 12:49 PM, Diego Biurrun wrote: --- a/libavutil/tests/xtea.c +++ b/libavutil/tests/xtea.c @@ -22,6 +22,7 @@ #include #include

Re: [libav-devel] [PATCH 1/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
On Tue, May 17, 2016 at 01:15:40PM -0400, Vittorio Giovara wrote: > On Tue, May 17, 2016 at 12:49 PM, Diego Biurrun wrote: > > --- a/libavutil/tests/xtea.c > > +++ b/libavutil/tests/xtea.c > > @@ -22,6 +22,7 @@ > > #include > > > > #include "libavutil/intreadwrite.h" > >

Re: [libav-devel] [PATCH 1/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Vittorio Giovara
On Tue, May 17, 2016 at 12:49 PM, Diego Biurrun wrote: > --- > libavutil/tests/xtea.c | 24 ++-- > 1 file changed, 14 insertions(+), 10 deletions(-) > > diff --git a/libavutil/tests/xtea.c b/libavutil/tests/xtea.c > index 326f271..09a4daf 100644 > ---

[libav-devel] [PATCH 1/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
--- libavutil/tests/xtea.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/libavutil/tests/xtea.c b/libavutil/tests/xtea.c index 326f271..09a4daf 100644 --- a/libavutil/tests/xtea.c +++ b/libavutil/tests/xtea.c @@ -22,6 +22,7 @@ #include

Re: [libav-devel] [PATCHv3 2/4] avprobe: Print stereo3d information

2016-05-17 Thread Vittorio Giovara
On Thu, Apr 21, 2016 at 5:18 PM, Vittorio Giovara wrote: > --- > avprobe.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/avprobe.c b/avprobe.c > index a0e14d4..44e2e5e 100644 > --- a/avprobe.c > +++ b/avprobe.c > @@ -27,6 +27,7 @@ > #include

Re: [libav-devel] [PATCH 1/2] blowfish-test: Use struct allocation functions from the API

2016-05-17 Thread James Almer
On 5/17/2016 10:36 AM, Diego Biurrun wrote: > --- > libavutil/tests/blowfish.c | 28 +++- > 1 file changed, 15 insertions(+), 13 deletions(-) > > diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c > index acaab70..5fa3f42 100644 > ---

Re: [libav-devel] [PATCH 2/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Luca Barbato
On 17/05/16 15:36, Diego Biurrun wrote: > --- > libavutil/tests/xtea.c | 22 -- > 1 file changed, 12 insertions(+), 10 deletions(-) > Ok. ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 1/2] blowfish-test: Use struct allocation functions from the API

2016-05-17 Thread Luca Barbato
On 17/05/16 15:36, Diego Biurrun wrote: > --- > libavutil/tests/blowfish.c | 28 +++- > 1 file changed, 15 insertions(+), 13 deletions(-) > Ok. ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 1/7] avio: Allow custom IO users to get labels for the output bytestream

2016-05-17 Thread Luca Barbato
The set looks good to me as well. lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 2/2] xtea-test: Use struct allocation functions from the API

2016-05-17 Thread Diego Biurrun
--- libavutil/tests/xtea.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/libavutil/tests/xtea.c b/libavutil/tests/xtea.c index 326f271..a72824b 100644 --- a/libavutil/tests/xtea.c +++ b/libavutil/tests/xtea.c @@ -22,6 +22,7 @@ #include #include

Re: [libav-devel] [PATCH v3 1/7] avio: Allow custom IO users to get labels for the output bytestream

2016-05-17 Thread Martin Storsjö
On Tue, 17 May 2016, Martin Storsjö wrote: This allows callers with avio write callbacks to get the bytestream positions that correspond to keyframes, suitable for live streaming. In the simplest form, a caller could expect that a header is written to the bytestream during the

[libav-devel] [PATCH v3 7/7] movenc: Add a test for VFR with b-frames, with a duration change at a fragment end

2016-05-17 Thread Martin Storsjö
--- Previously ok'd by Anton. --- libavformat/tests/movenc.c | 35 ++- tests/ref/fate/movenc | 8 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 291f30f..05432eb 100644 ---

[libav-devel] [PATCH v3 6/7] movenc: Use packets in interleaving queues for the duration at the end of fragments

2016-05-17 Thread Martin Storsjö
As long as caller only writes packets using av_interleaved_write_frame with no manual flushing, this should allow us to always have accurate durations at the end of fragments, since there should be at least one queued packet in each stream (except for the stream where the current packet is being

[libav-devel] [PATCH v3 5/7] movenc-test: Test write_data_type

2016-05-17 Thread Martin Storsjö
--- Updated the enum names. --- libavformat/tests/movenc.c | 45 - tests/ref/fate/movenc | 99 ++ 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index

[libav-devel] [PATCH v3 3/7] movenc: Provide output bytestream markers for fragmented content

2016-05-17 Thread Martin Storsjö
--- Updated the enum names. --- libavformat/movenc.c | 16 1 file changed, 16 insertions(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 202c720..d8022dc 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3183,6 +3183,7 @@ static int

[libav-devel] [PATCH v3 1/7] avio: Allow custom IO users to get labels for the output bytestream

2016-05-17 Thread Martin Storsjö
This allows callers with avio write callbacks to get the bytestream positions that correspond to keyframes, suitable for live streaming. In the simplest form, a caller could expect that a header is written to the bytestream during the avformat_write_header, and the data output to the avio context

[libav-devel] [PATCH v3 4/7] matroskaenc: Provide output bytestream markers

2016-05-17 Thread Martin Storsjö
--- Updated the enum names. --- libavformat/matroskaenc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 2260d42..dd5552c 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -105,6 +105,7 @@ typedef

[libav-devel] [PATCH v3 2/7] flvenc: Provide output bytestream markers

2016-05-17 Thread Martin Storsjö
--- Updated the enum names. --- libavformat/flvenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 2dfe3ae..00bd65c 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -21,6 +21,7 @@ #include "libavutil/dict.h" #include

Re: [libav-devel] [PATCH 6/7] movenc: Use packets in interleaving queues for the duration at the end of fragments

2016-05-17 Thread Martin Storsjö
On Tue, 17 May 2016, Anton Khirnov wrote: Quoting Martin Storsjö (2016-05-17 11:16:56) As long as caller only writes packets using av_interleaved_write_frame with no manual flushing, this should allow us to always have accurate durations at the end of fragments, since there should be at least

Re: [libav-devel] [PATCH 6/7] movenc: Use packets in interleaving queues for the duration at the end of fragments

2016-05-17 Thread Anton Khirnov
Quoting Martin Storsjö (2016-05-17 11:16:56) > As long as caller only writes packets using av_interleaved_write_frame > with no manual flushing, this should allow us to always have accurate > durations at the end of fragments, since there should be at least > one queued packet in each stream

Re: [libav-devel] [PATCH 5/7] movenc-test: Test write_data_type

2016-05-17 Thread Martin Storsjö
On Tue, 17 May 2016, Anton Khirnov wrote: Quoting Martin Storsjö (2016-05-17 11:16:55) --- libavformat/tests/movenc.c | 45 - tests/ref/fate/movenc | 99 ++ 2 files changed, 143 insertions(+), 1 deletion(-) diff --git

Re: [libav-devel] [PATCH 5/7] movenc-test: Test write_data_type

2016-05-17 Thread Anton Khirnov
Quoting Martin Storsjö (2016-05-17 11:16:55) > --- > libavformat/tests/movenc.c | 45 - > tests/ref/fate/movenc | 99 > ++ > 2 files changed, 143 insertions(+), 1 deletion(-) > > diff --git a/libavformat/tests/movenc.c

Re: [libav-devel] [PATCH] fate: Update fate-lavf-ts after commit 393596f9d5

2016-05-17 Thread Anton Khirnov
Quoting Martin Storsjö (2016-05-17 11:16:19) > --- > tests/ref/lavf/ts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts > index 8512d26..caf08a8 100644 > --- a/tests/ref/lavf/ts > +++ b/tests/ref/lavf/ts > @@ -1,3 +1,3 @@ >

[libav-devel] [PATCH 4/7] matroskaenc: Provide output bytestream markers

2016-05-17 Thread Martin Storsjö
--- libavformat/matroskaenc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 2260d42..d65cd0d 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -105,6 +105,7 @@ typedef struct MatroskaMuxContext {

[libav-devel] [PATCH 2/7] flvenc: Provide output bytestream markers

2016-05-17 Thread Martin Storsjö
--- libavformat/flvenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 2dfe3ae..13d5a03 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -21,6 +21,7 @@ #include "libavutil/dict.h" #include "libavutil/intfloat.h"

[libav-devel] [PATCH 7/7] movenc: Add a test for VFR with b-frames, with a duration change at a fragment end

2016-05-17 Thread Martin Storsjö
--- libavformat/tests/movenc.c | 35 ++- tests/ref/fate/movenc | 8 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index c19c6f2..ef1fc86 100644 --- a/libavformat/tests/movenc.c

[libav-devel] [PATCH 5/7] movenc-test: Test write_data_type

2016-05-17 Thread Martin Storsjö
--- libavformat/tests/movenc.c | 45 - tests/ref/fate/movenc | 99 ++ 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 711e157..c19c6f2 100644 ---

[libav-devel] [PATCH 6/7] movenc: Use packets in interleaving queues for the duration at the end of fragments

2016-05-17 Thread Martin Storsjö
As long as caller only writes packets using av_interleaved_write_frame with no manual flushing, this should allow us to always have accurate durations at the end of fragments, since there should be at least one queued packet in each stream (except for the stream where the current packet is being

[libav-devel] [PATCH 1/7] avio: Allow custom IO users to get labels for the output bytestream

2016-05-17 Thread Martin Storsjö
This allows callers with avio write callbacks to get the bytestream positions that correspond to keyframes, suitable for live streaming. In the simplest form, a caller could expect that a header is written to the bytestream during the avformat_write_header, and the data output to the avio context

[libav-devel] [PATCH] fate: Update fate-lavf-ts after commit 393596f9d5

2016-05-17 Thread Martin Storsjö
--- tests/ref/lavf/ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts index 8512d26..caf08a8 100644 --- a/tests/ref/lavf/ts +++ b/tests/ref/lavf/ts @@ -1,3 +1,3 @@ -3713c852d6ee217ae6a901619df7 *./tests/data/lavf/lavf.ts

[libav-devel] [PATCH 3/7] movenc: Provide output bytestream markers for fragmented content

2016-05-17 Thread Martin Storsjö
--- libavformat/movenc.c | 16 1 file changed, 16 insertions(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 202c720..3cbc974 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3183,6 +3183,7 @@ static int mov_flush_fragment(AVFormatContext *s,

Re: [libav-devel] [PATCH 14/14] nvenc: allow setting the number of slices

2016-05-17 Thread Diego Biurrun
On Mon, May 16, 2016 at 10:29:03AM +0200, Anton Khirnov wrote: > --- a/libavcodec/nvenc.c > +++ b/libavcodec/nvenc.c > @@ -619,6 +619,9 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx) > h264->maxNumRefFrames = avctx->refs; > h264->idrPeriod = cc->gopLength; > > +

Re: [libav-devel] [PATCH] mpegtsenc: stop impersonating ses in sdt

2016-05-17 Thread Francois Cartegnie
Le 17/05/2016 à 10:30, Luca Barbato a écrit : >> Other pid min or default values do not currently match the start of >> their range. > > Would be a good idea to change them to match a well-known value that > does not collide in case there is a similar collision? There's no "well known value" and

Re: [libav-devel] How to use encoder private options

2016-05-17 Thread Anton Khirnov
Quoting Noel Niles (2016-05-17 04:34:37) > I'm trying to get an application to compile on the latest version of > Ubuntu, but I keep getting warnings that: > > ‘AVCodecContext::intra_quant_bias’ is deprecated > > The documentation says I should "use encoder private option instead". > > Can

Re: [libav-devel] [PATCH] mpegtsenc: stop impersonating ses in sdt

2016-05-17 Thread Francois Cartegnie
Le 17/05/2016 à 00:13, Luca Barbato a écrit : > > #define NON_REGISTERED_NETWORK 0xff01 > > Might make it self-commented. 0xff01 is max start of both original network id and network id ranges. > I guess all the other fields might get the same treatment later. Other pid min or default values

[libav-devel] [PATCH] mpegtsenc: stop impersonating ses in sdt

2016-05-17 Thread Francois Cartegnie
Unless specified, users must use non registered range for network id --- libavformat/mpegtsenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index eca348a..a52e684 100644 --- a/libavformat/mpegtsenc.c +++

[libav-devel] How to use encoder private options

2016-05-17 Thread Noel Niles
I'm trying to get an application to compile on the latest version of Ubuntu, but I keep getting warnings that: ‘AVCodecContext::intra_quant_bias’ is deprecated The documentation says I should "use encoder private option instead". Can somebody explain to me the syntax to use the private option?