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

2018-08-16 Thread Lukas Rusak
Just an FYI i will be developing here if anyone wants to comment and/or PR other changes for V4. https://github.com/lrusak/FFmpeg/commits/v4l2-drmprime-v4 > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org >

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

2018-08-16 Thread James Almer
On 8/14/2018 1:23 PM, Michael Niedermayer wrote: > On Mon, Aug 13, 2018 at 04:58:42PM +0300, Sergey Lavrushkin wrote: >>> >>> Just use av_clipf instead of FFMIN/FFMAX. >> >> >> Changed FFMIN/FFMAX to av_clip_uint16 and av_clip_uint8. > > will apply > > thanks This broke fate on some 32bit

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

2018-08-16 Thread Lukas Rusak
On Sat, 2018-08-04 at 22:43 +0100, Mark Thompson wrote: > On 04/08/18 01:40, Lukas Rusak wrote: > > This allows for a zero-copy output by exporting the v4l2 buffer > > then wrapping that buffer > > in the AVDRMFrameDescriptor like it is done in rkmpp. > > > > This has been in use for quite some

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext

2018-08-16 Thread James Almer
On 7/28/2018 6:28 PM, Michael Niedermayer wrote: > On Sat, Jul 28, 2018 at 01:25:36PM -0300, James Almer wrote: >> On 7/28/2018 4:09 AM, Michael Niedermayer wrote: >>> On Fri, Jul 27, 2018 at 11:11:47PM -0300, James Almer wrote: On 7/27/2018 10:58 PM, Michael Niedermayer wrote: > On Fri,

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

2018-08-16 Thread Zhao Zhili
The values of SubWidthC and SubHeightC are 1 in the ITU-T H.265. The current code use the value of 2. --- libavcodec/hevc_ps.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index fbd9fbf..b56b078 100644 ---

Re: [FFmpeg-devel] Quick Patch for Multicast UDP Receive on macOS

2018-08-16 Thread myp...@gmail.com
On Fri, Aug 17, 2018 at 12:50 AM wrote: > > > > On 16 Aug 2018, at 17:43, Thilo Borgmann wrote: > > > > Hi, > > > >> --- /Users/mark/Downloads/udpORIG.c 2018-08-16 15:39:21.0 +0100 > >> +++ /Users/mark/Downloads/udp.c 2018-08-16 15:40:55.0 +0100 > >> @@ -828,7 +828,11 @@ >

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

2018-08-16 Thread Michael Niedermayer
On Thu, Aug 16, 2018 at 11:29:09AM +0800, Zhao Zhili wrote: > --- > libavcodec/hevc_ps.c | 26 ++ > 1 file changed, 22 insertions(+), 4 deletions(-) > > diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c > index fbd9fbf..4161ab6 100644 > --- a/libavcodec/hevc_ps.c >

[FFmpeg-devel] [PATCH 1/2] avcodec/h264_refs: Detect more random access points which are not marked

2018-08-16 Thread Michael Niedermayer
Fixes: nature_360-7501616eb5eafca5-.mp4 Reported-by: Thierry Foucu Signed-off-by: Michael Niedermayer --- libavcodec/h264_refs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 976044ce2c..26711c0d85 100644 ---

[FFmpeg-devel] [PATCH 2/2] avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking()

2018-08-16 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/h264_refs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 26711c0d85..eaf965e43d 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -812,6 +812,7 @@ int

Re: [FFmpeg-devel] Resending Patch for hlsenc.c fixes for https://trac.ffmpeg.org/ticket/7281

2018-08-16 Thread Steven Liu
> On Aug 16, 2018, at 22:31, Ronak wrote: > > From: "Ronak Patel" > > This fixes the creation of the hls manifest in hlsenc.c by writing the entire > manifest at the end for VOD playlists. Live & Event Playlists are unaffected. > This also fixes the behavior with HLS_TEMP_FILE to work

Re: [FFmpeg-devel] [PATCH 2/2 v2] avformat/av1: update ff_isom_write_av1c() to the latest revision of the spec

2018-08-16 Thread Thomas Daede
On 08/16/2018 02:22 PM, James Almer wrote: > This will get ISOBMFF and Matroska up to date with the revised AV1 Codec > Configuration Box spec. > For now keep propagating raw OBUs as extradata until all libavcodec modules > are adapted to handle AV1CodecConfigurationRecordv1 formatted extradata. >

[FFmpeg-devel] [PATCH 2/2 v2] avformat/av1: update ff_isom_write_av1c() to the latest revision of the spec

2018-08-16 Thread James Almer
This will get ISOBMFF and Matroska up to date with the revised AV1 Codec Configuration Box spec. For now keep propagating raw OBUs as extradata until all libavcodec modules are adapted to handle AV1CodecConfigurationRecordv1 formatted extradata. Signed-off-by: James Almer --- New in v2: -

[FFmpeg-devel] [PATCH 1/2] avcodec/av1_parse: take trailing bits into account when initializing the GetBitContext

2018-08-16 Thread James Almer
Also only initialize it in ff_av1_packet_split() and not ff_av1_extract_obu(), same as h2645_parse, so GetBitContext specific failures may not affect the former. Signed-off-by: James Almer --- libavcodec/av1_parse.c | 25 +++-- libavcodec/av1_parse.h | 38

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread Rostislav Pehlivanov
On Thu, 16 Aug 2018 at 18:40, Paul B Mahol wrote: > On 8/16/18, Paul B Mahol wrote: > > Hi, > > > > another patch attached, please review. > > > > Again. > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org >

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread Rostislav Pehlivanov
On Thu, 16 Aug 2018 at 21:19, Rostislav Pehlivanov wrote: > > > On Thu, 16 Aug 2018 at 18:40, Paul B Mahol wrote: > >> On 8/16/18, Paul B Mahol wrote: >> > Hi, >> > >> > another patch attached, please review. >> > >> >> Again. >> ___ >> ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] h264: Support multi-field closed captions by using AVBufferRef and not resetting per field

2018-08-16 Thread James Almer
On 8/16/2018 7:52 AM, jos...@ob-encoder.com wrote: > diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c > index ede9a1a6ea..7bbe65878f 100644 > --- a/libavcodec/h264_slice.c > +++ b/libavcodec/h264_slice.c > @@ -429,6 +429,12 @@ int ff_h264_update_thread_context(AVCodecContext *dst, >

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread Paul B Mahol
On 8/16/18, Paul B Mahol wrote: > Hi, > > another patch attached, please review. > Again. 0001-avcodec-add-IMM4-decoder.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] Quick Patch for Multicast UDP Receive on macOS

2018-08-16 Thread ffmpeg
> On 16 Aug 2018, at 17:43, Thilo Borgmann wrote: > > Hi, > >> --- /Users/mark/Downloads/udpORIG.c 2018-08-16 15:39:21.0 +0100 >> +++ /Users/mark/Downloads/udp.c 2018-08-16 15:40:55.0 +0100 >> @@ -828,7 +828,11 @@ >>s->reuse_socket = 1; >>if (setsockopt

Re: [FFmpeg-devel] Quick Patch for Multicast UDP Receive on macOS

2018-08-16 Thread Thilo Borgmann
Hi, > --- /Users/mark/Downloads/udpORIG.c 2018-08-16 15:39:21.0 +0100 > +++ /Users/mark/Downloads/udp.c 2018-08-16 15:40:55.0 +0100 > @@ -828,7 +828,11 @@ > s->reuse_socket = 1; > if (setsockopt (udp_fd, SOL_SOCKET, SO_REUSEADDR, &(s->reuse_socket), >

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread James Almer
On 8/16/2018 12:23 PM, Paul B Mahol wrote: > On 8/16/18, James Almer wrote: >> On 8/16/2018 8:00 AM, Paul B Mahol wrote: >>> Hi, >>> >>> another patch attached, please review. >> >>> +static int decode_frame(AVCodecContext *avctx, void *data, >>> +int *got_frame, AVPacket

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread Paul B Mahol
On 8/16/18, James Almer wrote: > On 8/16/2018 8:00 AM, Paul B Mahol wrote: >> Hi, >> >> another patch attached, please review. > >> +static int decode_frame(AVCodecContext *avctx, void *data, >> +int *got_frame, AVPacket *avpkt) >> +{ >> +IMM4Context *s =

[FFmpeg-devel] Resending Patch for hlsenc.c fixes for https://trac.ffmpeg.org/ticket/7281

2018-08-16 Thread Ronak
From: "Ronak Patel" This fixes the creation of the hls manifest in hlsenc.c by writing the entire manifest at the end for VOD playlists. Live & Event Playlists are unaffected. This also fixes the behavior with HLS_TEMP_FILE to work correctly when -hlsflags temp_file is specified, instead of

Re: [FFmpeg-devel] [PATCH] avcodec: add IMM4 decoder

2018-08-16 Thread James Almer
On 8/16/2018 8:00 AM, Paul B Mahol wrote: > Hi, > > another patch attached, please review. > +static int decode_frame(AVCodecContext *avctx, void *data, > +int *got_frame, AVPacket *avpkt) > +{ > +IMM4Context *s = avctx->priv_data; > +GetBitContext *gb = >gb; > +

[FFmpeg-devel] Quick Patch for Multicast UDP Receive on macOS

2018-08-16 Thread ffmpeg
Hi Folks. New here, so apologies if this is not how its done, but I have a tiny patch to fix a fundamental flaw in FFMPEG on macOS. The Problem: --- On macOS Try to run 2 copies of FFMPEG each consuming an RTP Multicast which are on *different* multicast addresses - but the

Re: [FFmpeg-devel] [PATCH] h264: Support multi-field closed captions by using AVBufferRef and not resetting per field

2018-08-16 Thread James Almer
On 8/16/2018 7:52 AM, jos...@ob-encoder.com wrote: > From: Kieran Kunhya > > --- > This is also useful when CC is fully contained in the first field. > > libavcodec/h264_sei.c | 15 --- > libavcodec/h264_sei.h | 3 +-- > libavcodec/h264_slice.c | 15 ++- >

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

2018-08-16 Thread James Almer
On 8/16/2018 2:00 AM, Zhao Zhili wrote: > > > On 2018年08月16日 11:46, James Almer wrote: >> On 8/16/2018 12:29 AM, Zhao Zhili wrote: >>> --- >>>   libavcodec/hevc_ps.c | 26 ++ >>>   1 file changed, 22 insertions(+), 4 deletions(-) >>> >>> diff --git a/libavcodec/hevc_ps.c

Re: [FFmpeg-devel] [PATCH 2/3] avformat/mlvdec: read_string() received unsigned size, make the argument unsigned

2018-08-16 Thread Paul B Mahol
On 8/16/18, Michael Niedermayer wrote: > Fixes: infinite loop > Fixes: mlv-timeout-e3b8cab9835edecad6823baa057e029671329d04 > > Found-by: Paul Ch > Signed-off-by: Michael Niedermayer > --- > libavformat/mlvdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM

Re: [FFmpeg-devel] [PATCH 3/3] avformat/rmdec: Fix EOF check in the stream loop in ivr_read_header()

2018-08-16 Thread Paul B Mahol
On 8/16/18, Michael Niedermayer wrote: > Fixes: long running loop > Fixes: ivr-timeout-42468cb797f52f025fb329394702f5d4d64322d6 > > Found-by: Paul Ch > Signed-off-by: Michael Niedermayer > --- > libavformat/rmdec.c | 2 ++ > 1 file changed, 2 insertions(+) LGTM

[FFmpeg-devel] [PATCH 1/3] avformat/mpegts: add missing null pointer checks in ff_parse_mpeg2_descriptor()

2018-08-16 Thread Michael Niedermayer
Fixes: null pointer dereference Fixes: wtv-crash-75fa58662ded1c1d349f3d1df89394fd690cf92f Found-by: Paul Ch Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index

[FFmpeg-devel] [PATCH 2/3] avformat/mlvdec: read_string() received unsigned size, make the argument unsigned

2018-08-16 Thread Michael Niedermayer
Fixes: infinite loop Fixes: mlv-timeout-e3b8cab9835edecad6823baa057e029671329d04 Found-by: Paul Ch Signed-off-by: Michael Niedermayer --- libavformat/mlvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index

[FFmpeg-devel] [PATCH 3/3] avformat/rmdec: Fix EOF check in the stream loop in ivr_read_header()

2018-08-16 Thread Michael Niedermayer
Fixes: long running loop Fixes: ivr-timeout-42468cb797f52f025fb329394702f5d4d64322d6 Found-by: Paul Ch Signed-off-by: Michael Niedermayer --- libavformat/rmdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 0216003e88..f26c5b4d90 100644

Re: [FFmpeg-devel] [PATCH] h264: Support multi-field closed captions by using AVBufferRef and not resetting per field

2018-08-16 Thread Devin Heitmueller
Hello, > On Aug 16, 2018, at 6:52 AM, jos...@ob-encoder.com wrote: > > From: Kieran Kunhya > > --- > This is also useful when CC is fully contained in the first field. FWIW: I’ve been running a variant of this this patch for a while now. It’s needed for PAFF formatted H.264 streams (i.e.

[FFmpeg-devel] [PATCH] h264: Support multi-field closed captions by using AVBufferRef and not resetting per field

2018-08-16 Thread joshdk
From: Kieran Kunhya --- This is also useful when CC is fully contained in the first field. libavcodec/h264_sei.c | 15 --- libavcodec/h264_sei.h | 3 +-- libavcodec/h264_slice.c | 15 ++- libavcodec/h264dec.c| 5 +++-- 4 files changed, 22 insertions(+), 16

[FFmpeg-devel] [PATCH] lavc/encode: remove redundant av_init_packet after av_packet_unref.

2018-08-16 Thread Jun Zhao
remove redundant av_init_packet after av_packet_unref. av_packet_unref have call av_init_packet and reset the packet size. Signed-off-by: Jun Zhao --- libavcodec/encode.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index

Re: [FFmpeg-devel] [PATCH] avformat/tls_schannel: Fix use of uninitialized variable

2018-08-16 Thread Paweł Wegner
Could someone merge it? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 3/5] Renamed reinterlace to tinterlace

2018-08-16 Thread Vasile Toncu
Hi, Thank you for the additional testing effort. Fixed the issue. On Tue, Aug 14, 2018 at 10:25 PM, Thomas Mundt wrote: > Hi, > > 2018-08-14 18:53 GMT+02:00 Vasile Toncu : > > > Hi Thomas, > > > > I added the log messages. > > > > Thanks for the review. > > > > I found some more time for

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

2018-08-16 Thread Paul B Mahol
Hi, another patch attached, please review. 0001-avcodec-add-IMM4-decoder.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avformat/avidec: fix demuxing of all keyframes of sample 200707170736151.avi

2018-08-16 Thread Paul B Mahol
Hi, better patch attached. 0001-avformat-avidec-fix-demuxing-of-all-keyframes-of-sam.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH V2] avcodec/h264_mp4toannexb_bsf: add No IDR frame situation

2018-08-16 Thread Linjie Fu
Fix the live stream encoding problem using qsv when the first frame is not an IDR frame. Add the extradata information when the IDR frame is missing in the first GOP. Fix the bug reported in ticket #6418. [PATCH V2] Fix the coding style. Signed-off-by: Linjie Fu ---

Re: [FFmpeg-devel] [PATCH 0/4] fix "ffmpeg -h full" can't dump some options issue

2018-08-16 Thread myp...@gmail.com
On Mon, Aug 13, 2018 at 9:52 PM Jun Zhao wrote: > > V1: - add a new avfilter_graph_get_class function for AVFilterGraph options. > - fix can't dump "slice" sub-option for AVFilter. > - fix can't dump mpeg4videodec options issue. (use command "ffmpeg -h decoder=mpeg4") > > Jun Zhao (4): >