Re: [FFmpeg-devel] [PATCH] Fixing HW accelerated decoders hanging or throwing error in h263dec

2019-08-02 Thread Philip Langdale
On 2019-08-03 00:09, Timo Rothenpieler wrote: On 02.08.2019 11:18, Stefan Schoenefeld wrote: Hi all, Recently we encountered an issue when decoding a h.263 file: FFmpeg will freeze when decoding h.263 video with NVDEC. Turns out this is not directly related to NVDEC but is a problem that show

Re: [FFmpeg-devel] [PATCH 1/4] avformat/mpegtsenc: fix incorrect PCR selection with multiple programs

2019-08-02 Thread Andriy Gelman
On Sat, 03. Aug 00:37, Marton Balint wrote: > The MPEG-TS muxer had a serious bug related to the use of multiple programs: > in that case, the PCR pid selection was incomplete for all services except > one. > This patch solves this problem and selects a stream to become PCR for each > service, pre

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/pictordec: Optimize picmemset() for single plane full lines

2019-08-02 Thread Peter Ross
On Sat, Aug 03, 2019 at 01:49:54AM +0200, Michael Niedermayer wrote: > Fixes: Timeout (72sec -> 1sec) > Fixes: > 15512/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PICTOR_fuzzer-5663942342344704 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projec

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/vp3: Check for end of input in vp4_unpack_vlcs()

2019-08-02 Thread Peter Ross
On Sat, Aug 03, 2019 at 01:49:52AM +0200, Michael Niedermayer wrote: > Fixes: Timeout (too long -> 1sec) > Fixes: > 15232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-5769583086010368 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projec

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp8: do vp7_fade_frame() later

2019-08-02 Thread Peter Ross
On Fri, Aug 02, 2019 at 07:19:11PM +0200, Michael Niedermayer wrote: > On Fri, Aug 02, 2019 at 10:46:04PM +1000, Peter Ross wrote: > > On Thu, Aug 01, 2019 at 11:44:39PM +0200, Michael Niedermayer wrote: > > > Fixes: Timeout (100sec -> 5sec) > > > Fixes: > > > 15073/clusterfuzz-testcase-minimized-

[FFmpeg-devel] [PATCH 3/6] avcodec/pictordec: Optimize picmemset() for single plane full lines

2019-08-02 Thread Michael Niedermayer
Fixes: Timeout (72sec -> 1sec) Fixes: 15512/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PICTOR_fuzzer-5663942342344704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/pictordec.c | 16 ++

[FFmpeg-devel] [PATCH 4/6] avcodec/hnm4video: Optimize postprocess_current_frame()

2019-08-02 Thread Michael Niedermayer
Improves: Timeout (220sec -> 108sec) Improves: 15570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HNM4_VIDEO_fuzzer-5085482213441536 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/hnm4vi

[FFmpeg-devel] [PATCH 6/6] avcodec/mss1: check for overread and forward errors

2019-08-02 Thread Michael Niedermayer
Fixes: Timeout (106sec -> 14ms) Fixes: 15576/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS1_fuzzer-5688080461201408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/mss1.c | 3 +++ li

[FFmpeg-devel] [PATCH 1/6] avcodec/vp3: Check for end of input in vp4_unpack_vlcs()

2019-08-02 Thread Michael Niedermayer
Fixes: Timeout (too long -> 1sec) Fixes: 15232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-5769583086010368 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/vp3.c | 2 ++ 1 fil

[FFmpeg-devel] [PATCH 5/6] avcodec/hnm4video: Forward errors of decode_interframe_v4()

2019-08-02 Thread Michael Niedermayer
Fixes: Timeout (108sec -> 160ms) Fixes: 15570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HNM4_VIDEO_fuzzer-5085482213441536 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/hnm4video.c |

[FFmpeg-devel] [PATCH 2/6] avcodec/loco: Check for end of input in pixel decode

2019-08-02 Thread Michael Niedermayer
Fixes: Timeout (100sec -> 5sec) Fixes: 15509/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LOCO_fuzzer-5724297261219840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/loco.c | 4 1 f

[FFmpeg-devel] [PATCH 4/4] avformat/mpegtsenc: use increasing numbers in default service names

2019-08-02 Thread Marton Balint
Maybe we should use service ID instead of increasing numbers? Signed-off-by: Marton Balint --- libavformat/mpegtsenc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index f32f99114a..c30f13670c 100644 --- a/libavformat

[FFmpeg-devel] [PATCH 3/4] avformat/mpegtsenc: remove section_write_packet forward declaration

2019-08-02 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mpegtsenc.c | 50 - 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index a2adcc0022..f32f99114a 100644 --- a/libavformat/mpegtsenc.c +++

[FFmpeg-devel] [PATCH 2/4] avformat/mpegtsenc: factorize setting up services

2019-08-02 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mpegtsenc.c | 66 +++-- 1 file changed, 25 insertions(+), 41 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 1446d8e2e4..a2adcc0022 100644 --- a/libavformat/mpegtsenc.c +++

[FFmpeg-devel] [PATCH 1/4] avformat/mpegtsenc: fix incorrect PCR selection with multiple programs

2019-08-02 Thread Marton Balint
The MPEG-TS muxer had a serious bug related to the use of multiple programs: in that case, the PCR pid selection was incomplete for all services except one. This patch solves this problem and selects a stream to become PCR for each service, preferably the video stream. This patch also moves pcr ca

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-02 Thread Steven Liu
> 在 2019年8月2日,18:46,Michael Niedermayer 写道: > > On Wed, Jul 31, 2019 at 04:07:22PM +0800, Steven Liu wrote: >> write mpegts or fmp4 context into buffer, and flush the buffer into >> output file when split fragment. merge two format split workflow into >> one workflow >> >> Signed-off-by: Steve

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-02 Thread Steven Liu
> 在 2019年8月2日,22:46,Ian Klassen 写道: > > On Fri, Aug 2, 2019 at 5:46 AM Michael Niedermayer > wrote: > >> On Wed, Jul 31, 2019 at 04:07:22PM +0800, Steven Liu wrote: >>> write mpegts or fmp4 context into buffer, and flush the buffer into >>> output file when split fragment. merge two format sp

[FFmpeg-devel] [PATCH] libavcodec/iff: Use unsigned to avoid undefined behaviour

2019-08-02 Thread Andreas Rheinhardt
The initialization of the uint32_t plane32_lut matrix uses left shifts of the form 1 << plane; plane can be as big as 31 which means that this is undefined behaviour as 1 will be simply an int. So make it unsigned to avoid this. Signed-off-by: Andreas Rheinhardt --- libavcodec/iff.c | 34 +++

Re: [FFmpeg-devel] Issues while encoding a ts file to m3u8

2019-08-02 Thread James Darnley
On 2019-08-02 15:55, Ramana Jajula wrote: > Hi, > > I am trying to encode my ts file m3u8 using my customised ffmpeg of version > 4.1. I used below command to do encoding. > > ffmpeg -re -threads 8 -i /videos/input.ts -vcodec libx264 -s 320x240 -b:v > 512000 -maxrate 512000 -acodec libfdk_aac -b:

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp8: do vp7_fade_frame() later

2019-08-02 Thread Michael Niedermayer
On Fri, Aug 02, 2019 at 10:46:04PM +1000, Peter Ross wrote: > On Thu, Aug 01, 2019 at 11:44:39PM +0200, Michael Niedermayer wrote: > > Fixes: Timeout (100sec -> 5sec) > > Fixes: > > 15073/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP7_fuzzer-5649257362620416 > > > > Untested as none of the

Re: [FFmpeg-devel] [PATCH v5] avutil/mips: Avoid instruction exception caused by gssqc1/gslqc1.

2019-08-02 Thread Reimar Döffinger
On Wed, Jul 31, 2019 at 09:30:01AM +0800, Shiyou Yin wrote: > Ensure the address accesed by gssqc1/gslqc1 are 16-byte aligned. Pushed, thanks. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsu

Re: [FFmpeg-devel] [PATCH] Fixing HW accelerated decoders hanging or throwing error in h263dec

2019-08-02 Thread Timo Rothenpieler
On 02.08.2019 11:18, Stefan Schoenefeld wrote: Hi all, Recently we encountered an issue when decoding a h.263 file: FFmpeg will freeze when decoding h.263 video with NVDEC. Turns out this is not directly related to NVDEC but is a problem that shows with several other HW decoders like VDPAU, t

Re: [FFmpeg-devel] [PATCH] lavu/tx: add support for double precision FFT and MDCT

2019-08-02 Thread Lynne
Aug 1, 2019, 4:54 PM by d...@lynne.ee: > Jul 27, 2019, 7:29 PM by d...@lynne.ee: > >> Simply moves and templates the actual transforms to support an >> additional data type. >> Unlike the float version, which is equal or better than libfftw3f, >> double precision output is bit identical with libff

[FFmpeg-devel] [PATCH] lavu/tx: don't compile double precision transforms on CONFIG_SMALL

2019-08-02 Thread Lynne
They'll likely only be used in not so small filters, so for embedded users it makes sense to not compile them in. >From bafb404153641a84224d88598659d554cfdf9543 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 2 Aug 2019 16:58:27 +0100 Subject: [PATCH] lavu/tx: don't compile double precision tran

[FFmpeg-devel] [PATCH V2] Fixes compiler bug - replace vec_lvsl/vec_perm with vec_xl

2019-08-02 Thread ckerchne
A bug exist with the gcc compilers for Power in versions 6.x and 7.x (verified with 6.3 and 7.4). It was fixed in version 8.x (verified with 8.3). I was using a Power 9 ppc64le machine for building and testing. This is to address ticket #7124. It appears the compiler is generating the wrong cod

Re: [FFmpeg-devel] [PATCH 6/7] avformat/dashenc: add missing padding to the updated extradata

2019-08-02 Thread Andreas Rheinhardt
James Almer: > On 8/2/2019 11:46 AM, Andreas Rheinhardt wrote: >> James Almer: >>> Signed-off-by: James Almer >>> --- >>> libavformat/dashenc.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c >>> index bded260806..50eb

Re: [FFmpeg-devel] [PATCH 6/7] avformat/dashenc: add missing padding to the updated extradata

2019-08-02 Thread James Almer
On 8/2/2019 11:46 AM, Andreas Rheinhardt wrote: > James Almer: >> Signed-off-by: James Almer >> --- >> libavformat/dashenc.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c >> index bded260806..50eba370d9 100644 >> --- a/

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-02 Thread Ian Klassen
On Fri, Aug 2, 2019 at 5:46 AM Michael Niedermayer wrote: > On Wed, Jul 31, 2019 at 04:07:22PM +0800, Steven Liu wrote: > > write mpegts or fmp4 context into buffer, and flush the buffer into > > output file when split fragment. merge two format split workflow into > > one workflow > > > > Signed

Re: [FFmpeg-devel] [PATCH 6/7] avformat/dashenc: add missing padding to the updated extradata

2019-08-02 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > libavformat/dashenc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c > index bded260806..50eba370d9 100644 > --- a/libavformat/dashenc.c > +++ b/libavformat/dashenc.c > @@

Re: [FFmpeg-devel] [PATCH 7/7] avformat/dashenc: fix writting the AV1 codec string in mp4 mode

2019-08-02 Thread James Almer
On 7/30/2019 5:19 PM, James Almer wrote: > From https://aomediacodec.github.io/av1-isobmff/#codecsparam, the parameters > sample entry 4CC, profile, level, tier, and bitDepth are all mandatory fields. > All the other fields are optional, mutually inclusive (all or none). > > Fixes ticket #8049 >

[FFmpeg-devel] Issues while encoding a ts file to m3u8

2019-08-02 Thread Ramana Jajula
Hi, I am trying to encode my ts file m3u8 using my customised ffmpeg of version 4.1. I used below command to do encoding. ffmpeg -re -threads 8 -i /videos/input.ts -vcodec libx264 -s 320x240 -b:v 512000 -maxrate 512000 -acodec libfdk_aac -b:a 32000 -ac 2 -ar 48000 -force_key_frames 'expr:gte(t,n_

Re: [FFmpeg-devel] libavcodec: add timer bitstream filter

2019-08-02 Thread Andreas Håkon
Hi Paul, ‐‐‐ Original Message ‐‐‐ On Monday, 29 de July de 2019 21:19, Paul B Mahol wrote: > Documentation for bsf does document single option, thus is incomplete. Done: https://patchwork.ffmpeg.org/patch/14195/ Regards. A.H. --- ___ ffmpe

[FFmpeg-devel] libavcodec: add timer bitstream filter [v2]

2019-08-02 Thread Andreas Håkon
Hi, This new version completes the documentation. Supersedes: https://patchwork.ffmpeg.org/patch/13743/ Regards. A.H. ---From 9d115c9c049c5a1141ea83174794bf773359ebd0 Mon Sep 17 00:00:00 2001 From: Andreas Hakon Date: Fri, 2 Aug 2019 13:55:48 +0100 Subject: [PATCH] libavcodec: add timer bitstre

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/vp8: do vp7_fade_frame() later

2019-08-02 Thread Peter Ross
On Thu, Aug 01, 2019 at 11:44:39PM +0200, Michael Niedermayer wrote: > Fixes: Timeout (100sec -> 5sec) > Fixes: > 15073/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP7_fuzzer-5649257362620416 > > Untested as none of the vp7 samples i found executes this codepath see attached. its all i can

Re: [FFmpeg-devel] [PATCH] avcodec/msrle: remove unused items

2019-08-02 Thread Michael Niedermayer
On Thu, Aug 01, 2019 at 04:03:58PM +0200, Paul B Mahol wrote: > Hi, > > patch attached. > msrle.c |5 - > 1 file changed, 5 deletions(-) > 3d9a86788e29d2bf633b1a0350278f91df1fa4df > 0001-avcodec-msrle-remove-unused-items.patch > From ff971f9f88ed4617d630ee10c6699a1fffdd956b Mon Sep 17

Re: [FFmpeg-devel] [PATCH v2] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-02 Thread Michael Niedermayer
On Wed, Jul 31, 2019 at 04:07:22PM +0800, Steven Liu wrote: > write mpegts or fmp4 context into buffer, and flush the buffer into > output file when split fragment. merge two format split workflow into > one workflow > > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c | 200 ++

[FFmpeg-devel] [PATCH] lavf/vf_deinterlace_vaapi: flush queued frame in field mode

2019-08-02 Thread Linjie Fu
Add deint_vaapi_request_frame for deinterlace_vaapi, send NULL frame to flush the queued frame. Fix the frame drop issue in field mode: ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -v verbose -c:v h264 -i ./input.h264 -vf 'format=nv12|vaapi,hwupload, deinterlace_vaapi=mode=bob:

[FFmpeg-devel] [PATCH] Fixing HW accelerated decoders hanging or throwing error in h263dec

2019-08-02 Thread Stefan Schoenefeld
Hi all, Recently we encountered an issue when decoding a h.263 file: FFmpeg will freeze when decoding h.263 video with NVDEC. Turns out this is not directly related to NVDEC but is a problem that shows with several other HW decoders like VDPAU, though the exact kind of error is different (eithe

Re: [FFmpeg-devel] [PATCH]Support for Frame Doubling/ Tripling in FFMPEG's HEVC Decoder by parsing the picture_struct SEI value (Support for http://ffmpeg.org/pipermail/ffmpeg-devel/2019-June/245521.h

2019-08-02 Thread Michael Niedermayer
On Thu, Aug 01, 2019 at 12:46:21PM +, Praveen Kumar wrote: > Hi, > > This patch has the implementation for frame duplication (doubling/ tripling) > in FFmpeg's HEVC decoder based on the picture_structre SEI value (7 for > doubling and 8 for tripling) set while encoding. > This addresses the

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v3]

2019-08-02 Thread Andreas Håkon
Hi Marton, ‐‐‐ Original Message ‐‐‐ On Friday, 2 de August de 2019 10:09, Marton Balint wrote: > > > > > Maybe I miss something but as far as I see only this block needs to > > > > > be in > > > > > the loop, the rest is not. So you can actually write this: > > > > > > > > False! All ch

Re: [FFmpeg-devel] [PATCH V2] fate: add a case for ticket #3229

2019-08-02 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Li, Zhong > Sent: Tuesday, July 30, 2019 9:53 AM > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH V2] fate: add a case for ticket #3229 > > > From: ffmpeg-devel [mailto:ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] DSD improvements

2019-08-02 Thread Carl Eugen Hoyos
> Am 02.08.2019 um 09:00 schrieb Paul B Mahol : > > Hi, > > patches attached. > > DST one dropped as it needs different approach. I will report test results on a variety of hardware next Thursday. Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-de

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v3]

2019-08-02 Thread Marton Balint
On Fri, 2 Aug 2019, Andreas Håkon wrote: Hi Marton, > > > + > > > + /* program service checks */ > > > + program = av_find_program_from_stream(s, NULL, i); > > > + do { > > > + for (j = 0; j < ts->nb_services; j++) { > > > + if (progr

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v4]

2019-08-02 Thread Andreas Håkon
Hi Andriy, ‐‐‐ Original Message ‐‐‐ On Thursday, 1 de August de 2019 16:15, Andriy Gelman wrote: > > > If you are going to add pcr_st to MpegTSService then it would make sense > > > to move the > > > initialization to mpegts_add_service function. > > > > Good idea! Marton recommends

Re: [FFmpeg-devel] libavformat/mpegtsenc: fix incorrect PCR with multiple programs [v3]

2019-08-02 Thread Andreas Håkon
Hi Marton, ‐‐‐ Original Message ‐‐‐ On Thursday, 1 de August de 2019 23:09, Marton Balint wrote: > On Thu, 1 Aug 2019, Andreas Håkon wrote: > > > Hi Marton, > > First of all, a new version [v4] is posted here: > > https://patchwork.ffmpeg.org/patch/14121/ > > I replied to the wrong (v3)

[FFmpeg-devel] [PATCH] DSD improvements

2019-08-02 Thread Paul B Mahol
Hi, patches attached. DST one dropped as it needs different approach. 0001-avformat-dsfdec-set-packet-pts-duration-pos-correctl.patch Description: Binary data 0002-avcodec-dsddec-add-slice-threading-support.patch Description: Binary data ___ ffmpeg-