[FFmpeg-devel] [PATCH] [PATCH v7] Add support for RockChip Media Process Platform

2017-09-23 Thread LongChair .
From: Lionel CHAZALLON This adds hardware decoding for h264 / HEVC / VP8 using MPP Rockchip API. Will return frames holding an AVDRMFrameDescriptor struct in buf[0] that allows drm / dmabuf usage. Was tested on RK3288 (TinkerBoard) and RK3328. Changes from Previous patch : - Frame colorspace in

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Improve avc chroma horiz mc msa functions

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 11:38:09AM +, Manojkumar Bhosale wrote: > LGTM applied thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme li

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Unrolled loops avc intra msa functions

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 11:37:54AM +, Manojkumar Bhosale wrote: > LGTM applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Old school: Use the lowest level language in which you can solve the problem conveniently. New school: Use the highest

Re: [FFmpeg-devel] [PATCH] avcodec/mips: Improve hevc uni-w copy mc msa functions

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 11:37:27AM +, Manojkumar Bhosale wrote: > LGTM applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I am the wisest man alive, for I know one thing, and that is that I know nothing. -- Socrates signature.asc Description: Digital

Re: [FFmpeg-devel] [PATCH] avformat/async: allow to set buffer size [v2]

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 04:25:33PM +0900, Takayuki 'January June' Suwa wrote: > - add "-asyncbufsize" option to async: > - refactor async.c > - remove READ_BACK_CAPACITY and the 3rd arg of ring_init() > - replace some magicnums with symconst macros This should be several patches as they are in

[FFmpeg-devel] [PATCH 3/3] ffplay: replace use of av_copy_packet()

2017-09-23 Thread James Almer
Signed-off-by: James Almer --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index 45f2d78443..9f7774613c 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2978,7 +2978,7 @@ static int read_thread(void *arg) if (is->queue_attachments_req) {

[FFmpeg-devel] [PATCH 1/3] avcodec/avpacket: deprecate av_copy_packet()

2017-09-23 Thread James Almer
It does the same thing as av_packet_ref(). Signed-off-by: James Almer --- libavcodec/avcodec.h | 3 +++ libavcodec/avpacket.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index bca9f30de3..693e988c09 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 2/3] avformat: replace all uses of av_copy_packet()

2017-09-23 Thread James Almer
Signed-off-by: James Almer --- libavformat/aiffenc.c | 2 +- libavformat/apngenc.c | 4 ++-- libavformat/gif.c | 4 ++-- libavformat/img2enc.c | 2 +- libavformat/movenc.c| 4 ++-- libavformat/mp3enc.c| 2 +- libavformat/subtitles.c | 2 +- libavformat/webpenc.c | 2 +- liba

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_sei: Support HEVC paired fields.

2017-09-23 Thread Michael Niedermayer
On Thu, Sep 14, 2017 at 08:39:19PM -0500, Brian Matherly wrote: > Correctly set frame.interlaced and frame.top_field_first when pic_struct > indicates paired fields. Do you have a (small) sample that gets fixed by this ? Can you make a fate test for this case ? [...] -- Michael GnuPG finger

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/flacenc: Replace "return -1" by named constant

2017-09-23 Thread Michael Niedermayer
On Sat, Sep 23, 2017 at 03:01:53AM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/flacenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In a rich

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/snowenc: Replace "return -1" by named constants

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 10:14:01PM -0300, James Almer wrote: > On 9/22/2017 10:01 PM, Michael Niedermayer wrote: > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/snowenc.c | 10 +- > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > diff --git a/libavcodec/snowenc.c

Re: [FFmpeg-devel] [PATCH] libavdevice/v4l2: fix invalid access to struct v4l2_buffer

2017-09-23 Thread Michael Niedermayer
On Wed, Sep 20, 2017 at 03:14:54PM +0200, Jaroslav Beran wrote: > In case we are short of queued buffers, at first v4l2_buffer was enqueued to > kernel so it's not owned by > user-space anymore. After that it's timestamp field was read, but it might be > overwritten by driver at > that moment. It

Re: [FFmpeg-devel] Supporting DirecTV captioning.

2017-09-23 Thread Helmut K. C. Tessarek
On 2017-09-22 16:34, Joseph Van Riper wrote: > I would prefer not to sprinkle changes throughout something > if I can avoid it. Have you thought about a third party library then? This library can be maintained by the DirecTV folks and you can work on the glue between ffmpeg and the lib. The libr

[FFmpeg-devel] libavcodec/hapenc : add support for hap alpha only encoding

2017-09-23 Thread Martin Vignali
Hello, In attach patch for Hap Alpha encoding Patch 1 : 0004-libavcodec-texturedspenc-add-rgtc1u-encoding Add rgtc1u encoding in the texture dsp enc Patch 2 : 0005-libavcodec-hapenc-add-support-for-hap-alpha-only-enc enable hap alpha only encoding in hapenc (and doc) Ratio need to be 8 for RGTC1

[FFmpeg-devel] avformat/librtmp : new option (swfhash and swfsize)

2017-09-23 Thread Sinan Aksu
Hi, I am not a developer, I am a user. I am trying to solve a problem that I am experiencing myself. I need your help on this. I am trying to record a live rtmp stream with FFmpeg. Live stream source requires swf validation. But I have a compressed swf. FFmpeg can not find the correct hash / size

[FFmpeg-devel] libavcodec/hapdec : add support for HapAphaOnly decoding

2017-09-23 Thread Martin Vignali
Hello, Following this doc : https://github.com/Vidvox/hap/blob/master/documentation/HapVideoDRAFT.md Hap Alpha Only, is only an rgtc1 texture with or without snappy compression Samples can found here (these samples have been create using the second texture of an hapqa file (generate with Hap Qu

[FFmpeg-devel] fate/hapdec : add test for hap alpha only

2017-09-23 Thread Martin Vignali
Hello, sample can be found here : https://we.tl/cP0pW9IfBJ and need to be put inside ./fate-suite/hap both sample are hap alpha only, one is without snappy compression and the other with snappy (1 chunk) Need to be apply after patchs in discussion : libavcodec/hapdec : add support for HapAphaOn

Re: [FFmpeg-devel] libavcodec/hapdec : add support for HapAphaOnly decoding

2017-09-23 Thread Martin Vignali
Sorry, i made a mistake in the previous patchs Correct patchs in attach Martin 0001-libavformat-add-mov-dataformat-tag-for-HapAlphaOnly-.patch Description: Binary data 0002-libavcodec-hapdec-add-support-HapAlphaOnly.patch Description: Binary data __

Re: [FFmpeg-devel] [PATCH 2/3 v2] avfilter/tinterlace: use drawutils for pad mode

2017-09-23 Thread James Almer
On 9/18/2017 10:28 PM, Thomas Mundt wrote: > Patch 1/3 has already been applied. > Patch attached. Pushed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 3/3 v2] avfilter/interlace: add support for 10 and 12 bit

2017-09-23 Thread James Almer
On 9/23/2017 3:24 PM, Michael Niedermayer wrote: > On Tue, Sep 19, 2017 at 10:35:30PM +0200, Thomas Mundt wrote: >> 2017-09-19 17:53 GMT+02:00 James Almer : >> >>> On 9/19/2017 5:02 AM, Thomas Mundt wrote: 2017-09-19 4:09 GMT+02:00 James Almer : > On 9/18/2017 10:41 PM, Thomas Mundt w

Re: [FFmpeg-devel] [PATCH 3/3 v2] avfilter/interlace: add support for 10 and 12 bit

2017-09-23 Thread Thomas Mundt
2017-09-23 20:24 GMT+02:00 Michael Niedermayer : > On Tue, Sep 19, 2017 at 10:35:30PM +0200, Thomas Mundt wrote: > > 2017-09-19 17:53 GMT+02:00 James Almer : > > > > > On 9/19/2017 5:02 AM, Thomas Mundt wrote: > > > > 2017-09-19 4:09 GMT+02:00 James Almer : > > > > > > > >> On 9/18/2017 10:41 PM,

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/avpacket: fix leaks on side data copying failure

2017-09-23 Thread James Almer
On 9/21/2017 7:04 PM, James Almer wrote: > pkt->side_data_elems being set at the very end of the process will leak memory > if some side data elements were already copied before an error ocurrs. > > Signed-off-by: James Almer > --- > libavcodec/avpacket.c | 5 - > 1 file changed, 4 insertion

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avpacket: fix leaks when copying side data if src == dst

2017-09-23 Thread James Almer
On 9/21/2017 7:04 PM, James Almer wrote: > The scenario makes no sense and produces all kinds of memory leaks. > Return 0 instead of an error as the process is pretty much a nop. > > Signed-off-by: James Almer > --- > libavcodec/avpacket.c | 12 ++-- > 1 file changed, 6 insertions(+), 6

Re: [FFmpeg-devel] [PATCH 3/3 v2] avfilter/interlace: add support for 10 and 12 bit

2017-09-23 Thread Michael Niedermayer
On Tue, Sep 19, 2017 at 10:35:30PM +0200, Thomas Mundt wrote: > 2017-09-19 17:53 GMT+02:00 James Almer : > > > On 9/19/2017 5:02 AM, Thomas Mundt wrote: > > > 2017-09-19 4:09 GMT+02:00 James Almer : > > > > > >> On 9/18/2017 10:41 PM, Thomas Mundt wrote: > > >>> I tried to set up MIPS compiler for

Re: [FFmpeg-devel] [PATCH 2/2] avformat/mxfdec: use the common packet pts setter function for opatom files

2017-09-23 Thread Marton Balint
On Thu, 14 Sep 2017, Tomas Härdin wrote: On 2017-09-13 21:31, Marton Balint wrote: On Fri, 8 Sep 2017, Michael Niedermayer wrote: On Thu, Sep 07, 2017 at 05:11:40PM +0200, Marton Balint wrote: Fixes ticket #6631. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 12 +++- 1

Re: [FFmpeg-devel] [PATCH] swscale_unscaled: fix DITHER_COPY macro, use it only for dst_depth == 8

2017-09-23 Thread Mateusz
W dniu 2017-09-23 o 17:01, Michael Niedermayer pisze: > On Fri, Sep 22, 2017 at 02:10:01AM +0200, Mateusz wrote: >> To reduce bit depth in planar YUV or gray pixel formats ffmpeg uses >> DITHER_COPY macro. >> Now it makes images greener and with visible dither pattern. >> >> In my opinion there is

Re: [FFmpeg-devel] [PATCH 1/2] libavfilter/scale: More descriptive in/ref/out logging

2017-09-23 Thread Ronald S. Bultje
Hi Kevin, On Sat, Sep 23, 2017 at 2:22 AM, Kevin Mark wrote: > Hey Ronald, > > Was this able to solve the issue for you? > > On Mon, Jul 24, 2017 at 6:27 AM, Kevin Mark wrote: > > Hi Ronald, > > > > On Wed, Jul 19, 2017 at 3:44 AM, Ronald S. Bultje > wrote: > >> But my grep (Mac) has no -P opt

[FFmpeg-devel] [PATCH 1/2] movenc: Add an option for enabling negative CTS offsets

2017-09-23 Thread Jan Ekström
From: Martin Storsjö This reduces the need for an edit list; streams that start with e.g. dts=-1, pts=0 can be encoded as dts=0, pts=0 (which is valid in mov/mp4) by shifting the dts values of all packets forward. This avoids the need for edit lists for such streams (while they still are needed f

[FFmpeg-devel] [PATCH 2/2] movenc-test: Add tests for negative cts offsets

2017-09-23 Thread Jan Ekström
From: Martin Storsjö Signed-off-by: Martin Storsjö --- libavformat/tests/movenc.c | 19 +++ tests/ref/fate/movenc | 11 +++ 2 files changed, 30 insertions(+) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 7a66395efd..8e59b74259 100644 --

Re: [FFmpeg-devel] libavcodec/als: remove check for predictor order of a block

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 01:54:27PM +0530, Umair Khan wrote: > On Thu, Sep 21, 2017 at 6:30 PM, Paul B Mahol wrote: > > On 9/21/17, Umair Khan wrote: > >> Hi Ronald, > >> > >> On Mon, Sep 11, 2017 at 10:27 PM, Ronald S. Bultje > >> wrote: > >>> Hi Umair, > >>> > >>> On Mon, Sep 11, 2017 at 4:06 A

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/vf_fps: clean-up filter options

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 08:52:26AM +0200, Tobias Rapp wrote: > On 22.09.2017 01:58, Michael Niedermayer wrote: > >On Thu, Sep 21, 2017 at 04:55:51PM +0200, Tobias Rapp wrote: > >>Align order of "start_time" option to documentation and add missing > >>AV_OPT_FLAG_FILTERING_PARAM flag. Fix indent of

Re: [FFmpeg-devel] [PATCH] option: allow to set slice_flags to video decoder

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 06:41:44AM +, Li, Zhong wrote: > > -Original Message- > > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > > Of Michael Niedermayer > > Sent: Friday, September 22, 2017 6:30 AM > > To: FFmpeg development discussions and patches > > > > Sub

Re: [FFmpeg-devel] [PATCH] swscale_unscaled: fix DITHER_COPY macro, use it only for dst_depth == 8

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 02:10:01AM +0200, Mateusz wrote: > To reduce bit depth in planar YUV or gray pixel formats ffmpeg uses > DITHER_COPY macro. > Now it makes images greener and with visible dither pattern. > > In my opinion there is no point to use dither tables for destination bit > depth

Re: [FFmpeg-devel] [PATCH] change of deprecated log to debug level

2017-09-23 Thread Michael Niedermayer
On Fri, Sep 22, 2017 at 08:20:24AM +0200, Thomas Hartwig wrote: > Attached is the clean patchfile. I want to give some small > background: the problem happens in javacpp. It looks like there is a > problem handling pixelformats not correct at all when used for pixel > grabbing. This is why I mentio

Re: [FFmpeg-devel] [PATCHv13] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-09-23 Thread Michael Niedermayer
On Sat, Sep 23, 2017 at 12:28:01AM -0700, Jorge Ramirez-Ortiz wrote: > On 09/22/2017 11:49 PM, wm4 wrote: > >On Wed, 20 Sep 2017 18:55:40 -0700 > >Jorge Ramirez-Ortiz wrote: > > > >> This patchset enhances Alexis Ballier's original patch and validates > >> it using Qualcomm's Venus hardwar

Re: [FFmpeg-devel] [PATCH] configure: Fix DEF file post-processing with LTO enabled.

2017-09-23 Thread Kacper Michajlow
2017-09-08 2:52 GMT+02:00 Michael Niedermayer : > On Wed, Sep 06, 2017 at 08:03:18PM +0200, Kacper Michajlow wrote: > > 2017-08-22 21:26 GMT+02:00 Kacper Michajłow : > > > > > With LTO enabled exported symbol entry looks like: > > > av_audio_convert @3 DATA > > > > > > In order to maintain valid f

Re: [FFmpeg-devel] [PATCH 2/2] opusenc: (WIP) add a new psychoacoustic system for the native Opus encoder

2017-09-23 Thread Rostislav Pehlivanov
On 23 September 2017 at 03:08, Ricardo Constantino wrote: > On 23 September 2017 at 00:46, Rostislav Pehlivanov > wrote: > > > On 12 April 2017 at 23:26, Rostislav Pehlivanov > > wrote: > > > > > > > > > > Here's the latest version, which I consider to be non-WIP now. > > I plan to push it tomo

Re: [FFmpeg-devel] [PATCHv13] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-09-23 Thread Jorge Ramirez-Ortiz
On 09/22/2017 11:49 PM, wm4 wrote: On Wed, 20 Sep 2017 18:55:40 -0700 Jorge Ramirez-Ortiz wrote: This patchset enhances Alexis Ballier's original patch and validates it using Qualcomm's Venus hardware (driver recently landed upstream [1]). Pushed to master. thanks! will add D