Re: [FFmpeg-devel] [PATCH] avcodec: Remove libstagefright

2016-01-06 Thread Matthieu Bouron
On Wed, Jan 6, 2016 at 3:45 PM, Derek Buitenhuis wrote: > On 1/5/2016 9:58 AM, Carl Eugen Hoyos wrote: > > So perhaps libstagefright should be removed once your > > patch hits the git repo? > > I would like to push this today if people are OK with it. > > Personally I think it's better to push it

[FFmpeg-devel] [PATCH] lavc/mjpegdec: speed up scan data copy

2016-01-26 Thread Matthieu Bouron
From: Matthieu Bouron --- From random 3264x2448 jpegs, scan data copy on a Nexus5 goes from [15, 28]ms to [3, 12]ms. --- libavcodec/mjpegdec.c | 43 +-- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec

Re: [FFmpeg-devel] [PATCH] lavc/mjpegdec: speed up scan data copy

2016-01-26 Thread Matthieu Bouron
On Tue, Jan 26, 2016 at 6:04 PM, Michael Niedermayer wrote: > On Tue, Jan 26, 2016 at 05:15:37PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > > > From random 3264x2448 jpegs, scan data copy on a Nexus5 goes from [15, >

Re: [FFmpeg-devel] [PATCH] lavc/mjpegdec: speed up scan data copy

2016-01-27 Thread Matthieu Bouron
On Tue, Jan 26, 2016 at 10:10 PM, Michael Niedermayer < mich...@niedermayer.cc> wrote: > On Tue, Jan 26, 2016 at 08:49:06PM +0100, Matthieu Bouron wrote: > > On Tue, Jan 26, 2016 at 6:04 PM, Michael Niedermayer > > > wrote: > > > > > On Tue, Jan 26, 20

Re: [FFmpeg-devel] [PATCH] lavc/mjpegdec: speed up scan data copy

2016-01-27 Thread Matthieu Bouron
On Wed, Jan 27, 2016 at 10:20 AM, Matthieu Bouron wrote: > > > On Tue, Jan 26, 2016 at 10:10 PM, Michael Niedermayer < > mich...@niedermayer.cc> wrote: > >> On Tue, Jan 26, 2016 at 08:49:06PM +0100, Matthieu Bouron wrote: >> > On Tue, Jan 26, 2016 at 6:04 PM

[FFmpeg-devel] [PATCH] lavc/mjpegdec: use ptrdiff_t instead of ssize_t

2016-01-27 Thread Matthieu Bouron
From: Matthieu Bouron Fixes build on msvc. --- libavcodec/mjpegdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 0aedc9d..04f56b6 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1925,7 +1925,7

Re: [FFmpeg-devel] [PATCH] lavc/mjpegdec: use ptrdiff_t instead of ssize_t

2016-01-28 Thread Matthieu Bouron
On Wed, Jan 27, 2016 at 11:31:04PM +0100, Michael Niedermayer wrote: > On Wed, Jan 27, 2016 at 10:01:39PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > Fixes build on msvc. > > --- > > libavcodec/mjpegdec.c | 4 ++-- > > 1 fil

[FFmpeg-devel] Add support for j2ki/mxf

2015-07-22 Thread Matthieu Bouron
Hello there, The following patchset add support for j2ki/mxf files (which store frames using the separate fields / segmented frame layouts, ie: fields are stored in seperate frames) through the insertion of filters at the ffmpeg/ffplay level. It differs from my original attempt which introduced mo

[FFmpeg-devel] [PATCH 1/6] lavf/mxfdec: support segmented frame layout as separate fields layout

2015-07-22 Thread Matthieu Bouron
According to S377M, segmented frame layout is identical to separate field layout except that the two fields are taken from a single scan of the incoming image, ie: they are coincident in time. Thus the resulting frame is progressive. --- libavformat/mxfdec.c | 6 ++ 1 file changed, 2 insertion

[FFmpeg-devel] [PATCH 3/6] lavf/mxfdec: fix stream time base for j2k codec with interlaced layout

2015-07-22 Thread Matthieu Bouron
Since two packets are required to decoded a frame, we need to divide by a factor of 2 the stream time base so output ptses are correct. --- libavformat/mxfdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index c966a0a..90abea5 100644 --- a/li

[FFmpeg-devel] [PATCH 2/6] lavf/mxfdec: set mxf_frame_layout and mxf_field_dominance metadata for interlaced j2k streams

2015-07-22 Thread Matthieu Bouron
Also advice user how to reconstruct full frames using setfield,tinterlace filters. --- libavformat/mxfdec.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 0495a2e..c966a0a 100644 --- a/libavformat/mxf

[FFmpeg-devel] [PATCH 6/6] ffplay: auto-insert setfield, tinterlace filters for MXF files with separate fields layout

2015-07-22 Thread Matthieu Bouron
From: Matthieu Bouron --- ffplay.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/ffplay.c b/ffplay.c index 58034c6..5038553 100644 --- a/ffplay.c +++ b/ffplay.c @@ -31,6 +31,7 @@ #include #include "libavutil/avstring.h" +#include "libavutil/bpri

[FFmpeg-devel] [PATCH 5/6] ffmpeg: auto-insert setfield, tinterlace filters for MXF files with separate fields layout

2015-07-22 Thread Matthieu Bouron
From: Matthieu Bouron Fixes ticket #1102. --- ffmpeg_filter.c | 25 + 1 file changed, 25 insertions(+) diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 950e4d0..774ec1c 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -706,6 +706,8 @@ static int

[FFmpeg-devel] [PATCH 4/6] lavf/mxfdec: interpret interlaced j2k sample rate as field rate for some applications

2015-07-22 Thread Matthieu Bouron
Sample rate should be interpreted as field rate for the files generated by SAMMA and Canopus systems. --- libavformat/mxfdec.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 90abea5..e9e4ab9 100644 ---

Re: [FFmpeg-devel] [PATCH 5/6] ffmpeg: auto-insert setfield, tinterlace filters for MXF files with separate fields layout

2015-07-22 Thread Matthieu Bouron
On Wed, Jul 22, 2015 at 8:02 PM, wm4 wrote: > On Wed, 22 Jul 2015 15:29:46 +0200 > Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > Fixes ticket #1102. > > --- > > ffmpeg_filter.c | 25 + > > 1 file c

Re: [FFmpeg-devel] Add support for j2ki/mxf

2015-07-23 Thread Matthieu Bouron
On Thu, Jul 23, 2015 at 11:04 AM, tim nicholson < nichot20-at-yahoo@ffmpeg.org> wrote: > On 22/07/15 14:29, Matthieu Bouron wrote: > > Hello there, > > > > The following patchset add support for j2ki/mxf files (which store frames > > using the separate fie

[FFmpeg-devel] [PATCH] lavd/avfoundation: uses a queue to buffer audio and video samples

2015-08-25 Thread Matthieu Bouron
From: Matthieu Bouron Tries to avoid losing frames when frames are not consumed quickly enough. Locking/Condition waiting is now performed with a NSConditionLock instead of a pthread mutex/condition. The first frames are not discarded anymore in the get_(video|audio)_config functions. Tries

Re: [FFmpeg-devel] [PATCH] lavd/avfoundation: uses a queue to buffer audio and video samples

2015-09-20 Thread Matthieu Bouron
On 08/25/2015 10:45 AM, Matthieu Bouron wrote: From: Matthieu Bouron Tries to avoid losing frames when frames are not consumed quickly enough. Locking/Condition waiting is now performed with a NSConditionLock instead of a pthread mutex/condition. The first frames are not discarded anymore in

[FFmpeg-devel] [PATCH 1/4] libavdevice/avfoundation: add framerate and video size options

2015-03-13 Thread matthieu . bouron
From: Matthieu Bouron Support framerate ands video size options on AVCaptureDevices for OSX >= 10.7 and iOS >= 7.0. For screen captures, only the framerate option is taken into account. --- libavdevice/avfoundation.m | 103 + 1 file change

[FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation: add capture_screen_cursor option

2015-03-13 Thread matthieu . bouron
From: Matthieu Bouron Add support for cursor capturing while recording a screen for OSX >= 10.8. --- libavdevice/avfoundation.m | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 41fe9c3..e574518 100644 --

[FFmpeg-devel] [PATCH 4/4] libavdevice/avfoundation: use pts/dts provided by the CMSampleBuffer API

2015-03-13 Thread matthieu . bouron
From: Matthieu Bouron --- libavdevice/avfoundation.m | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 8112229..5bcd6a4 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m

[FFmpeg-devel] [PATCH 3/4] libavdevice/avfoundation: add capture_screen_mouse_clicks option

2015-03-13 Thread matthieu . bouron
From: Matthieu Bouron Support mouse clicks capture while recording a screen on OSX >= 10.7. --- libavdevice/avfoundation.m | 15 +++ 1 file changed, 15 insertions(+) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index e574518..8112229 100644 --- a/libavdev

Re: [FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation: add capture_screen_cursor option

2015-03-14 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 8:29 AM, Carl Eugen Hoyos wrote: > gmail.com> writes: > > > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 > > Please make this "#if !TARGET_OS_IPHONE && ..." > to avoid warnings when compiling for iOS. > > Carl Eugen > > ___ > f

Re: [FFmpeg-devel] [PATCH 1/4] libavdevice/avfoundation: add framerate and video size options

2015-03-14 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 8:31 AM, Carl Eugen Hoyos wrote: > gmail.com> writes: > > > +for (NSObject *format in > > You may ignore this but I just changed the code > to not mix declarations and statements to > silence warnings when compiling with old gcc > compilers... > I don't have access

Re: [FFmpeg-devel] [PATCH 1/4] libavdevice/avfoundation: add framerate and video size options

2015-03-14 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 11:01 AM, Matthieu Bouron wrote: > > > On Sat, Mar 14, 2015 at 8:31 AM, Carl Eugen Hoyos > wrote: > >> gmail.com> writes: >> >> > +for (NSObject *format in >> >> You may ignore this but I just changed the code >

Re: [FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation: add capture_screen_cursor option

2015-03-14 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 10:50 AM, Matthieu Bouron wrote: > > > On Sat, Mar 14, 2015 at 8:29 AM, Carl Eugen Hoyos > wrote: > >> gmail.com> writes: >> >> > +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 >> >> Please make this "#if !TARGE

Re: [FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation: add capture_screen_cursor option

2015-03-18 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 11:11 AM, Matthieu Bouron wrote: > > > On Sat, Mar 14, 2015 at 10:50 AM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> >> >> On Sat, Mar 14, 2015 at 8:29 AM, Carl Eugen Hoyos >> wrot

Re: [FFmpeg-devel] [PATCH 1/4] libavdevice/avfoundation: add framerate and video size options

2015-03-18 Thread Matthieu Bouron
On Sat, Mar 14, 2015 at 11:09 AM, Matthieu Bouron wrote: > On Sat, Mar 14, 2015 at 11:01 AM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> >> >> On Sat, Mar 14, 2015 at 8:31 AM, Carl Eugen Hoyos >> wrote: >> >>> gmai

Re: [FFmpeg-devel] [PATCH 4/4] libavdevice/avfoundation: use pts/dts provided by the CMSampleBuffer API

2015-03-18 Thread Matthieu Bouron
On Fri, Mar 13, 2015 at 8:16 PM, wrote: > From: Matthieu Bouron > > --- > libavdevice/avfoundation.m | 21 +++-- > 1 file changed, 15 insertions(+), 6 deletions(-) > > diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m > index 8112229

Re: [FFmpeg-devel] [PATCH 3/4] libavdevice/avfoundation: add capture_screen_mouse_clicks option

2015-03-18 Thread Matthieu Bouron
On Fri, Mar 13, 2015 at 8:16 PM, wrote: > From: Matthieu Bouron > > Support mouse clicks capture while recording a screen on OSX >= 10.7. > --- > libavdevice/avfoundation.m | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/libavdevice/a

Re: [FFmpeg-devel] [PATCH 1/4] libavdevice/avfoundation: add framerate and video size options

2015-03-27 Thread Matthieu Bouron
On Sat, Mar 21, 2015 at 4:51 PM, Thilo Borgmann wrote: [...] > +/* > + * Configure the video device using a run-time approach to access > properties > + * since formats, activeFormat are available since iOS >= 7.0 or OSX >= > 10.7 > + * and activeVideoMaxFrameDuration is available since i0S >= 7

Re: [FFmpeg-devel] [PATCH 2/4] libavdevice/avfoundation: add capture_screen_cursor option

2015-03-27 Thread Matthieu Bouron
On Sat, Mar 21, 2015 at 5:35 PM, Thilo Borgmann wrote: [...] > I suggest to rename the option to "capture_cursor"... _screen_ in it seems > to be > redundant. > Updated in attached patch. 0002-libavdevice-avfoundation-add-capture_cursor-option.patch Description: Binary data ___

Re: [FFmpeg-devel] [PATCH 3/4] libavdevice/avfoundation: add capture_screen_mouse_clicks option

2015-03-27 Thread Matthieu Bouron
On Sat, Mar 21, 2015 at 6:47 PM, Thilo Borgmann wrote: [...] > > Please rename to "capture_mouse_clicks". > Updated in attached patch. 0003-libavdevice-avfoundation-add-capture_mouse_clicks-op.patch Description: Binary data ___ ffmpeg-devel mailing l

Re: [FFmpeg-devel] working with file descriptors on Android

2020-07-25 Thread Matthieu Bouron
On Wed, Jul 22, 2020 at 2:38 PM Alex Cohn wrote: > Usually, we employ the `pipe:` protocol to deal with the numerical > file descriptors, and this answers all our needs. On Android, there is > a different use case in which numerical file descriptors appear, and > this is not covered well with `pi

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: fix DNxHD GC ULs

2021-12-14 Thread Matthieu Bouron
On Tue, Nov 30, 2021 at 10:22:20AM +0100, Nicolas Gaullier wrote: > Fix GC container ul. > Fix GC element type both for the generic case and for OPAtom. > > Thanks to Philip de Nier > for checking the values, especially for OPAtom. > --- > libavformat/mxfenc.c | 8 ++-- > tests/ref/lavf

Re: [FFmpeg-devel] [PATCH] lavc/mediacodecdec: set codec profile and level from extradata for H264+HEVC

2021-12-14 Thread Matthieu Bouron
On Mon, Dec 13, 2021 at 09:56:05PM +0100, sfan5 wrote: > This value is later passed to MediaCodec and checked at decoder init. > Notably decoding of 10-bit streams before this commit would "work" without > returning errors but only return garbage output (on most Android devices). > From 304d1b

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: fix DNxHD GC ULs

2021-12-14 Thread Matthieu Bouron
On Tue, Dec 14, 2021 at 10:41:27AM +0100, Matthieu Bouron wrote: > On Tue, Nov 30, 2021 at 10:22:20AM +0100, Nicolas Gaullier wrote: > > Fix GC container ul. > > Fix GC element type both for the generic case and for OPAtom. > > > > Thanks to Philip de Nier > > fo

Re: [FFmpeg-devel] [PATCH 1/2] avformat/mxfenc: fix DNxHD GC container_ul

2021-12-14 Thread Matthieu Bouron
On Tue, Dec 14, 2021 at 04:27:42PM +0100, Nicolas Gaullier wrote: > Signed-off-by: Nicolas Gaullier > --- > libavformat/mxfenc.c | 2 +- > tests/ref/lavf/mxf_opatom | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c > inde

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfenc: fix DNxHD GC element_type

2021-12-14 Thread Matthieu Bouron
On Tue, Dec 14, 2021 at 04:27:43PM +0100, Nicolas Gaullier wrote: > The values for the essence element type were updated in the spec > from 0x05/0x06 (ST2019-4 2008) to 0x0C/0x0D (ST2019-4 2009). > > Fixes ticket #6380. > > Thanks-to: Philip de Nier > Thanks-to: Matthieu Bo

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodecenc: set quality in cq mode

2023-12-19 Thread Matthieu Bouron
On Sun, Dec 17, 2023 at 1:51 PM Zhao Zhili wrote: > > From: Zhao Zhili > > From AOSP doc, these values are device and codec specific, but lower > values generally result in more efficient (smaller-sized) encoding. > > For example, global_quality 50 on Pixel 6 results a 1080P 30 FPS > HEVC with 37

Re: [FFmpeg-devel] [PATCH] avfft: avoid overreads with RDFT API users

2024-02-09 Thread Matthieu Bouron
On Fri, Feb 09, 2024 at 06:27:50PM +0100, Lynne wrote: > The new API requires an extra array member at the very end, > which old API users did not do. > > This disables in-place RDFT transforms and instead > does the transform out of place by copying once, there shouldn't > be a significant loss o

Re: [FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-07-01 Thread Matthieu Bouron
On Sat, Jun 11, 2022 at 5:35 PM Michael Niedermayer wrote: > On Fri, Jun 10, 2022 at 04:11:10PM +0200, Matthieu Bouron wrote: > > On Thu, Jun 2, 2022 at 9:13 PM Michael Niedermayer < > mich...@niedermayer.cc> > > wrote: > > > > > On Wed, Jun 01, 2022 at

Re: [FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-07-12 Thread Matthieu Bouron
Le ven. 1 juil. 2022, 10:08, Matthieu Bouron a écrit : > On Sat, Jun 11, 2022 at 5:35 PM Michael Niedermayer < > mich...@niedermayer.cc> wrote: > >> On Fri, Jun 10, 2022 at 04:11:10PM +0200, Matthieu Bouron wrote: >> > On Thu, Jun 2, 2022 at 9:13 PM

Re: [FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-08-02 Thread Matthieu Bouron
On Thu, Jul 14, 2022 at 8:10 PM Michael Niedermayer wrote: > On Fri, Jul 01, 2022 at 10:08:14AM +0200, Matthieu Bouron wrote: > > On Sat, Jun 11, 2022 at 5:35 PM Michael Niedermayer < > mich...@niedermayer.cc> > > wrote: > > > > > On Fri, Jun 10, 2022 at

[FFmpeg-devel] [PATCH] avcodec/mediacodecdec_common: stop the codec before releasing it

2022-03-30 Thread Matthieu Bouron
Fixes the following warnings/errors on codec release: E/BufferQueueProducer: [SurfaceTexture-0-31763-0](id:7c130001,api:3,p:31763,c:31763) detachBuffer: slot 0 is not owned by the producer (state = FREE) E/BufferQueueProducer: [SurfaceTexture-0-31763-0](id:7c130001,api:3,p:31763,c:31763

[FFmpeg-devel] [PATCH] libavformat/tls_libtls: handle TLS_WANT_{POLLIN, POLLOUT} in read/write functions

2022-05-23 Thread Matthieu Bouron
According to the tls documentation: tls_read() and tls_write() can return TLS_WANT_POLLIN and TLS_WANT_POLLOUT which indicates that the same operation must be repeated immediately. This commit prevents the libtls backend from failing when libtls returns TLS_WANT_POLLIN or TLS_WANT_POLLOUT with the

Re: [FFmpeg-devel] [PATCH] libavformat/tls_libtls: handle TLS_WANT_{POLLIN, POLLOUT} in read/write functions

2022-05-30 Thread Matthieu Bouron
On Mon, May 23, 2022 at 12:44:33PM +0200, Matthieu Bouron wrote: > According to the tls documentation: tls_read() and tls_write() can > return TLS_WANT_POLLIN and TLS_WANT_POLLOUT which indicates that the > same operation must be repeated immediately. > > This commit prevents the

[FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-06-01 Thread Matthieu Bouron
--- libswscale/input.c | 1 + libswscale/utils.c | 1 + libswscale/version.h | 2 +- tests/ref/fate/filter-pixdesc-nv16 | 1 + tests/ref/fate/filter-pixfmts-copy | 1 + tests/ref/fate/filter-pixfmts-crop | 1 + tests

Re: [FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-06-10 Thread Matthieu Bouron
On Thu, Jun 2, 2022 at 9:13 PM Michael Niedermayer wrote: > On Wed, Jun 01, 2022 at 10:33:37PM +0200, Matthieu Bouron wrote: > > --- > > libswscale/input.c | 1 + > > libswscale/utils.c | 1 + > > libswscale/versio

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodecenc: Fix access of uninitialized value

2024-10-06 Thread Matthieu Bouron
On Thu, Oct 3, 2024 at 7:31 PM Zhao Zhili wrote: > > From: Zhao Zhili > > When crop is skipped, av_strlcatf will access `str` which isn't > initialized properly. > --- > libavcodec/mediacodecenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/mediacodecenc.c

Re: [FFmpeg-devel] [PATCH] avcodec/mediacodecdec: replace memset with direct zero init

2025-06-12 Thread Matthieu Bouron
On Thu, Jun 12, 2025 at 5:33 PM Zhao Zhili wrote: > > From: Zhao Zhili > > --- > libavcodec/mediacodecdec.c | 11 +++ > 1 file changed, 3 insertions(+), 8 deletions(-) > > diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c > index 4937828f21..ea9362ba85 100644 > --- a/l

<    2   3   4   5   6   7