[FFmpeg-devel] [PATCH v8 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-06 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 5 +++-- fftools/ffmpeg.h| 8 fftools/ffmpeg_filter.c | 36 +++- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git

[FFmpeg-devel] [PATCH v8 1/2] lavf/vf_transpose: add exif orientation support

2019-06-06 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 163 - 4 files changed, 187 insertions(+), 32 deletions(-)

Re: [FFmpeg-devel] [PATCH] mpeg12enc: Use all Closed Captions side data

2019-06-06 Thread Mathieu Duponchelle
Sorry for pinging again, but at this point I don't know what more I can do to get this (necessary) fix upstream :) On 5/29/19 3:44 PM, Mathieu Duponchelle wrote: > As suggested elsewhere, here's the output of git diff -w, I hope that helps :) > > diff --git a/libavcodec/mpeg12enc.c

Re: [FFmpeg-devel] [PATCH v7 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-06 Thread Jun Li
On Thu, Jun 6, 2019 at 4:02 AM Michael Niedermayer wrote: > On Tue, Jun 04, 2019 at 06:12:28PM -0700, Jun Li wrote: > > Fix #6945 > > Rotate or/and flip frame according to frame's metadata orientation > [..] > > > + > > +return filterst != framest; > > +} > > + > > static int

[FFmpeg-devel] [PATCH] cbs_h264: Fix type of abs_diff_pic_num_minus1

2019-06-06 Thread Andreas Rheinhardt
It is an unsigned value. Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_h264.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index a31be298ba..721379eacc 100644 --- a/libavcodec/cbs_h264.h +++ b/libavcodec/cbs_h264.h @@

[FFmpeg-devel] [PATCH] cbs_h264: Fix types of abs_diff_pic_num_minus1 and

2019-06-06 Thread Andreas Rheinhardt
difference_of_pic_nums_minus1 They are unsigned values. Signed-off-by: Andreas Rheinhardt --- Sorry for sending the first email prematurely. libavcodec/cbs_h264.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index

[FFmpeg-devel] [PATCH] cbs_av1, cbs_jpeg, cbs_mpeg2, cbs_vp9: Fix undef

2019-06-06 Thread Andreas Rheinhardt
READ has already been undefined at this point; it is obviously intended to undef WRITE. Furthermore, leb128 (in cbs_av1) was undefined too often and inconsistently. Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_av1.c | 5 ++--- libavcodec/cbs_jpeg.c | 2 +- libavcodec/cbs_mpeg2.c | 2

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_find_rect: convert the object image to gray8 format instead of failed directly

2019-06-06 Thread Michael Niedermayer
On Thu, Jun 06, 2019 at 01:54:41PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavfilter/vf_find_rect.c | 37 ++--- > 1 file changed, 26 insertions(+), 11 deletions(-) > > diff --git

[FFmpeg-devel] [PATCH] libavfilter/vf_cover_rect.c: free the allocated frame

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_cover_rect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index 41cd1a12b9..d63c03215d 100644 --- a/libavfilter/vf_cover_rect.c +++

Re: [FFmpeg-devel] [PATCH v3] libavfilter: Add derain filter

2019-06-06 Thread Steven Liu
Steven Liu 于2019年6月1日周六 上午8:30写道: > > > > > 在 2019年5月30日,20:35,Xuewei Meng 写道: > > > > Remove the rain in the input image/video by applying the derain > > methods based on convolutional neural networks. Training scripts > > as well as scripts for model generation are provided in the > >

[FFmpeg-devel] [PATCH] libavfilter/vf_find_rect: convert the object image to gray8 format instead of failed directly

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_find_rect.c | 37 ++--- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c index d7e6579af7..abf7d89d21 100644 ---

Re: [FFmpeg-devel] [PATCH] avformat/id3v2enc: write CTOC too

2019-06-06 Thread Michael Niedermayer
On Thu, Jun 06, 2019 at 09:08:48AM +0200, Paul B Mahol wrote: > On 6/5/19, Michael Niedermayer wrote: > > On Tue, Jun 04, 2019 at 04:45:38PM +0200, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> libavformat/id3v2enc.c | 36 > >> 1 file

Re: [FFmpeg-devel] [PATCH V3 2/2] checkasm/vf_gblur: add test for horiz_slice simd

2019-06-06 Thread Michael Niedermayer
On Wed, Jun 05, 2019 at 10:29:36PM +0800, Ruiling Song wrote: > Signed-off-by: Ruiling Song > --- > tests/checkasm/Makefile | 1 + > tests/checkasm/checkasm.c | 3 ++ > tests/checkasm/checkasm.h | 1 + > tests/checkasm/vf_gblur.c | 67 +++ >

Re: [FFmpeg-devel] [PATCH] avformat/id3v2enc: write CTOC too

2019-06-06 Thread Paul B Mahol
On 6/6/19, Michael Niedermayer wrote: > On Thu, Jun 06, 2019 at 09:08:48AM +0200, Paul B Mahol wrote: >> On 6/5/19, Michael Niedermayer wrote: >> > On Tue, Jun 04, 2019 at 04:45:38PM +0200, Paul B Mahol wrote: >> >> Signed-off-by: Paul B Mahol >> >> --- >> >> libavformat/id3v2enc.c | 36

Re: [FFmpeg-devel] [PATCH v7 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-06 Thread Michael Niedermayer
On Tue, Jun 04, 2019 at 06:12:28PM -0700, Jun Li wrote: > Fix #6945 > Rotate or/and flip frame according to frame's metadata orientation [..] > + > +return filterst != framest; > +} > + > static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame) > { > FilterGraph *fg =

Re: [FFmpeg-devel] [PATCH 5/5] libavfilter/vf_overlay.c: add the yuv420p10 10bit support

2019-06-06 Thread Lance Wang
On Sun, May 26, 2019 at 8:08 AM wrote: > From: Limin Wang > > The test ffmpeg command in iMAC system: > ./ffmpeg -y -i input.ts -i ./logo.png -filter_complex > overlay=50:50:format=yuv420p10 -c:v hevc_videotoolbox ./test.ts > Now I have tested with yuv420p10 overlay and check the result is

[FFmpeg-devel] [PATCH v3 1/6] libavfilter/vf_overlay.c: change the comment style for the following macro defined function

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_overlay.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 0a8f089c0d..b468cedf2e 100644 --- a/libavfilter/vf_overlay.c +++

[FFmpeg-devel] [PATCH v3 5/6] libavfilter/vf_overlay.c: add the yuv420p10 10bit support

2019-06-06 Thread lance . lmwang
From: Limin Wang The test ffmpeg command in iMAC system: ./ffmpeg -y -i input.ts -i ./logo.png -filter_complex overlay=50:50:format=yuv420p10 -c:v hevc_videotoolbox ./test.ts Now I have tested with yuv420p10 overlay and check the result is OK, please help to test with your condition.

[FFmpeg-devel] [PATCH v3 3/6] libavfilter/vf_overlay.c: define the macro-style function to support 8bit and 10bit blend, keep the 8bit function same now

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_overlay.c | 52 ++-- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index ba8147f579..ee51a54659 100644 ---

Re: [FFmpeg-devel] [PATCH 5/5] libavfilter/vf_overlay.c: add the yuv420p10 10bit support

2019-06-06 Thread Lance Wang
OK, I'll update the doc/filters.texi for the new option for the update patch. Thanks for the feedback. On Thu, Jun 6, 2019 at 2:19 PM Liu Steven wrote: > > > > 在 2019年6月6日,下午2:06,Lance Wang 写道: > > > > On Sun, May 26, 2019 at 8:08 AM wrote: > > > >> From: Limin Wang > >> > >> The test

[FFmpeg-devel] [PATCH v3 2/6] libavfilter/vf_overlay.c: Add "\" for the following macro style function

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_overlay.c | 358 +++ 1 file changed, 179 insertions(+), 179 deletions(-) diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index b468cedf2e..ba8147f579 100644 ---

Re: [FFmpeg-devel] [PATCH 5/5] libavfilter/vf_overlay.c: add the yuv420p10 10bit support

2019-06-06 Thread Liu Steven
> 在 2019年6月6日,下午2:06,Lance Wang 写道: > > On Sun, May 26, 2019 at 8:08 AM wrote: > >> From: Limin Wang >> >> The test ffmpeg command in iMAC system: >> ./ffmpeg -y -i input.ts -i ./logo.png -filter_complex >> overlay=50:50:format=yuv420p10 -c:v hevc_videotoolbox ./test.ts >> Now I have

Re: [FFmpeg-devel] [PATCH] avformat/id3v2enc: write CTOC too

2019-06-06 Thread Paul B Mahol
On 6/5/19, Michael Niedermayer wrote: > On Tue, Jun 04, 2019 at 04:45:38PM +0200, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavformat/id3v2enc.c | 36 >> 1 file changed, 36 insertions(+) > > if this is written in a fate test then it will

Re: [FFmpeg-devel] [PATCH v3 5/6] libavfilter/vf_overlay.c: add the yuv420p10 10bit support

2019-06-06 Thread Lance Wang
On Thu, Jun 6, 2019 at 3:10 PM wrote: > From: Limin Wang > > The test ffmpeg command in iMAC system: > ./ffmpeg -y -i input.ts -i ./logo.png -filter_complex > overlay=50:50:format=yuv420p10 -c:v hevc_videotoolbox ./test.ts > Now I have tested with yuv420p10 overlay and check the result is OK,

[FFmpeg-devel] [PATCH v3 6/6] doc/filters.texi: add overlay yuv420p10 format

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/filters.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 5db8e0302f..b0e951c9f9 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -13159,6 +13159,9 @@ It accepts the following values:

[FFmpeg-devel] [PATCH v3 4/6] libavfilter/vf_overlay.c: using the nbits and depth for 8bits and 10bit support

2019-06-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_overlay.c | 79 1 file changed, 47 insertions(+), 32 deletions(-) diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index ee51a54659..70961befa5 100644 ---

Re: [FFmpeg-devel] [PATCH v2] libavcodec/vp8dec: fix the multi-thread HWAccel decode error

2019-06-06 Thread Wang, Shaofei
> -Original Message- > From: Xiang, Haihao > Sent: Thursday, June 6, 2019 11:57 AM > To: ffmpeg-devel@ffmpeg.org; Wang, Shaofei > Subject: Re: [FFmpeg-devel] [PATCH v2] libavcodec/vp8dec: fix the > multi-thread HWAccel decode error > > On Tue, 2019-06-04 at 15:21 +0800, Wang, Shaofei

[FFmpeg-devel] [PATCH 3/3] avformat/sbgdec: Fixes integer overflow in str_to_time() with hours

2019-06-06 Thread Michael Niedermayer
Fixes: signed integer overflow: 90 * 3600 cannot be represented in type 'int' Fixes: 15113/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5764083346833408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

[FFmpeg-devel] [PATCH 2/3] avformat/vpk: Check offset for validity

2019-06-06 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavformat/vpk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/vpk.c b/libavformat/vpk.c index dcc2db329c..255d6030b0 100644 --- a/libavformat/vpk.c +++ b/libavformat/vpk.c @@ -66,6 +66,9 @@ static int vpk_read_header(AVFormatContext

[FFmpeg-devel] [PATCH 1/3] avformat/vpk: Fix integer overflow in samples_per_block computation

2019-06-06 Thread Michael Niedermayer
Fixes: signed integer overflow: 84026453 * 28 cannot be represented in type 'int' Fixes: 15111/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5675630072430592 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH] mpegts pat and sdt period should respect user options

2019-06-06 Thread Michael Niedermayer
On Wed, Jun 05, 2019 at 11:13:20PM +0200, Tomas Hulata wrote: > When mux_rate (CBR) is defined, pat/sdt period setting is now respected. In > case of VBR, leave it as it was. > > --- >  libavformat/mpegtsenc.c | 12 ++-- >  1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git

Re: [FFmpeg-devel] [PATCH V3 2/2] checkasm/vf_gblur: add test for horiz_slice simd

2019-06-06 Thread Song, Ruiling
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Michael Niedermayer > Sent: Thursday, June 6, 2019 6:45 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH V3 2/2] checkasm/vf_gblur:

[FFmpeg-devel] [PATCH 1/2] avformat/nut: add cpia codec

2019-06-06 Thread Stephan Hilb
--- libavformat/nut.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/nut.c b/libavformat/nut.c index 4fbbcb1d26..937f452878 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -43,6 +43,7 @@ const AVCodecTag ff_nut_video_tags[] = { { AV_CODEC_ID_XFACE,

[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: log skipped initial non-keyframes

2019-06-06 Thread Stephan Hilb
If `AV_PKT_FLAG_KEY` stays unset on `pkt->flags`, the output stream stays empty with little information about what is going on. This change makes it easier to debug the situation for the user who could then choose to use the `-copyinkf` option. --- fftools/ffmpeg.c | 4 +++- 1 file changed, 3

Re: [FFmpeg-devel] CPIA

2019-06-06 Thread Stephan Hilb
Michael Niedermayer wrote on 27.05.2019 at 00:22: > [...] maybe just add teh codec id to nut and try to store it in that > with stream copy if it works it should be possible to playback that > nit file I have the file ready, how can I provide it? pgp12neptaV1q.pgp Description: OpenPGP digital