[FFmpeg-devel] [PATCH v3 2/4] vaapi_encode_h265: Insert mastering display colour volume if needed

2018-05-09 Thread Haihao Xiang
'-sei xxx' is added to control SEI insertion, so far only mastering display colour volume is available for testing. v2: use the mastering display parameters from AVMasteringDisplayMetadata, set SEI_MASTERING_DISPLAY to 8 to match the H.264 part and take VAAPIEncodeH265Context::sei_needed as a

[FFmpeg-devel] [PATCH v3 4/4] vaapi_encode_h265: Insert content light level information

2018-05-09 Thread Haihao Xiang
v2: clip the value to 16bits and look for the metadata on I/IDR frame Signed-off-by: Haihao Xiang --- libavcodec/vaapi_encode_h265.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c

[FFmpeg-devel] [PATCH v3 1/4] cbs_h265: read/write HEVC PREFIX SEI

2018-05-09 Thread Haihao Xiang
Similar to H264, cbs_h265_{read, write}_nal_unit() can handle HEVC prefix SEI NAL units. Currently mastering display colour volume SEI message is added only, we may add more SEI message if needed later v2: Fix coding style and rebase the code v3: Fix assertion failure when running the command

Re: [FFmpeg-devel] [PATCH 2/4] vaapi_encode_h265: Insert mastering display colour colume if needed

2018-05-09 Thread Xiang, Haihao
On Wed, 2018-05-09 at 14:53 +0100, Mark Thompson wrote: > On 09/05/18 05:48, Xiang, Haihao wrote: > > On Tue, 2018-05-08 at 22:51 +0100, Mark Thompson wrote: > > > On 08/05/18 04:54, Xiang, Haihao wrote: > > > > On Mon, 2018-05-07 at 22:03 +0100, Mark Thompson wrote: > > > > > On 04/05/18 09:54,

[FFmpeg-devel] [PATCH 2/2] hwcontext_vaapi: Add an assert in vaapi_map_from_drm()

2018-05-09 Thread Haihao Xiang
Every fourcc in vaapi_drm_format_map should be in vaapi_format_map, so add an assert to ensure we have the right maps. Signed-off-by: Haihao Xiang --- libavutil/hwcontext_vaapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/hwcontext_vaapi.c

[FFmpeg-devel] [PATCH 1/2] vaapi_encode: Add an assert in vaapi_encode_truncate_gop()

2018-05-09 Thread Haihao Xiang
The flag of input_available must be set when pic_start is not NULL, so add an assert to ensure it is true. In addition, the assert on last_pic is unnecessary now, so remove this assert. Signed-off-by: Haihao Xiang --- libavcodec/vaapi_encode.c | 4 ++-- 1 file changed, 2

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/nvdec: avoid needless copy of output frame

2018-05-09 Thread Wang Bin
> > > > -offset += cpy.Height; > +frame->buf[1] = av_buffer_create((uint8_t *)unmap_data, > sizeof(*unmap_data), > + nvdec_unmap_mapped_frame, > (void*)devptr, > + AV_BUFFER_FLAG_READONLY); > +if

Re: [FFmpeg-devel] [PATCH 1/3] vaapi_encode: Initialize the pointer

2018-05-09 Thread Xiang, Haihao
On Wed, 2018-05-09 at 14:48 +0100, Mark Thompson wrote: > On 09/05/18 05:29, Xiang, Haihao wrote: > > On Tue, 2018-05-08 at 22:34 +0100, Mark Thompson wrote: > > > On 08/05/18 03:35, Xiang, Haihao wrote: > > > > On Mon, 2018-05-07 at 21:46 +0100, Mark Thompson wrote: > > > > > On 04/05/18 15:41,

[FFmpeg-devel] [PATCH 2/2] avformat/hlsenc: set AVFMT_NODIMENSIONS

2018-05-09 Thread Aman Gupta
From: Aman Gupta Same as previous commit but for mpegts inside HLS. --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index c27a66ea79..9c06551ea6 100644 --- a/libavformat/hlsenc.c +++

[FFmpeg-devel] [PATCH 1/2] avformat/mpegtsenc: set AVFMT_NODIMENSIONS

2018-05-09 Thread Aman Gupta
From: Aman Gupta This allows remuxing streams from one mpegts container to another, without requiring avformat_find_stream_info() (or using `ffmpeg -probesize 32` on the cli). --- libavformat/mpegtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH] avcodec/nvdec_hevc: Fix scaling lists

2018-05-09 Thread Philip Langdale
The main issue here was the use of [i] instead of [i * 3] for the 32x32 matrix. As part of fixing this, I changed the code to match that used in vdpau_hevc, which I spent a lot of time verifying. I also changed to calculating NumPocTotalCurr using the existing helper, which is what vdpau does.

Re: [FFmpeg-devel] avformat/mpegts: set AV_DISPOSITION_DESCRIPTIONS for OIPF cases

2018-05-09 Thread Michael Niedermayer
On Wed, May 09, 2018 at 10:19:26AM +0200, Łukasz Krzciuk wrote: > Any updates on this issue? about adding a testcase ? adding a huge sample file is not possible. It either has to be made smaller or generated by a muxer or last resort, no test [...] -- Michael GnuPG fingerprint:

Re: [FFmpeg-devel] [PATCH v3] avformat/mxfenc: add h264 profiles

2018-05-09 Thread Michael Niedermayer
On Tue, May 08, 2018 at 06:32:12PM +0200, Thomas Mundt wrote: > 2018-05-07 10:40 GMT+02:00 Tomas Härdin : > > > sön 2018-05-06 klockan 21:31 +0200 skrev Thomas Mundt: > > > 2018-05-06 13:32 GMT+02:00 Tomas Härdin : > > > > > > > fre 2018-05-04 klockan 01:52

Re: [FFmpeg-devel] [FFmpeg-cvslog] checkasm: add vf_nlmeans test for ssd_integral_image

2018-05-09 Thread Michael Niedermayer
On Tue, May 08, 2018 at 08:29:00AM +, Clément Bœsch wrote: > ffmpeg | branch: master | Clément Bœsch | Sun May 6 10:57:23 > 2018 +0200| [f679711c1b516786a39f9e582622a200502fff74] | committer: Clément > Bœsch > > checkasm: add vf_nlmeans test for ssd_integral_image > > >

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Jorge Ramirez-Ortiz
On 05/09/2018 04:11 PM, Mark Thompson wrote: On 09/05/18 08:57, Jorge Ramirez-Ortiz wrote: On 05/09/2018 01:33 AM, Mark Thompson wrote: diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index ed5193ecc1..2b33badb08 100644 --- a/libavcodec/v4l2_m2m_dec.c +++

Re: [FFmpeg-devel] [PATCH 1/6] avutil/hwcontext_cuda: add AVCUDAFramesContext and AVCUDAFramesContext.flags

2018-05-09 Thread Timo Rothenpieler
dropped this one. Missed I could just override the pool. smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/nvdec: avoid needless copy of output frame

2018-05-09 Thread Timo Rothenpieler
applied follow-up CUstream patches also applied smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 6/6] fate/cbs: Add an SEI test

2018-05-09 Thread James Almer
On 5/7/2018 9:30 PM, Mark Thompson wrote: > On 08/05/18 01:06, James Almer wrote: >> On 5/7/2018 8:11 PM, Mark Thompson wrote: >>> The artificial sample file sei-1.h264 contains five frames (IDR P B I B) >>> and the following SEI message types: >>> * Buffering period >>> * Picture timing >>> *

[FFmpeg-devel] [PATCH 1/2] avformat/mpegts: parse sections with multiple tables

2018-05-09 Thread Aman Gupta
From: Aman Gupta Fixes PMT parsing in some mpegts streams which contain multiple tables within the PMT pid. Previously, the parser assumed only one table was present in each packet, and discarded the rest of the section data after attempting to parse the first table. A similar

[FFmpeg-devel] [PATCH 2/2] avformat/mpegts: reindent after last change

2018-05-09 Thread Aman Gupta
From: Aman Gupta Signed-off-by: Aman Gupta --- libavformat/mpegts.c | 70 ++-- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 3c9f9421cb..9c09819531

[FFmpeg-devel] [PATCH] mpegvideo_enc: add option to disable intra mbs in p frames

2018-05-09 Thread Ramiro Polla
This option prevents the mpv encoders from using intra macroblocks in predictive frames. It is useful for glitch artists to generate input material. This option allows them to split and merge two video files while maintaining fluid motion from the second video without having intra macroblocks

[FFmpeg-devel] help with ffmpeg in livevideo and recordings

2018-05-09 Thread Radim Benovsky
Hello ffmpeg development team, We are a international company that works with live TV and nPVR. We are currently working on one projects and got it to a little struggle with the settings of the ffmpeg. We would like to consult the live streams and it’s optimization with RAM / CPU on the

Re: [FFmpeg-devel] [PATCH 2/5] avutil/hwcontext_cuda: add CUstream in cuda hwctx

2018-05-09 Thread Timo Rothenpieler
Am 09.05.2018 um 10:49 schrieb Timo Rothenpieler: On 08.05.2018 23:00, James Almer wrote: On 5/8/2018 3:36 PM, Timo Rothenpieler wrote: --- configure | 6 -- doc/APIchanges | 3 +++ libavutil/hwcontext_cuda.c | 3 +++ libavutil/hwcontext_cuda.h | 1 +

Re: [FFmpeg-devel] About the future of component registration APIs

2018-05-09 Thread Jan Ekström
On Wed, May 9, 2018 at 3:38 PM, Yu Xiaolei wrote: > Hello, > I noticed that commit 7e8eba2d87 deprecated avcodec_register and there was > some disagreement on this issue. Will there be some sort of replacement for > it? > > We want to build ffmpeg in a way that only the

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Dave Stevenson
On 9 May 2018 at 00:33, Mark Thompson wrote: > On 08/05/18 19:24, Lukas Rusak wrote: >> + >> +layer->format = avbuf->context->av_pix_fmt == AV_PIX_FMT_NV12 ? >> +DRM_FORMAT_NV12 : DRM_FORMAT_NV21; >> +layer->nb_planes = 2; >> + >> +

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Dave Stevenson
On 9 May 2018 at 15:31, Mark Thompson wrote: > On 09/05/18 10:02, Jorge Ramirez-Ortiz wrote: >> On 05/09/2018 01:33 AM, Mark Thompson wrote: diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index efcb0426e4..9457fadb1e 100644 ---

Re: [FFmpeg-devel] [PATCH] lavc/qsv: suppress code scan complain

2018-05-09 Thread Mark Thompson
On 09/05/18 07:13, Zhong Li wrote: > Suppress the complain "variables 'type' is used but maybe uninitialized". > > Signed-off-by: Zhong Li > --- > libavcodec/qsv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c >

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Mark Thompson
On 09/05/18 10:02, Jorge Ramirez-Ortiz wrote: > On 05/09/2018 01:33 AM, Mark Thompson wrote: >>> diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c >>> index efcb0426e4..9457fadb1e 100644 >>> --- a/libavcodec/v4l2_context.c >>> +++ b/libavcodec/v4l2_context.c >>> @@ -393,22 +393,54

Re: [FFmpeg-devel] [PATCH v3] avcodec/cbs_h2645: use AVBufferRef to store list of active parameter sets

2018-05-09 Thread James Almer
On 5/9/2018 10:41 AM, Mark Thompson wrote: > Tested with VAAPI encode, LGTM. > Pushed, thanks. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Mark Thompson
On 09/05/18 08:57, Jorge Ramirez-Ortiz wrote: > On 05/09/2018 01:33 AM, Mark Thompson wrote: >> diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c >> index ed5193ecc1..2b33badb08 100644 >> --- a/libavcodec/v4l2_m2m_dec.c >> +++ b/libavcodec/v4l2_m2m_dec.c >> @@ -23,12 +23,18 @@ >>  

Re: [FFmpeg-devel] [PATCH 2/4] vaapi_encode_h265: Insert mastering display colour colume if needed

2018-05-09 Thread Mark Thompson
On 09/05/18 05:48, Xiang, Haihao wrote: > On Tue, 2018-05-08 at 22:51 +0100, Mark Thompson wrote: >> On 08/05/18 04:54, Xiang, Haihao wrote: >>> On Mon, 2018-05-07 at 22:03 +0100, Mark Thompson wrote: On 04/05/18 09:54, Xiang, Haihao wrote: > On Thu, 2018-05-03 at 22:43 +0100, Mark

Re: [FFmpeg-devel] [PATCH 1/3] vaapi_encode: Initialize the pointer

2018-05-09 Thread Mark Thompson
On 09/05/18 05:29, Xiang, Haihao wrote: > On Tue, 2018-05-08 at 22:34 +0100, Mark Thompson wrote: >> On 08/05/18 03:35, Xiang, Haihao wrote: >>> On Mon, 2018-05-07 at 21:46 +0100, Mark Thompson wrote: On 04/05/18 15:41, Haihao Xiang wrote: > Otherwise it might use unitialized last_pic in

Re: [FFmpeg-devel] [PATCH v3] avcodec/cbs_h2645: use AVBufferRef to store list of active parameter sets

2018-05-09 Thread Mark Thompson
On 09/05/18 02:12, James Almer wrote: > Removes unnecessary data copies, and partially fixes potential issues > with dangling references held in said lists. > > Signed-off-by: James Almer > --- > libavcodec/cbs_h264.h | 2 ++ > libavcodec/cbs_h2645.c | 46

[FFmpeg-devel] About the future of component registration APIs

2018-05-09 Thread Yu Xiaolei
Hello, I noticed that commit 7e8eba2d87 deprecated avcodec_register and there was some disagreement on this issue. Will there be some sort of replacement for it? We want to build ffmpeg in a way that only the most frequently used components are shipped initially and others are downloaded on

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vaapi: slice_vertical_position starts from zero for the second field

2018-05-09 Thread Jerome Borsboom
>> Contrary to VC-1 spec, VAAPI expects the row address of the first >> macroblock row in the first slice to start from zero for the second >> field in a field interlaced picture. >> >> Signed-off-by: Jerome Borsboom >> --- >> This patch set adds support for hardware decoding multi-slice field

[FFmpeg-devel] [PATCH] fate: add more tests for hue video filter

2018-05-09 Thread Tobias Rapp
Adds tests for the hue angle and brightness filter parameters. Renames the existing saturation parameter test for consistency. Signed-off-by: Tobias Rapp --- tests/fate/filter-video.mak | 10 -- tests/ref/fate/filter-hue | 1 - tests/ref/fate/filter-hue1 | 1

[FFmpeg-devel] [RFC] On behaviour of unlabelled outputs in filtergraphs.

2018-05-09 Thread Gyan Doshi
In the open ticket 7089, I reported that (terminal) filters with unlabelled output pads are automatically forwarded to the first output file and ordered before any expressly mapped streams. There's no warning issued. Is this behaviour intended? In the section on filtergraph syntax @

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Jorge Ramirez-Ortiz
On 05/09/2018 01:33 AM, Mark Thompson wrote: diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index efcb0426e4..9457fadb1e 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -393,22 +393,54 @@ static int v4l2_release_buffers(V4L2Context* ctx) struct

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vaapi: slice_vertical_position starts from zero for the second field

2018-05-09 Thread Xiang, Haihao
On Wed, 2018-05-09 at 07:50 +0200, Jerome Borsboom wrote: > Contrary to VC-1 spec, VAAPI expects the row address of the first > macroblock row in the first slice to start from zero for the second > field in a field interlaced picture. > > Signed-off-by: Jerome Borsboom

Re: [FFmpeg-devel] [PATCH 2/5] avutil/hwcontext_cuda: add CUstream in cuda hwctx

2018-05-09 Thread Timo Rothenpieler
On 08.05.2018 23:00, James Almer wrote: > On 5/8/2018 3:36 PM, Timo Rothenpieler wrote: >> --- >> configure | 6 -- >> doc/APIchanges | 3 +++ >> libavutil/hwcontext_cuda.c | 3 +++ >> libavutil/hwcontext_cuda.h | 1 + >> libavutil/version.h| 2 +- >> 5

Re: [FFmpeg-devel] avformat/mpegts: set AV_DISPOSITION_DESCRIPTIONS for OIPF cases

2018-05-09 Thread Łukasz Krzciuk
Any updates on this issue? Regards, *Łukasz Krzciuk* Developer Vewd ul. Grabarska 2, Pegaz 2A, 50-079 Wrocław, Polska On Thu, Apr 26, 2018 at 9:22 AM, Łukasz Krzciuk wrote: > Thank you. > > This change is really simple: set AV_DISPOSITION_DESCRIPTIONS bit when we > have a

Re: [FFmpeg-devel] [PATCH 2/3] libavcodec: v4l2m2m: output AVDRMFrameDescriptor

2018-05-09 Thread Jorge Ramirez-Ortiz
On 05/09/2018 01:33 AM, Mark Thompson wrote: diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index ed5193ecc1..2b33badb08 100644 --- a/libavcodec/v4l2_m2m_dec.c +++ b/libavcodec/v4l2_m2m_dec.c @@ -23,12 +23,18 @@ #include #include + +#include "libavutil/hwcontext.h"

Re: [FFmpeg-devel] [PATCH 06/13] avformat/mxfenc: Add Sample width/height/x offset/y offset, Display x offset and F2 offset

2018-05-09 Thread Tobias Rapp
On 08.05.2018 12:40, Tomas Härdin wrote: mån 2018-05-07 klockan 12:38 +0200 skrev Michael Niedermayer: Signed-off-by: Michael Niedermayer +if (sc->interlaced) { +//Display F2 Offset +mxf_write_local_tag(pb, 4, 0x3217); +avio_wb32(pb,

[FFmpeg-devel] [PATCH] lavc/qsv: suppress code scan complain

2018-05-09 Thread Zhong Li
Suppress the complain "variables 'type' is used but maybe uninitialized". Signed-off-by: Zhong Li --- libavcodec/qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 45e1c25..b578da0 100644 --- a/libavcodec/qsv.c