Re: [FFmpeg-devel] make work (live) libsrt

2018-08-22 Thread myp...@gmail.com
On Wed, Aug 22, 2018 at 4:30 AM Tudor Suciu wrote: > > Hello, > > I get errors when I try to send a live srt stream that the first packet is > too big: > 21:30:39.896626/ffmpeg*E: SRT.c: LiveSmoother: payload size: 1504 exceeds > maximum allowed 1316 > > Here are example commands for server and

Re: [FFmpeg-devel] [PATCH] examples/vaapi_dec_scaling: init export

2018-08-22 Thread myp...@gmail.com
On Wed, Aug 22, 2018 at 5:51 PM Carl Eugen Hoyos wrote: > > 2018-08-22 2:42 GMT+02:00, myp...@gmail.com : > > On Tue, Aug 21, 2018 at 4:45 PM Carl Eugen Hoyos wrote: > >> > >> 2018-06-11 13:22 GMT+02:00, Jun Zhao : > >> > >> > + * Copyright (c) 2018 Jun Zhao > >> > + * > >> > + * VA-API

[FFmpeg-devel] [PATCH v3 16/41] vaapi_encode: Add support for max QP in rate control

2018-08-22 Thread Mark Thompson
This was added in libva 2.1.0 (VAAPI 1.1.0). Use AVCodecContext.qmax, matching the existing behaviour for qmin, and clean up the defaults so that we only pass min/max when explicitly set. --- doc/encoders.texi | 3 ++- libavcodec/vaapi_encode.c | 3 +++

[FFmpeg-devel] [PATCH v3 00/41] VAAPI encode and related stuff

2018-08-22 Thread Mark Thompson
I think patches 1-8 are uncontentious, I'll push them in a few days if there are no objections. Patches 9-35 are updated to reflect comments on the previous round, along with a few other minor changes. Interested parties may want to look through them again. Patches 36-41 are new, and

[FFmpeg-devel] [PATCH v3 11/41] vaapi_encode: Add common options between all encoders

2018-08-22 Thread Mark Thompson
The only common option here is low_power - it was previously supported for H.264 only, that specific option is removed. --- doc/encoders.texi | 14 -- libavcodec/vaapi_encode.h | 9 + libavcodec/vaapi_encode_h264.c | 8 ++--

[FFmpeg-devel] [PATCH v3 23/41] lavc/cbs: Add JPEG support

2018-08-22 Thread Mark Thompson
--- configure | 2 + libavcodec/Makefile | 1 + libavcodec/cbs.c | 6 + libavcodec/cbs_internal.h | 1 + libavcodec/cbs_jpeg.c | 520 ++ libavcodec/cbs_jpeg.h

[FFmpeg-devel] [PATCH v3 18/41] vaapi_encode: Clean up the packed header configuration

2018-08-22 Thread Mark Thompson
Add a larger warning more clearly explaining the consequences of missing packed header support in the driver. Also only write the extradata if the user actually requests it via the GLOBAL_HEADER flag. --- libavcodec/vaapi_encode.c | 119 +---

[FFmpeg-devel] [PATCH v3 15/41] vaapi_encode: Clean up rate control configuration

2018-08-22 Thread Mark Thompson
Query which modes are supported and select between VBR and CBR based on that - this removes all of the codec-specific rate control mode selection code. --- doc/encoders.texi | 2 - libavcodec/vaapi_encode.c | 181 +++- libavcodec/vaapi_encode.h

[FFmpeg-devel] [PATCH v3 22/41] hwcontext_vaapi: Improve logging around quirk detection

2018-08-22 Thread Mark Thompson
Clarify that the list is the naughty list, and therefore being on it is not desirable. The i965 driver does not need to be on the list after version 2.0 (when the standard parameter buffer rendering behaviour was changed). --- libavutil/hwcontext_vaapi.c | 27 +++ 1 file

[FFmpeg-devel] [PATCH v3 13/41] vaapi_encode: Clean up the encode quality configuration

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode.c | 84 +- libavcodec/vaapi_encode_h264.c | 7 ++- 2 files changed, 54 insertions(+), 37 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index f838ee5bd5..35a4e90f67 100644 ---

[FFmpeg-devel] [PATCH v3 41/41] vaapi_encode_vp9: Support more complex reference structures

2018-08-22 Thread Mark Thompson
--- vp9_raw_reorder required when using this feature. Timestamps will need some more thought - currently the output stream can get incorrect DTS values after reordering. libavcodec/vaapi_encode_vp9.c | 104 +- 1 file changed, 51 insertions(+), 53 deletions(-)

[FFmpeg-devel] [PATCH v3 40/41] vaapi_encode_h265: Support more complex reference structures

2018-08-22 Thread Mark Thompson
The reference picture sets are now constructed directly from the DPB information. --- An obvious useful change (not done) would be the move the RPSs to the SPS where possible, since they are now even larger. libavcodec/vaapi_encode_h265.c | 191 +++-- 1 file

[FFmpeg-devel] [PATCH v3 37/41] vaapi_encode: Convert to send/receive API

2018-08-22 Thread Mark Thompson
This attaches the logic of picking the mode of for the next picture to the output, which simplifies some choices by removing the concept of the picture for which input is not yet available. At the same time, we allow more complex reference structures and track more reference metadata

[FFmpeg-devel] [PATCH v3 38/41] vaapi_encode: Let the reconstructed frame pool be sized dynamically

2018-08-22 Thread Mark Thompson
No supported encode driver requires the pool to be fixed-size, so just remove this constraint. --- libavcodec/vaapi_encode.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index d03bd1925e..e20280065c 100644 ---

[FFmpeg-devel] [PATCH v3 39/41] vaapi_encode_h264: Support more complex reference structures

2018-08-22 Thread Mark Thompson
--- Some future changes: * Don't use r-p-l-m if the list is already correct. * Support more than one reference frame in either direction. libavcodec/vaapi_encode_h264.c | 180 ++--- 1 file changed, 120 insertions(+), 60 deletions(-) diff --git

[FFmpeg-devel] [PATCH v3 36/41] vaapi_encode: Allocate picture-private data in generic code

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode.c | 15 --- libavcodec/vaapi_encode.h | 4 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 2c34cdce2c..a6981d69fa 100644 --- a/libavcodec/vaapi_encode.c +++

[FFmpeg-devel] [PATCH v3 35/41] doc/encoders: Document -sei option to hevc_vaapi

2018-08-22 Thread Mark Thompson
--- doc/encoders.texi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index d61a1cc4bc..3894774bef 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2663,6 +2663,16 @@ Include access unit delimiters in the stream (not included by

[FFmpeg-devel] [PATCH v3 31/41] cbs_h264: Infer default VUI values if VUI parameters are not present

2018-08-22 Thread Mark Thompson
--- libavcodec/cbs_h264_syntax_template.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 7befde4b68..32e6acd68e 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++

[FFmpeg-devel] [PATCH v3 34/41] vaapi_encode_h265: Set level based on stream if not set by user

2018-08-22 Thread Mark Thompson
Sets the level based on the stream properties if it is not explicitly set by the user. Also add a tier option to set general_tier_flag, since that affects the level choice. --- doc/encoders.texi | 4 libavcodec/vaapi_encode_h265.c | 40 +++--- 2

[FFmpeg-devel] [PATCH v3 32/41] vaapi_encode_h265: Improve profile support

2018-08-22 Thread Mark Thompson
Set profile compatibility/constraint flags properly (including the constraint flags used for RExt profiles, as all streams we can currently generate are RExt-compatible), and use that to add support for the "Main Intra" and "Main 10 Intra" RExt subprofiles (for which we can re-use the existing

[FFmpeg-devel] [PATCH v3 33/41] lavc/h265: Add some common code for profile/tier/level handling

2018-08-22 Thread Mark Thompson
Adds support for determining for level limits, including mapping PTL blocks to profiles to check profile-dependent level limits. --- libavcodec/h265_profile_level.c | 245 libavcodec/h265_profile_level.h | 89 2 files changed, 334 insertions(+)

[FFmpeg-devel] [PATCH v3 30/41] cbs_h264: Fix profile typo

2018-08-22 Thread Mark Thompson
--- libavcodec/cbs_h264_syntax_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index 1efa97dccb..7befde4b68 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++

[FFmpeg-devel] [PATCH v3 29/41] cbs_h264: Fix default value for max mv lengths

2018-08-22 Thread Mark Thompson
A recent version of the standard changed the max and default to 15, from 16 in older versions. This updates the default to 15 to match, but the max stays as 16 so that we don't reject older streams. --- libavcodec/cbs_h264_syntax_template.c | 6 -- libavcodec/vaapi_encode_h264.c| 4

[FFmpeg-devel] [PATCH v3 28/41] h264_metadata: Add option to set the level of the stream

2018-08-22 Thread Mark Thompson
--- doc/bitstream_filters.texi | 9 libavcodec/h264_metadata_bsf.c | 90 ++ 2 files changed, 99 insertions(+) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 7d7e97503a..d948c6d658 100644 --- a/doc/bitstream_filters.texi +++

[FFmpeg-devel] [PATCH v3 27/41] vaapi_encode_h264: Set level based on stream if not set by user

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_h264.c | 40 ++ 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 0774ec25f9..e55ed0f59c 100644 --- a/libavcodec/vaapi_encode_h264.c +++

[FFmpeg-devel] [PATCH v3 26/41] lavc/h264: Add common code for level handling

2018-08-22 Thread Mark Thompson
Including a unit test. --- libavcodec/Makefile| 3 +- libavcodec/h264_levels.c | 130 +++ libavcodec/h264_levels.h | 53 ++ libavcodec/tests/.gitignore| 1 + libavcodec/tests/h264_levels.c | 183 +

[FFmpeg-devel] [PATCH v3 24/41] vaapi_encode_mjpeg: Use CBS to store parameters and write headers

2018-08-22 Thread Mark Thompson
Also adds greyscale, 4:2:2, 4:4:4 and RGB support. --- configure | 2 +- doc/encoders.texi | 17 +- libavcodec/vaapi_encode_mjpeg.c | 529 3 files changed, 347 insertions(+), 201 deletions(-) diff --git a/configure

[FFmpeg-devel] [PATCH v3 21/41] doc/encoders: Add missing options to VAAPI encoders

2018-08-22 Thread Mark Thompson
--- doc/encoders.texi | 24 1 file changed, 24 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 861f9f4f1f..b451142cfb 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2631,12 +2631,36 @@ Use CABAC. @item cavlc Use CAVLC. @end table +

[FFmpeg-devel] [PATCH v3 25/41] hwcontext_vaapi: Improve format mapping

2018-08-22 Thread Mark Thompson
Give the entries in the VAAPI format map table an explicit type and add functions to do the necessary lookups. Add another field to this table indicating whether the chroma planes are swapped (as in YV12), and use that rather than explicit comparisons where swapping is needed. ---

[FFmpeg-devel] [PATCH v3 20/41] vaapi_encode_h26[45]: Make the AUD option a boolean

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_h264.c | 2 +- libavcodec/vaapi_encode_h265.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index bba6848f03..0774ec25f9 100644 --- a/libavcodec/vaapi_encode_h264.c +++

[FFmpeg-devel] [PATCH v3 14/41] vaapi_encode: Always reapply global parameters after the sequence header

2018-08-22 Thread Mark Thompson
The codec sequence headers may contain fields which can overwrite the fine parameters given in the specific settings (e.g. a crude bitrate value vs. the max-rate / target-percentage / etc. values in VAEncMiscParameterRateControl). Always reapply all global parameters after a sequence header to

[FFmpeg-devel] [PATCH v3 09/41] configure: Use pkgconfig for VAAPI

2018-08-22 Thread Mark Thompson
Set the minimum version to 0.35.0 (libva 1.3.0) and remove redundant configure tests. This also allows the proprietary libmfx fork of libva, which always shows the version number 0.99.0 (independent of the actual version). --- configure | 31 ---

[FFmpeg-devel] [PATCH v3 17/41] vaapi_encode: Clean up the GOP structure configuration

2018-08-22 Thread Mark Thompson
Choose what types of reference frames will be used based on what types are available, and make the intra-only mode explicit (GOP size one, which must be used for MJPEG). --- libavcodec/vaapi_encode.c | 83 ++--- libavcodec/vaapi_encode.h | 1 +

[FFmpeg-devel] [PATCH v3 19/41] vaapi_encode_h264: Properly set constraint flags

2018-08-22 Thread Mark Thompson
constraint_set1_flag should be set for constrained baseline and main profiles, because the stream conforms to main profile. constraint_set3_flag should be set for high profile when the stream is intra-only. constraint_set4_flag should always be set for main and high profiles because interlaced

[FFmpeg-devel] [PATCH v3 08/41] vaapi_encode: Factorise out adding global parameters

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index cedf3d3549..313f55118e 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@

[FFmpeg-devel] [PATCH v3 12/41] vaapi_encode_mpeg2: Add options

2018-08-22 Thread Mark Thompson
Include the common options, and also named options for setting the profile and level. --- libavcodec/vaapi_encode_mpeg2.c | 53 +++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c index

[FFmpeg-devel] [PATCH v3 06/41] vaapi_encode_vp9: Move options and common structures into context

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_vp9.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/libavcodec/vaapi_encode_vp9.c b/libavcodec/vaapi_encode_vp9.c index 9108699ac3..6e62213bc9 100644 --- a/libavcodec/vaapi_encode_vp9.c +++

[FFmpeg-devel] [PATCH v3 05/41] vaapi_encode_vp8: Move options and common structures into context

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_vp8.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/libavcodec/vaapi_encode_vp8.c b/libavcodec/vaapi_encode_vp8.c index a2e861a8d1..ab5e0b2dda 100644 --- a/libavcodec/vaapi_encode_vp8.c +++

[FFmpeg-devel] [PATCH v3 07/41] vaapi_encode: Remove common priv_data and options fields

2018-08-22 Thread Mark Thompson
The codec-specific context now contains both the common context and the codec-specific options directly. --- libavcodec/vaapi_encode.c | 10 -- libavcodec/vaapi_encode.h | 11 --- libavcodec/vaapi_encode_h264.c | 2 -- libavcodec/vaapi_encode_h265.c | 2 --

[FFmpeg-devel] [PATCH v3 10/41] vaapi_encode: Choose profiles dynamically

2018-08-22 Thread Mark Thompson
Previously there was one fixed choice for each codec (e.g. H.265 -> Main profile), and using anything else then required an explicit option from the user. This changes to selecting the profile based on the input format and the set of profiles actually supported by the driver (e.g. P010 input will

[FFmpeg-devel] [PATCH v3 03/41] vaapi_encode_mjpeg: Move common structure into context

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_mjpeg.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c index c949e89646..983c77d194 100644 --- a/libavcodec/vaapi_encode_mjpeg.c +++

[FFmpeg-devel] [PATCH v3 04/41] vaapi_encode_mpeg2: Move common structure into context

2018-08-22 Thread Mark Thompson
--- libavcodec/vaapi_encode_mpeg2.c | 53 - 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c index 42df77ea49..ae77a9ce76 100644 --- a/libavcodec/vaapi_encode_mpeg2.c +++

[FFmpeg-devel] [PATCH v3 02/41] vaapi_encode_h265: Move options and common structures into context

2018-08-22 Thread Mark Thompson
Matching previous commit for H.264. --- libavcodec/vaapi_encode_h265.c | 182 - 1 file changed, 90 insertions(+), 92 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index bbba2b8cd9..757fd74c30 100644 ---

[FFmpeg-devel] [PATCH v3 01/41] vaapi_encode_h264: Move options and common structures into context

2018-08-22 Thread Mark Thompson
This will make it easier to support options in common between different encoders. It also cleans up some of the field naming. --- libavcodec/vaapi_encode_h264.c | 226 + 1 file changed, 114 insertions(+), 112 deletions(-) diff --git

[FFmpeg-devel] [PATCH] avcodec: add HYMT decoder

2018-08-22 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/huffyuvdec.c | 174 +++- libavformat/riff.c | 1 + 6 files changed, 128

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-22 Thread Martin Vignali
> > But maybe to make tests simpler, we can use/add bit exact conversion > > for uint8 to float, we can generate a LUT without float calc > > and for uint16 to float, we can add a uint16 to float conversion without > > float calc, or maybe, generate a LUT in bit exact mode (probably faster, > if >

Re: [FFmpeg-devel] Register for VDD 2018 conference

2018-08-22 Thread Paul B Mahol
On 8/22/18, Dave Rice wrote: > >>> On Aug 22, 2018, at 14:12, Michael Niedermayer >>> wrote: >>> >>> On Wed, Aug 22, 2018 at 03:14:53PM +0200, Jean-Baptiste Kempf wrote: >>> Hello fellow devs, >>> >>> VideoLAN is happy to invite you to the usual conference of the end of the >>> summer: >>>

Re: [FFmpeg-devel] Register for VDD 2018 conference

2018-08-22 Thread Dave Rice
>> On Aug 22, 2018, at 14:12, Michael Niedermayer >> wrote: >> >> On Wed, Aug 22, 2018 at 03:14:53PM +0200, Jean-Baptiste Kempf wrote: >> Hello fellow devs, >> >> VideoLAN is happy to invite you to the usual conference of the end of the >> summer: >> VDD2018 is happening in Paris, for the 10

[FFmpeg-devel] [PATCH 1/2] libavdevice/decklink: Add support for EIA-708 output over SDI

2018-08-22 Thread Devin Heitmueller
Hook in libklvanc and use it for output of EIA-708 captions over SDI. The bulk of this patch is just general support for ancillary data for the Decklink SDI module - the real work for construction of the EIA-708 CDP and VANC line construction is done by libklvanc. Libklvanc can be found at:

[FFmpeg-devel] [PATCH 0/2] Support for Decklink output of EIA-708 and AFD

2018-08-22 Thread Devin Heitmueller
The following patches add support for output of 708 and AFD over the Decklink SDI interface. This series is a subset of a series submitted in early January, with the hope of getting the less controversial parts merged upstream. Devin Heitmueller (2): libavdevice/decklink: Add support for

[FFmpeg-devel] [PATCH 2/2] decklink: Add support for output of Active Format Description (AFD)

2018-08-22 Thread Devin Heitmueller
Implement support for including AFD in decklink output. This includes making sure the AFD data is preserved when going from an AVFrame to a V210 packet (needed for 10-bit support). Updated to reflect feedback from Marton Balint , Carl Eugen Hoyos and Aaron Levinson . Signed-off-by: Devin

Re: [FFmpeg-devel] [PATCH 1/9] configure: [loongson] revert no-expensive-optimizations

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 06:11:15PM +0800, Shiyou Yin wrote: > >-Original Message- > >From: ffmpeg-devel-boun...@ffmpeg.org > >[mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > >Michael Niedermayer > >Sent: Wednesday, August 22, 2018 6:04 AM > >To: FFmpeg development discussions and

Re: [FFmpeg-devel] [PATCH] avcodec: add Brooktree ProSumer Video decoder

2018-08-22 Thread Paul B Mahol
On 8/22/18, Carl Eugen Hoyos wrote: > 2018-08-22 18:00 GMT+02:00, Paul B Mahol : > >> +switch (avctx->bits_per_coded_sample) { >> +case 12: >> + s->stride = 3LL * FFALIGN(avctx->width, 8) >> 1; >> + break; >> +default: >> + return AVERROR_INVALIDDATA; >> +}

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 10:20:53AM +0200, Martin Vignali wrote: > > > > > So the only thing I can do is to disable these tests for > > > these formats. > > > Otherwise, I need to test other changes somehow. Here is the patch, that > > > skips > > > pixfmts tests for these formats. > > > > in

Re: [FFmpeg-devel] Register for VDD 2018 conference

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 03:14:53PM +0200, Jean-Baptiste Kempf wrote: > Hello fellow devs, > > VideoLAN is happy to invite you to the usual conference of the end of the > summer: > VDD2018 is happening in Paris, for the 10 years of the original conf. > > As usual, this is a very technical

Re: [FFmpeg-devel] [PATCH] avcodec: add Brooktree ProSumer Video decoder

2018-08-22 Thread Carl Eugen Hoyos
2018-08-22 18:00 GMT+02:00, Paul B Mahol : > +switch (avctx->bits_per_coded_sample) { > +case 12: > + s->stride = 3LL * FFALIGN(avctx->width, 8) >> 1; > + break; > +default: > + return AVERROR_INVALIDDATA; > +} Why are the condition and the error needed?

Re: [FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 09:02:57PM +0200, Martin Vignali wrote: > > > > well then it should be ok > > not sure if the ff_ prefix is ideal for a static inline function > > > > > Do you think flt_2_uint16 is a better name ? yes thx > (can probably be interesting to also add same kind of func for

Re: [FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

2018-08-22 Thread Martin Vignali
> > well then it should be ok > not sure if the ff_ prefix is ideal for a static inline function > > Do you think flt_2_uint16 is a better name ? (can probably be interesting to also add same kind of func for float to uint8 in unscaled part) Martin ___

Re: [FFmpeg-devel] [PATCH] lavfi/avf_concat: switch to activate.

2018-08-22 Thread Nicolas George
Nicolas George (2018-08-10): > Fix trac ticket #7351. > > Signed-off-by: Nicolas George > --- > libavfilter/avf_concat.c | 156 +++ > 1 file changed, 78 insertions(+), 78 deletions(-) Will push soon unless I forget. Regards, -- Nicolas George

Re: [FFmpeg-devel] [PATCH 01/12] avformat/mxfenc: automatically update descriptors klv size

2018-08-22 Thread Carl Eugen Hoyos
2018-07-06 19:17 GMT+02:00, Carl Eugen Hoyos : > 2018-07-04 20:35 GMT+02:00, Baptiste Coudurier > : >> --- >> libavformat/mxfenc.c | 80 +--- >> 1 file changed, 39 insertions(+), 41 deletions(-) > > Does any of the patches fix ticket #6693? Ping? Or

Re: [FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 12:45:50PM +0200, Martin Vignali wrote: > > > --- > > > libswscale/input.c| 10 +- > > > libswscale/swscale_internal.h | 20 > > > 2 files changed, 25 insertions(+), 5 deletions(-) > > > > please provide benchmark, what is the

Re: [FFmpeg-devel] [PATCH] configure: do not add --fsanitize= if coverage is tested

2018-08-22 Thread Michael Niedermayer
On Tue, Aug 21, 2018 at 05:59:00PM -0300, James Almer wrote: > On 8/21/2018 5:54 PM, Michael Niedermayer wrote: > > On Mon, Aug 20, 2018 at 10:55:00AM -0300, James Almer wrote: > >> On 8/19/2018 5:40 PM, Michael Niedermayer wrote: > >>> Found-by: Max Moroz > >>> Signed-off-by: Michael Niedermayer

Re: [FFmpeg-devel] [PATCH] lavc/hevc_ps: fix crop info for monochrome

2018-08-22 Thread James Almer
On 8/22/2018 6:40 AM, Zhao Zhili wrote: > > > On 2018年08月22日 08:26, Michael Niedermayer wrote: >> On Mon, Aug 20, 2018 at 10:19:04AM +0800, Zhao Zhili wrote: >>> >>> On 2018年08月18日 05:33, Michael Niedermayer wrote: On Fri, Aug 17, 2018 at 09:52:57AM +0800, Zhao Zhili wrote: > The values

[FFmpeg-devel] [PATCH] avcodec/proresdec2: add frame threading support

2018-08-22 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/proresdec2.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c index b4ea6b5e03..d818e5d8da 100644 --- a/libavcodec/proresdec2.c +++ b/libavcodec/proresdec2.c @@

[FFmpeg-devel] [PATCH] avcodec: add Brooktree ProSumer Video decoder

2018-08-22 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 + libavcodec/prosumer.c | 405 libavformat/riff.c | 1 + 6 files changed, 416

Re: [FFmpeg-devel] [PATCH 01/12] avformat/mxfenc: automatically update descriptors klv size

2018-08-22 Thread Baptiste Coudurier
On Wed, Jul 4, 2018 at 6:21 PM, Michael Niedermayer wrote: > On Wed, Jul 04, 2018 at 11:35:03AM -0700, Baptiste Coudurier wrote: > > --- > > libavformat/mxfenc.c | 80 +--- > > 1 file changed, 39 insertions(+), 41 deletions(-) > > > > diff --git

Re: [FFmpeg-devel] [PATCH] mpeg4video: Add Studio DPCM support

2018-08-22 Thread Carl Eugen Hoyos
2018-08-22 14:25 GMT+02:00, Kieran Kunhya : > On Wed, 22 Aug 2018 at 10:44 Carl Eugen Hoyos wrote: > >> 2018-08-22 1:29 GMT+02:00, Kieran Kunhya : >> > $subj >> >> Please split the re-indentation and please fix the indentation of "else". > > Would you mind explaining these in more details. The

[FFmpeg-devel] Problem while decoding aac file to wav file

2018-08-22 Thread Amir Raza
Hi experts, This is my first mail to ffmpeg , apologies if make some mistakes. I tried many online example codes for decoding aac audio to wav file. including example codes which is for MP2 codec. below is one such example code , it doubles the decoded file size (.wav) but not playable. Can any

[FFmpeg-devel] Register for VDD 2018 conference

2018-08-22 Thread Jean-Baptiste Kempf
Hello fellow devs, VideoLAN is happy to invite you to the usual conference of the end of the summer: VDD2018 is happening in Paris, for the 10 years of the original conf. As usual, this is a very technical conference focused on open source multimedia development. We will talk about AV1, FFv1,

Re: [FFmpeg-devel] [PATCH] mpeg4video: Add Studio DPCM support

2018-08-22 Thread Kieran Kunhya
On Wed, 22 Aug 2018 at 10:44 Carl Eugen Hoyos wrote: > 2018-08-22 1:29 GMT+02:00, Kieran Kunhya : > > $subj > > Please split the re-indentation and please fix the indentation of "else". > Would you mind explaining these in more details. Kieran ___

Re: [FFmpeg-devel] [PATCH] avformat/hls: support decryption AES128 fmp4 m3u8 list

2018-08-22 Thread Liu Steven
> 在 2018年8月13日,下午6:17,Steven Liu 写道: > > m3u8 list create by: > mediafilesegmenter --encrypt-key-file=keya.key --encrypt-key-url="keya.key" > --iso-fragmented input.mp4 > > before this patch: > bogon:xxx StevenLiu$ ./ffplay -allowed_extensions ALL prog_index.m3u8 > ffplay version

[FFmpeg-devel] [PATCH] avdevice/decklink_enc: print preroll and buffer size

2018-08-22 Thread Gyan Doshi
From f496d970d319ec3916a55e05b925f6b43763ebfa Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Wed, 22 Aug 2018 16:23:58 +0530 Subject: [PATCH] avdevice/decklink_enc: print preroll and buffer size Helpful in diagnosing latency issues. --- libavdevice/decklink_enc.cpp | 3 +++ 1 file changed, 3

Re: [FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-22 Thread Gyan Doshi
On 22-08-2018 04:01 PM, Marvin Scholz wrote: Guessed Channel Layout for Input Stream #0.0 : stereo ...     Stream #0:0(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, fltp, 192 kb/s [Parsed_aresample_1 @ 0x7fb7c540d500] Cannot select channel layout for the link between filters

Re: [FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

2018-08-22 Thread Martin Vignali
> > --- > > libswscale/input.c| 10 +- > > libswscale/swscale_internal.h | 20 > > 2 files changed, 25 insertions(+), 5 deletions(-) > > please provide benchmark, what is the impact on speed from this ? > > In my tests, the patch increase speed by around

Re: [FFmpeg-devel] GSOC Complete

2018-08-22 Thread Shlomi Fish
On Wed, 22 Aug 2018 14:33:52 +0530 Gagandeep Singh wrote: > Hi, > > I would like to thank all the FFmpeg developers who have helped me in my 3 > months of project. durandal_1707 thanks for the last minute check on the > file. > > I also thank my mentor kierank, for his faith in me even though

Re: [FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-22 Thread Marvin Scholz
On 22 Aug 2018, at 11:44, Gyan Doshi wrote: On 22-08-2018 02:38 PM, Marvin Scholz wrote: On 22 Aug 2018, at 6:40, Gyan Doshi wrote: On 22-08-2018 04:43 AM, Marvin Scholz wrote: +@example +ffmpeg -i input -af

Re: [FFmpeg-devel] [PATCH 1/9] configure: [loongson] revert no-expensive-optimizations

2018-08-22 Thread Shiyou Yin
>-Original Message- >From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel-boun...@ffmpeg.org] >On Behalf Of >Michael Niedermayer >Sent: Wednesday, August 22, 2018 6:04 AM >To: FFmpeg development discussions and patches >Subject: Re: [FFmpeg-devel] [PATCH 1/9] configure: [loongson]

Re: [FFmpeg-devel] [PATCH] examples/vaapi_dec_scaling: init export

2018-08-22 Thread Carl Eugen Hoyos
2018-08-22 2:42 GMT+02:00, myp...@gmail.com : > On Tue, Aug 21, 2018 at 4:45 PM Carl Eugen Hoyos wrote: >> >> 2018-06-11 13:22 GMT+02:00, Jun Zhao : >> >> > + * Copyright (c) 2018 Jun Zhao >> > + * >> > + * VA-API Acceleration API (video decoding/scaling) sample >> > + * >> > + * This file is

Re: [FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-22 Thread Gyan Doshi
On 22-08-2018 02:38 PM, Marvin Scholz wrote: On 22 Aug 2018, at 6:40, Gyan Doshi wrote: On 22-08-2018 04:43 AM, Marvin Scholz wrote: +@example +ffmpeg -i input -af loudnorm=I=-23:TP=-1:measured_I=-9.0:measured_TP=1.5:measured_LRA=9.4:measured_thresh=-19.5:print_format=summary output

Re: [FFmpeg-devel] [PATCH] mpeg4video: Add Studio DPCM support

2018-08-22 Thread Carl Eugen Hoyos
2018-08-22 1:29 GMT+02:00, Kieran Kunhya : > $subj Please split the re-indentation and please fix the indentation of "else". Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] lavc/hevc_ps: fix crop info for monochrome

2018-08-22 Thread Zhao Zhili
On 2018年08月22日 08:26, Michael Niedermayer wrote: On Mon, Aug 20, 2018 at 10:19:04AM +0800, Zhao Zhili wrote: On 2018年08月18日 05:33, Michael Niedermayer wrote: On Fri, Aug 17, 2018 at 09:52:57AM +0800, Zhao Zhili wrote: The values of SubWidthC and SubHeightC are 1 in the ITU-T H.265. The

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-22 Thread Martin Vignali
> > patches should be ok > > Pushed, thanks. Martin ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] avcodec/psd : add support for gray float (WIP)

2018-08-22 Thread Martin Vignali
Le lun. 20 août 2018 à 15:39, Martin Vignali a écrit : > Hello, > > Better patch in attach (reuse the same "copy part" than uint 8bpc and 16 > bpc pix fmt) > > Works only after applying swscale patch in discussion : > swscale : hScale16To19 : limit shift for float(32bits) input > > Can be test

[FFmpeg-devel] GSOC Complete

2018-08-22 Thread Gagandeep Singh
Hi, I would like to thank all the FFmpeg developers who have helped me in my 3 months of project. durandal_1707 thanks for the last minute check on the file. I also thank my mentor kierank, for his faith in me even though during the second month i was not feeling that i would be able to work on

Re: [FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-22 Thread Marvin Scholz
On 22 Aug 2018, at 6:40, Gyan Doshi wrote: On 22-08-2018 04:43 AM, Marvin Scholz wrote: +@example +ffmpeg -i input -af loudnorm=I=-23:TP=-1:measured_I=-9.0:measured_TP=1.5:measured_LRA=9.4:measured_thresh=-19.5:print_format=summary output Since your input LRA is 9.4, and output LRA is

Re: [FFmpeg-devel] [PATCH] avcodec/opus_parser: Handle complete frames flag.

2018-08-22 Thread Hendrik Leppkes
On Wed, Aug 22, 2018 at 12:55 AM James Almer wrote: > > On 8/20/2018 3:35 PM, Jacob Trimble wrote: > > I am not entirely sure what this flag is supposed to be, since there > > is no documentation where it is defined. But this was suggested by > > James Almer as a fix for my encrypted Opus

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-22 Thread Reto Kromer
Martin Vignali wrote: >But maybe to make tests simpler, we can use/add bit exact >conversion for uint8 to float, we can generate a LUT without >float calc and for uint16 to float, we can add a uint16 to >float conversion without float calc, or maybe, generate a LUT >in bit exact mode (probably

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-22 Thread Martin Vignali
> > > So the only thing I can do is to disable these tests for > > these formats. > > Otherwise, I need to test other changes somehow. Here is the patch, that > > skips > > pixfmts tests for these formats. > > in absence of another solution this should be ok > > I'm not against, removing these