[FFmpeg-devel] [PATCH v22] lavf/movenc: Add palette to video sample description

2016-02-23 Thread Mats Peterson
Some simplifications. -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From bf7ca20a730fb402b595945773d543f06f6d8c0e Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Tue, 23 Feb 2016 08:58:58 +0100 Subject: [PATCH v22] lavf/movenc: Add palette to video sample description --- libavformat/mo

Re: [FFmpeg-devel] [PATCH]concatdec: measure duration when it is not available

2016-02-23 Thread Bodecs Bela
ping 2016.02.17. 14:13 keltezéssel, Bodecs Bela írta: 2016.02.16. 10:42 keltezéssel, Nicolas George írta: L'octidi 28 pluviôse, an CCXXIV, Bodecs Bela a écrit : Do you have any suggestion for me what to do now? Please give me a hint where to find this bug or should I open a trac ticket for

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread Matthieu Bouron
On Mon, Feb 22, 2016 at 01:08:49PM +0100, Michael Niedermayer wrote: > On Mon, Feb 22, 2016 at 12:20:36PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > [...] > > +codec = (*env)->NewObject(env, jfields.mediacodec_list_class, > > jfields.init_id, 0); > > +if (!codec) {

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread Matthieu Bouron
On Mon, Feb 22, 2016 at 02:55:06PM +0100, wm4 wrote: > On Mon, 22 Feb 2016 12:20:36 +0100 > Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > --- > > ... > > Some remarks: > > - The qcom stuff should probably be moved into its own source file, > because it's a lot of code, but self

Re: [FFmpeg-devel] [PATCH v22] lavf/movenc: Add palette to video sample description

2016-02-23 Thread Moritz Barsnick
On Tue, Feb 23, 2016 at 09:00:02 +0100, Mats Peterson wrote: > Some simplifications. Thank you for letting us take part in the commits to your local git clone, though that's not the list I subscribed to. You will share the final patch with us when it's ready for discussion, will you? Moritz J

Re: [FFmpeg-devel] [PATCH v22] lavf/movenc: Add palette to video sample description

2016-02-23 Thread Mats Peterson
Moritz Barsnick skrev: (23 februari 2016 10:40:04 CET) >On Tue, Feb 23, 2016 at 09:00:02 +0100, Mats Peterson wrote: >> Some simplifications. > >Thank you for letting us take part in the commits to your local git >clone, though that's not the list I subscribed to. You will share the >final patch w

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread wm4
On Tue, 23 Feb 2016 09:53:43 +0100 Matthieu Bouron wrote: > On Mon, Feb 22, 2016 at 01:08:49PM +0100, Michael Niedermayer wrote: > > On Mon, Feb 22, 2016 at 12:20:36PM +0100, Matthieu Bouron wrote: > > > From: Matthieu Bouron > > [...] > > > +codec = (*env)->NewObject(env, jfields.

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread wm4
On Mon, 22 Feb 2016 12:20:36 +0100 Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > +FFAMediaFormat *ff_AMediaFormat_new() > +{ > +int attached = 0; That's C++, not C. In C it needs to be *ff_AMediaFormat_new(void). An empty argument list means that the argument list is unknown a

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread wm4
On Tue, 23 Feb 2016 10:21:10 +0100 Matthieu Bouron wrote: > On Mon, Feb 22, 2016 at 02:55:06PM +0100, wm4 wrote: > > On Mon, 22 Feb 2016 12:20:36 +0100 > > Matthieu Bouron wrote: > > > > > From: Matthieu Bouron > > > > > > --- > > > ... > > > > Some remarks: > > > > - The qcom stuff sho

[FFmpeg-devel] [PATCH] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK

2016-02-23 Thread Mats Peterson
-- Mats Peterson http://matsp888.no-ip.org/~mats/ >From 33bc5dc50f5435424503df4c1060e1c7d52fcf16 Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Tue, 23 Feb 2016 11:58:26 +0100 Subject: [PATCH] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK --- libavformat/riffenc.c |4 +++- 1 file changed,

Re: [FFmpeg-devel] [PATCH] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 11:59:42AM +0100, Mats Peterson wrote: > > -- > Mats Peterson > http://matsp888.no-ip.org/~mats/ > riffenc.c |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > 17e1a0cb4c607db552287f6b5b2181720eff42c4 > 0001-lavf-riffenc-Handle-AV_PIX_FMT_MONOBLACK.patch >

[FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavformat/riffenc.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c index b6f4b67..1dd7971 100644 --- a/libavformat/riffenc.c +++ b/libavformat/riffenc.c @@ -241,11 +241,14 @@ void

Re: [FFmpeg-devel] [PATCH] lavc/utvideodec: prevent possible signed overflow

2016-02-23 Thread Ronald S. Bultje
Hi, On Mon, Feb 22, 2016 at 11:34 PM, Ganesh Ajjanagadde wrote: > Doing slice_end - slice_start is unsafe and can lead to undefined behavior > until slice_end has been properly sanitized. > > Signed-off-by: Ganesh Ajjanagadde > --- > libavcodec/utvideodec.c | 4 ++-- > 1 file changed, 2 insert

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound uninitiated. Mats ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mail

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 01:41 PM, Mats Peterson wrote: On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound uninitiated. Mats ___ ffmpeg-devel mailing list ff

[FFmpeg-devel] [PATCH] vp9: add superframe merging bitstream filter.

2016-02-23 Thread Ronald S. Bultje
Fixes ticket 4313. --- ffmpeg.c| 3 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/vp9_superframe_bsf.c | 189 libavformat/ivfenc.c| 13 +++ libavformat/matroskaenc.c

Re: [FFmpeg-devel] [PATCH v2] Add GBRAP12 pixel format

2016-02-23 Thread Carl Eugen Hoyos
Michael Niedermayer niedermayer.cc> writes: > i think a planar_rgb12le/be_to_a() is missing > > > its also missing for 16bit i think > (if someone has a testcase for that ...) I created ticket #5264 with a testcase. Carl Eugen ___ ffmpeg-devel ma

Re: [FFmpeg-devel] [PATCH]libpostproc: Fix an aliasing violation

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 07:58:52AM +0100, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes ticket #5259 for me. > > Please review (including the subject), Carl Eugen patch ok, the problem is alignment not aliasing please also backport this [...] -- Michael GnuPG fingerprint: 9FF212

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: > On 02/23/2016 01:11 PM, Michael Niedermayer wrote: > >Signed-off-by: Michael Niedermayer > > When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound > uninitiated. the pix_fmt describes the decoder output and encoder inpu

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 01:11 PM, Michael Niedermayer wrote: +enum AVPixelFormat pix_fmt = enc->pix_fmt; +if (pix_fmt == AV_PIX_FMT_NONE && enc->bits_per_coded_sample == 1) +pix_fmt = AV_PIX_FMT_MONOWHITE; When is pix_fmt AV_PIX_FMT_NONE in this context? And what

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 03:54 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound uninitiated. the pix_fmt

Re: [FFmpeg-devel] [PATCH]libpostproc: Fix an aliasing violation

2016-02-23 Thread Carl Eugen Hoyos
Michael Niedermayer niedermayer.cc> writes: > On Tue, Feb 23, 2016 at 07:58:52AM +0100, Carl Eugen Hoyos wrote: > > Hi! > > > > Attached patch fixes ticket #5259 for me. > > > > Please review (including the subject), Carl Eugen > > patch ok, the problem is alignment not aliasing Pushed with t

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 03:54 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound uninitiated. the pix_fmt

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 03:54 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer When is pix_fmt AV_PIX_FMT_NONE in this context? Sorry if I sound uninitiated. the pix_fmt

Re: [FFmpeg-devel] [PATCH] avfilter/avf_showcqt: use lrint

2016-02-23 Thread Muhammad Faiz
On Tue, Feb 23, 2016 at 4:41 AM, Michael Niedermayer wrote: > On Tue, Feb 23, 2016 at 01:25:56AM +0700, Muhammad Faiz wrote: >> Signed-off-by: Muhammad Faiz >> --- >> libavfilter/avf_showcqt.c | 90 >> +++ >> 1 file changed, 45 insertions(+), 45 delet

[FFmpeg-devel] [PATCH]lavf/img2enc: Allow to reverse frame order

2016-02-23 Thread Carl Eugen Hoyos
Hi! As requested on ffmpeg-user. Please comment, Carl Eugen diff --git a/doc/muxers.texi b/doc/muxers.texi index f2ad7fe..6ccbab1 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -522,6 +522,10 @@ overwritten with new images. Default value is 0. @item strftime If set to 1, expand the filen

[FFmpeg-devel] [PATCH v2] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK

2016-02-23 Thread Mats Peterson
I don't know what I was thinking. Dazed and confused. Here's a new version that includes your changes. -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From 949721054447d59957f6567bea032384f9362a3d Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Tue, 23 Feb 2016 17:17:12 +0100 Subject: [PA

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 05:23 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 04:14:09PM +0100, Mats Peterson wrote: On 02/23/2016 03:54 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: On 02/23/2016 01:11 PM, Michael Niedermayer wrote: Signed-off-by:

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 04:14:09PM +0100, Mats Peterson wrote: > On 02/23/2016 03:54 PM, Michael Niedermayer wrote: > >On Tue, Feb 23, 2016 at 01:41:54PM +0100, Mats Peterson wrote: > >>On 02/23/2016 01:11 PM, Michael Niedermayer wrote: > >>>Signed-off-by: Michael Niedermayer > >> > >>When is pix_

Re: [FFmpeg-devel] [PATCH]lavf/img2enc: Allow to reverse frame order

2016-02-23 Thread Ronald S. Bultje
Hi, On Tue, Feb 23, 2016 at 10:39 AM, Carl Eugen Hoyos wrote: > Hi! > > As requested on ffmpeg-user. I'm a little ambivalent to this. Let me explain. You can easily fix this with a shell script that creates links from img-{1000...1}.jpg to img_2_{1...1000}.jpg and deletes them after the ffmpeg

Re: [FFmpeg-devel] [PATCH v2] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 05:18:40PM +0100, Mats Peterson wrote: > I don't know what I was thinking. Dazed and confused. Here's a new > version that includes your changes. > > -- > Mats Peterson > http://matsp888.no-ip.org/~mats/ > riffenc.c |7 ++- > 1 file changed, 6 insertions(+), 1 de

Re: [FFmpeg-devel] [PATCH v2] lavf/riffenc: Handle AV_PIX_FMT_MONOBLACK

2016-02-23 Thread Mats Peterson
On 02/23/2016 06:00 PM, Michael Niedermayer wrote: On Tue, Feb 23, 2016 at 05:18:40PM +0100, Mats Peterson wrote: I don't know what I was thinking. Dazed and confused. Here's a new version that includes your changes. -- Mats Peterson http://matsp888.no-ip.org/~mats/ riffenc.c |7 ++

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 05:23 PM, Michael Niedermayer wrote: 2. You say that demuxers might not set the pixel format. This is on the muxing side though. Isn't the pixel format always set when muxing? theres no guratee that its set for the muxer there could be demuxer -> muxer with no decoder as well but

Re: [FFmpeg-devel] [PATCH] lavc/lavf: transmit stream_id information for mpegts KLV data packets

2016-02-23 Thread Stefano Sabatini
On date Saturday 2016-02-20 20:25:18 +0100, Stefano Sabatini encoded: > On date Saturday 2016-02-13 21:06:23 +0100, Marton Balint encoded: > > > > On Sat, 13 Feb 2016, Stefano Sabatini wrote: > > > > >>Subject: [PATCH] lavc/lavf: transmit stream_id information for mpegts KLV > > >>data > > >> pa

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

2016-02-23 Thread Mats Peterson
On 02/23/2016 06:50 PM, Mats Peterson wrote: On 02/23/2016 05:23 PM, Michael Niedermayer wrote: 2. You say that demuxers might not set the pixel format. This is on the muxing side though. Isn't the pixel format always set when muxing? theres no guratee that its set for the muxer there could be

Re: [FFmpeg-devel] [PATCH] lavf/mux: do not fail in case of non monotonically increasing DTS values for data packets

2016-02-23 Thread Stefano Sabatini
On date Saturday 2016-02-13 18:46:55 +0100, Stefano Sabatini encoded: > On date Friday 2015-05-01 19:10:17 +0200, Stefano Sabatini encoded: > > On date Thursday 2015-04-30 16:24:08 +0200, Michael Niedermayer encoded: > > > On Thu, Apr 30, 2015 at 02:20:52PM +0200, Stefano Sabatini wrote: > > > > Di

Re: [FFmpeg-devel] Fwd: Fwd: libavformat/segment : add option to increment timecode

2016-02-23 Thread Stefano Sabatini
On date Friday 2016-02-19 14:04:12 +0100, Martin Vignali encoded: > 2016-02-15 2:35 GMT+01:00 Stefano Sabatini : [...] > > > +err = av_timecode_init_from_string(&tc, rate, > > tcr->value, s); > > > +if (err < 0) { > > > +av_log(s, AV_L

Re: [FFmpeg-devel] Fwd: Fwd: libavformat/segment : add option to increment timecode

2016-02-23 Thread Martin Vignali
2016-02-23 19:41 GMT+01:00 Stefano Sabatini : > On date Friday 2016-02-19 14:04:12 +0100, Martin Vignali encoded: > > 2016-02-15 2:35 GMT+01:00 Stefano Sabatini : > [...] > > > > +err = av_timecode_init_from_string(&tc, rate, > > > tcr->value, s); > > > > +i

Re: [FFmpeg-devel] [PATCH] lavf/mux: do not fail in case of non monotonically increasing DTS values for data packets

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 07:34:16PM +0100, Stefano Sabatini wrote: > On date Saturday 2016-02-13 18:46:55 +0100, Stefano Sabatini encoded: > > On date Friday 2015-05-01 19:10:17 +0200, Stefano Sabatini encoded: > > > On date Thursday 2015-04-30 16:24:08 +0200, Michael Niedermayer encoded: > > > > On

[FFmpeg-devel] [PATCH] avutil/md5: fix unaligned loads

2016-02-23 Thread James Almer
Signed-off-by: James Almer --- This makes ubsan happier, removing hundreds of runtime errors as seen in http://fatebeta.ffmpeg.org/report/x86_64-archlinux-gcc-ubsan/20160216235604 Tested on x86 and benched with no apparent speed loss, but the more people bench it the better as it's a very importan

Re: [FFmpeg-devel] GPL license violation

2016-02-23 Thread Andrea Lazzarotto
2016-02-21 21:39 GMT+01:00 Andrea Lazzarotto : > I recently discovered a proprietary software violating multiple licenses > of several open source projects, including Mplayer, FFmpeg and XviD. > Unfortunately, the traffic of this ML is too high for me, therefore I am unsubscribing. I would apprec

Re: [FFmpeg-devel] [PATCH v2] Add GBRAP12 pixel format

2016-02-23 Thread Michael Niedermayer
On Mon, Feb 08, 2016 at 09:40:10PM +, Kieran Kunhya wrote: > --- > libavcodec/utils.c| 2 ++ > libavutil/pixdesc.c | 28 > libavutil/pixfmt.h| 4 > libavutil/version.h | 2 +- > libswscale/input.c| 4

Re: [FFmpeg-devel] [PATCH v2] Add GBRAP12 pixel format

2016-02-23 Thread Michael Niedermayer
On Tue, Feb 23, 2016 at 02:27:49PM +, Carl Eugen Hoyos wrote: > Michael Niedermayer niedermayer.cc> writes: > > > i think a planar_rgb12le/be_to_a() is missing > > > > > > its also missing for 16bit i think > > (if someone has a testcase for that ...) > > I created ticket #5264 with a te

[FFmpeg-devel] [PATCH v23] lavf/movenc: Add palette to video sample description

2016-02-23 Thread Mats Peterson
Store data in MOVTrack instead of MOVMuxContext. -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From a48c2560078414aa32e61e4de33f1517a0aa34f7 Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Wed, 24 Feb 2016 04:16:34 +0100 Subject: [PATCH v23] lavf/movenc: Add palette to video sample descr

[FFmpeg-devel] [PATCH v24] lavf/movenc: Add palette to video sample description

2016-02-23 Thread Mats Peterson
Set track->is_unaligned_qt_rgb in mov_write_header() instead of mov_write_packet(). -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From f42b72f5663af35c1b120903c7fdf601cbcff972 Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Wed, 24 Feb 2016 04:52:20 +0100 Subject: [PATCH v24] lavf/moven

[FFmpeg-devel] [PATCH] lavf/segment: provide a virtual AVIOContext representing all the segments

2016-02-23 Thread Rodger Combs
This allows the use of muxers like matroska, which attempt to seek even when an AVIOContext doesn't set `seekable`, without concern for a rouge seek leading the muxer to overwrite the wrong data in a later segment. --- doc/muxers.texi | 17 libavformat/segment.c | 276 +