[FFmpeg-devel] [PATCH] libavcodec/libopenjpegenc: don't define OPJ_STATIC with openjpeg 2.1.1

2016-07-24 Thread Kia
This fixes bug #5694 and builds with libopenjpeg 2.1.1. openjpeg commit 3ed5858902055d3500a6ab183f1395686921d026 hides all symbols with __attribute__ ((visibility ("hidden"))) if OPJ_STATIC is defined Signed-off-by: Kia --- libavcodec/libopenjpegdec.c | 1 + libavcodec/libopenjpegenc.c | 1 + 2

Re: [FFmpeg-devel] [GSoC] Motion Interpolation

2016-07-24 Thread Davinder Singh
https://github.com/dsmudhar/FFmpeg/commits/dev The Paper 2 algorithm is complete. It seems good. If I compare Paper 2 (which uses bilateral motion estimation) v/s motion vectors exported by mEstimate filter: $ tiny_psnr 60_source_2.yuv 60_mest-esa+obmc.yuv stddev:1.43 PSNR: 45.02 MAXDIFF: 17

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-24 Thread Steven Liu
2016-07-25 10:29 GMT+08:00 XinZheng Zhang : > Ping. > > On Thu, Jul 21, 2016 at 11:59 AM, XinZheng Zhang > wrote: > > On Thu, Jul 21, 2016 at 5:03 AM, Moritz Barsnick > wrote: > >> On Thu, Jul 21, 2016 at 00:06:44 +0800, zhangxinzheng wrote: > >> > >>> Subject: [FFmpeg-devel] [PATCH] avformat/fi

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread James Almer
On 7/24/2016 8:13 PM, Michael Niedermayer wrote: > On Sun, Jul 24, 2016 at 06:52:50PM -0300, James Almer wrote: >> On 7/24/2016 6:14 PM, Michael Niedermayer wrote: >>> On Sun, Jul 24, 2016 at 06:04:18PM -0300, James Almer wrote: On 7/24/2016 5:59 PM, Matthieu Bouron wrote: > On Sun, Jul 24

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-24 Thread XinZheng Zhang
Ping. On Thu, Jul 21, 2016 at 11:59 AM, XinZheng Zhang wrote: > On Thu, Jul 21, 2016 at 5:03 AM, Moritz Barsnick wrote: >> On Thu, Jul 21, 2016 at 00:06:44 +0800, zhangxinzheng wrote: >> >>> Subject: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before >>> video or audio stream was c

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 03:21:00PM +0200, Martin Vignali wrote: > > breaks fate > > > > make: *** [fate-filter-metadata-ebur128] Error 1 > > --- - 2016-07-23 18:50:11.633752058 +0200 > > +++ tests/data/fate/probe-format-roundup14142016-07-23 > > 18:50:10.913635588 +0200 > > @@ -1 +1 @@ > > -m

Re: [FFmpeg-devel] Outreachy 2016 december

2016-07-24 Thread Michael Niedermayer
Hi On Sat, Jul 23, 2016 at 03:36:53PM -0700, Yayoi Ukai wrote: > On Jul 22, 2016 10:18 AM, "Michael Niedermayer" > wrote: > > > > On Wed, Jul 06, 2016 at 11:25:21PM +0200, Michael Niedermayer wrote: > > > Hi all > > > > > > The next Outreachy round starts soon > > > FFmpeg has till august 22 IIUC

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 06:52:50PM -0300, James Almer wrote: > On 7/24/2016 6:14 PM, Michael Niedermayer wrote: > > On Sun, Jul 24, 2016 at 06:04:18PM -0300, James Almer wrote: > >> On 7/24/2016 5:59 PM, Matthieu Bouron wrote: > >>> On Sun, Jul 24, 2016 at 10:53:51PM +0200, Michael Niedermayer wrot

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread James Almer
On 7/24/2016 6:14 PM, Michael Niedermayer wrote: > On Sun, Jul 24, 2016 at 06:04:18PM -0300, James Almer wrote: >> On 7/24/2016 5:59 PM, Matthieu Bouron wrote: >>> On Sun, Jul 24, 2016 at 10:53:51PM +0200, Michael Niedermayer wrote: On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer

[FFmpeg-devel] [PATCH] lavf/movenc: add missing dependency on dnxhddata

2016-07-24 Thread Matthieu Bouron
From: Matthieu Bouron Fixes a missing symbol error in lavc/movenc if the dnxhd encoder is not enabled. --- New patch attached. If it's accepted, I'll revert the previous one and push the new one. --- libavcodec/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/Makefile b/

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 06:04:18PM -0300, James Almer wrote: > On 7/24/2016 5:59 PM, Matthieu Bouron wrote: > > On Sun, Jul 24, 2016 at 10:53:51PM +0200, Michael Niedermayer wrote: > >> On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer wrote: > >>> On Sun, Jul 24, 2016 at 10:30:35PM +02

[FFmpeg-devel] [PATCH] lavc/ffjni: replace ff_jni_{attach, detach} with ff_jni_get_env

2016-07-24 Thread Matthieu Bouron
From: Matthieu Bouron If a JNI environment is not already attached to the thread where the MediaCodec calls are made the current implementation will attach / detach an environment for each MediaCodec call wasting some CPU time. ff_jni_get_env replaces ff_jni_{attach,detach} by permanently attach

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread James Almer
On 7/24/2016 5:59 PM, Matthieu Bouron wrote: > On Sun, Jul 24, 2016 at 10:53:51PM +0200, Michael Niedermayer wrote: >> On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer wrote: >>> On Sun, Jul 24, 2016 at 10:30:35PM +0200, Matthieu Bouron wrote: From: Matthieu Bouron lavc

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread James Almer
On 7/24/2016 5:53 PM, Michael Niedermayer wrote: > On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer wrote: >> On Sun, Jul 24, 2016 at 10:30:35PM +0200, Matthieu Bouron wrote: >>> From: Matthieu Bouron >>> >>> lavc/movenc rely on avpriv_dnxhd_parse_header_prefix declared by >>> dnxhdda

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Matthieu Bouron
On Sun, Jul 24, 2016 at 10:53:51PM +0200, Michael Niedermayer wrote: > On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer wrote: > > On Sun, Jul 24, 2016 at 10:30:35PM +0200, Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > > > lavc/movenc rely on avpriv_dnxhd_parse_header_pr

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 10:40:58PM +0200, Michael Niedermayer wrote: > On Sun, Jul 24, 2016 at 10:30:35PM +0200, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > lavc/movenc rely on avpriv_dnxhd_parse_header_prefix declared by > > dnxhddata.h since e47981dab7fb7c9499b959cb0125b7281301969a

Re: [FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 10:30:35PM +0200, Matthieu Bouron wrote: > From: Matthieu Bouron > > lavc/movenc rely on avpriv_dnxhd_parse_header_prefix declared by > dnxhddata.h since e47981dab7fb7c9499b959cb0125b7281301969a. > > Fixes a missing symbol error in lavc/movenc if the dnxhd encoder is not

Re: [FFmpeg-devel] A question regarding dangerous call inside libavformat\utils.c::has_decode_delay_been_guessed()

2016-07-24 Thread Ivan Uskov
Hello Michael, Sunday, July 24, 2016, 11:25:29 PM, you wrote: MN> On Sun, Jul 24, 2016 at 11:18:38PM +0300, Ivan Uskov wrote: >> Hello Michael, >> >> Sunday, July 24, 2016, 11:11:32 PM, you wrote: >> >> MN> On Sun, Jul 24, 2016 at 09:55:21PM +0300, Ivan Uskov wrote: >> >> Hello All, >> >> >> >

[FFmpeg-devel] [PATCH] lavc: always build dnxhddata

2016-07-24 Thread Matthieu Bouron
From: Matthieu Bouron lavc/movenc rely on avpriv_dnxhd_parse_header_prefix declared by dnxhddata.h since e47981dab7fb7c9499b959cb0125b7281301969a. Fixes a missing symbol error in lavc/movenc if the dnxhd encoder is not enabled. --- libavcodec/Makefile | 5 +++-- 1 file changed, 3 insertions(+),

Re: [FFmpeg-devel] A question regarding dangerous call inside libavformat\utils.c::has_decode_delay_been_guessed()

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 11:18:38PM +0300, Ivan Uskov wrote: > Hello Michael, > > Sunday, July 24, 2016, 11:11:32 PM, you wrote: > > MN> On Sun, Jul 24, 2016 at 09:55:21PM +0300, Ivan Uskov wrote: > >> Hello All, > >> > >> I have discovered the following issue: > >> Latest builds of ffmpeg crashe

Re: [FFmpeg-devel] A question regarding dangerous call inside libavformat\utils.c::has_decode_delay_been_guessed()

2016-07-24 Thread Ivan Uskov
Hello Michael, Sunday, July 24, 2016, 11:11:32 PM, you wrote: MN> On Sun, Jul 24, 2016 at 09:55:21PM +0300, Ivan Uskov wrote: >> Hello All, >> >> I have discovered the following issue: >> Latest builds of ffmpeg crashes into the h264.c when *hardware* qsv-based >> h264 decoder uses. >> The cras

Re: [FFmpeg-devel] A question regarding dangerous call inside libavformat\utils.c::has_decode_delay_been_guessed()

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 09:55:21PM +0300, Ivan Uskov wrote: > Hello All, > > I have discovered the following issue: > Latest builds of ffmpeg crashes into the h264.c when *hardware* qsv-based > h264 decoder uses. > The crash does appear inside the > > int avpriv_h264_has_num_reorder_frames(AVCod

Re: [FFmpeg-devel] [PATCH v2] avcodec/bsf: Set EOF flag only if pkt == NULL

2016-07-24 Thread Jan Sebechlebsky
On 07/22/2016 10:14 PM, Nicolas George wrote: Le quintidi 5 thermidor, an CCXXIV, sebechlebsky...@gmail.com a écrit : From: Jan Sebechlebsky Set BSF EOF flag only if pkt == NULL in av_bsf_send_packet(). Signed-off-by: Jan Sebechlebsky --- I agree, it seems cleaner that way. Thanks,

[FFmpeg-devel] Subject: [PATCH] libavcodec/qsvdec_h2645.c: switch to the new BSF API

2016-07-24 Thread Ivan Uskov
Hello All, This patch applies same changes as commit e3dfef8e3c85a64dbe6388117303f5819fa3c6a2 of libav: instead obsolete AVBitStreamFilterContext now new AVBSFContext filter uses to restore annex-B prefixes. Please review. -- Best regards, Ivan mailto:ivan.us...@n

Re: [FFmpeg-devel] ffbox0 server hosting

2016-07-24 Thread Clément Bœsch
On Sat, Jul 23, 2016 at 11:12:40AM +0200, Michael Niedermayer wrote: > On Tue, Jul 19, 2016 at 07:32:01PM +0200, Clément Bœsch wrote: > > Hi, > > > > As stated in previous meeting¹ I'd like to stop paying for ffbox0. This is > > not exactly an issue today for me, but I feel like it could be avoide

[FFmpeg-devel] A question regarding dangerous call inside libavformat\utils.c::has_decode_delay_been_guessed()

2016-07-24 Thread Ivan Uskov
Hello All, I have discovered the following issue: Latest builds of ffmpeg crashes into the h264.c when *hardware* qsv-based h264 decoder uses. The crash does appear inside the int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; return h && h

[FFmpeg-devel] [PATCH] avdev/libdc1394: distinguish between enumeration errors, and no cameras found

2016-07-24 Thread Josh de Kock
--- libavdevice/libdc1394.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index 43fa232..4f14b87 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -302,9 +302,14 @@ static int dc1394_v2_read_hea

Re: [FFmpeg-devel] [PATCH]lavc/h264_ps: Be more verbose when truncating likely oversized pps.

2016-07-24 Thread Carl Eugen Hoyos
Michael Niedermayer niedermayer.cc> writes: > > Subject: [PATCH] lavc/h264_ps: Be more verbose when truncating likely > > oversized PPS. > > should be ok Patch applied. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org htt

Re: [FFmpeg-devel] [PATCH] lavc: add mpeg4 mediacodec decoder

2016-07-24 Thread Matthieu Bouron
On Sun, Jul 24, 2016 at 11:37:08AM +0200, Thomas Volkert wrote: > From: Thomas Volkert > > --- > configure| 1 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/mediacodecdec_mpeg4.c | 239 > +

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvdec.c: Restoring decoding functionality after unsuccessful merge from libav.

2016-07-24 Thread Hendrik Leppkes
On Sun, Jul 24, 2016 at 3:43 PM, Ivan Uskov wrote: > Hello Mark, > > Saturday, July 23, 2016, 11:42:46 PM, you wrote: > > MT> On 23/07/16 20:33, Ivan Uskov wrote: >>> If you are use qsv, I would like to recommend to roll-back to version >>> before >>> d30cf57a7b2097b565db02ecfffbdc9c16423d0e >>>

Re: [FFmpeg-devel] [PATCH] qsvdec.c: Revert "Merge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'"

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 06:47:37PM +0300, Ivan Uskov wrote: > Hello All, > > This reverts commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e, reversing > changes made to acc155ac55baa95d1c16c0364b02244bc04d83a8. > The commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e provided irrelevant > code complex

[FFmpeg-devel] [PATCH] af_hdcd: Add counter for cdt expirations

2016-07-24 Thread Burt P
Adds a counter for when the "code detect timer" expired without finding a valid packet. Signed-off-by: Burt P --- libavfilter/af_hdcd.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 72560db..f265ed9 100644

Re: [FFmpeg-devel] [PATCH] avcodec/qsv: remove MFX_EXTBUFF_CODING_OPTION3

2016-07-24 Thread Ivan Uskov
Hello Zeranoe, Saturday, June 18, 2016, 7:33:12 AM, you wrote: zgc> From: Kyle Schwarz zgc> 4th generation Intel CPUs don't support MFX_EXTBUFF_CODING_OPTION3. zgc> This patch fixes bug #5324. zgc> --- zgc> libavcodec/qsvenc.c | 18 -- zgc> 1 file changed, 18 deletions(-) zgc

[FFmpeg-devel] [PATCH] qsvdec.c: Revert "Merge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'"

2016-07-24 Thread Ivan Uskov
Hello All, This reverts commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e, reversing changes made to acc155ac55baa95d1c16c0364b02244bc04d83a8. The commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e provided irrelevant code complexity and decoding slowdown. But main disadvantage of this commit is deco

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Martin Vignali
2016-07-24 16:36 GMT+02:00 Moritz Barsnick : > On Sun, Jul 24, 2016 at 15:21:00 +0200, Martin Vignali wrote: > > Subject: [PATCH] libavcodec : add decoder for .psd image file. > [...] > > +- Psd Decoder > [...] > > +@item PSD @tab @tab X > > +@tab Photoshop > [...] > > +.lon

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Moritz Barsnick
On Sun, Jul 24, 2016 at 15:21:00 +0200, Martin Vignali wrote: > Subject: [PATCH] libavcodec : add decoder for .psd image file. [...] > +- Psd Decoder [...] > +@item PSD @tab @tab X > +@tab Photoshop [...] > +.long_name = NULL_IF_CONFIG_SMALL("Photoshop file"), ".psd", "psd",

Re: [FFmpeg-devel] Questions about Video Memory in qsv decoders

2016-07-24 Thread Ivan Uskov
Hello Michael, Sunday, July 24, 2016, 12:16:59 AM, you wrote: MN> On Sat, Jul 23, 2016 at 11:19:59PM +0300, Ivan Uskov wrote: >> Hello 张玉晓, >> >> Friday, July 22, 2016, 4:10:36 AM, you wrote: >> >> 张> I have a question when learning ffmpeg qsv decoder and Intel media sdk. >> >> 张> The intel me

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvdec.c: Restoring decoding functionality after unsuccessful merge from libav.

2016-07-24 Thread Ivan Uskov
Hello Mark, Saturday, July 23, 2016, 11:42:46 PM, you wrote: MT> On 23/07/16 20:33, Ivan Uskov wrote: >> If you are use qsv, I would like to recommend to roll-back to version before >> d30cf57a7b2097b565db02ecfffbdc9c16423d0e >> Really the d30cf57a7b2097b565db02ecfffbdc9c16423d0e is useless an

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Martin Vignali
> breaks fate > > make: *** [fate-filter-metadata-ebur128] Error 1 > --- - 2016-07-23 18:50:11.633752058 +0200 > +++ tests/data/fate/probe-format-roundup14142016-07-23 > 18:50:10.913635588 +0200 > @@ -1 +1 @@ > -mpeg > +psd_pipe > Test probe-format-roundup1414 failed. Look at > tests/data/fat

[FFmpeg-devel] [PATCH 4/4] lavc: add vp8 mediacodec decoder

2016-07-24 Thread Thomas Volkert
From: Thomas Volkert --- Changelog | 1 + configure | 1 + libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcodec/mediacodecdec_vp8.c | 89 ++ libavcodec/version.h | 2

[FFmpeg-devel] [PATCH 1/4] lavc: add mpeg4 mediacodec decoder

2016-07-24 Thread Thomas Volkert
From: Thomas Volkert --- Changelog| 1 + configure| 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/mediacodecdec_mpeg4.c | 239 +++ libavcodec/version.h

[FFmpeg-devel] [PATCH 3/4] lavc: add h.263 mediacodec decoder

2016-07-24 Thread Thomas Volkert
From: Thomas Volkert --- Changelog | 1 + configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/mediacodecdec_h263.c | 90 + libavcodec/version.h

[FFmpeg-devel] [PATCH 2/4] lavc: share more code between h.264 and mpeg4 decoder

2016-07-24 Thread Thomas Volkert
From: Thomas Volkert --- libavcodec/mediacodecdec.c | 140 ++- libavcodec/mediacodecdec.h | 12 +++ libavcodec/mediacodecdec_h264.c | 175 +++ libavcodec/mediacodecdec_mpeg4.c | 154 +++---

Re: [FFmpeg-devel] [PATCH 3/4] af_hdcd: Add counter for cdt expirations

2016-07-24 Thread Moritz Barsnick
Nitpicking: > Adds a counter for when the code detect timer expired without ^ detects > +int count_sustain_expired;/* occurances of code detect timer > expiring without detecting a code */ ^ occurrences > +if

Re: [FFmpeg-devel] [PATCH] lavc: add mpeg4 mediacodec decoder

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 11:37:08AM +0200, Thomas Volkert wrote: > From: Thomas Volkert > > --- > configure| 1 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/mediacodecdec_mpeg4.c | 239 > +

Re: [FFmpeg-devel] [PATCH v2] tests/fate: add dnxhr encoding tests

2016-07-24 Thread Michael Niedermayer
On Sat, Jul 23, 2016 at 06:10:33PM -0700, Mark Reid wrote: > added sws_flags flags and tested against x86_32 > > --- > tests/fate/seek.mak | 2 ++ > tests/fate/vcodec.mak | 26 - > tests/ref/seek/vsynth_lena-dnxhd-4k-hr-lb | 4

Re: [FFmpeg-devel] [PATCH] lavfi/curves: do not automatically insert points at x=0 and x=1

2016-07-24 Thread Clément Bœsch
On Sun, Jul 17, 2016 at 05:03:35PM +0200, Clément Bœsch wrote: > There is actually a need for the origin and end point not to be defined. > We can not automatically insert them with the y value of the first and > last point as it will influence the curves in a wrong way. > > Fixes #5397 > --- > C

[FFmpeg-devel] [PATCH] lavc: add mpeg4 mediacodec decoder

2016-07-24 Thread Thomas Volkert
From: Thomas Volkert --- configure| 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/mediacodecdec_mpeg4.c | 239 +++ 4 files changed, 242 insertions(+) create mode 100644 libavcodec