[FFmpeg-devel] [PATCH 2/2 v3] lavc/rawdec: Retrieve nut palette in packets

2016-02-13 Thread Mats Peterson
Small fix. -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From d292ac7030c5e46eb92a1dd13ace1a000c0fb16f Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Sun, 14 Feb 2016 08:11:27 +0100 Subject: [PATCH 2/2 v3] lavc/rawdec: Retrieve nut palette in packets --- libavcodec/rawdec.c |9 +++

[FFmpeg-devel] [PATCH 2/2 v2] lavc/rawdec: Retrieve nut palette in packets

2016-02-13 Thread Mats Peterson
Since we're creating a new frame due to the alignment requirement of 16 bytes, we'll have to retrieve the nut palette from the end of the packet data. Mats -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From c5c3c84be927c8dc04708746aa725b73cf1659b5 Mon Sep 17 00:00:00 2001 From: Mats Peter

Re: [FFmpeg-devel] [PATCH 2/2] lavc/rawdec: Retrieve nut palette in packets

2016-02-13 Thread Mats Peterson
On 02/14/2016 07:05 AM, Mats Peterson wrote: This one is incorrect. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH 2/2] lavc/rawdec: Retrieve nut palette in packets

2016-02-13 Thread Mats Peterson
Since we're creating a new frame due to the alignment requirement of 16 bytes, we'll have to retrieve the nut palette from the end of the packet data. Mats >From 9627c56c50f5928e04345e5e62b123f2dbe4109c Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Sun, 14 Feb 2016 07:01:23 +0100 Subject:

[FFmpeg-devel] [PATCH 1/2] lavc/rawdec: Remove temporary switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
Old stuff, new shape. -- Mats Peterson http://matsp888.no-ip.org/~mats/ >From 28d176395cb1ad7f1e4ee3120c5d0404eb45a93b Mon Sep 17 00:00:00 2001 From: Mats Peterson Date: Sun, 14 Feb 2016 06:50:00 +0100 Subject: [PATCH 1/2] lavc/rawdec: Remove temporary switching code for 1 bpp AVI without a pale

[FFmpeg-devel] [PATCH] x86/vc1dsp: Port vc1_*_hor_16b_shift2 to NASM format

2016-02-13 Thread Timothy Gu
--- libavcodec/x86/vc1dsp.asm | 92 - libavcodec/x86/vc1dsp_mmx.c | 61 -- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/libavcodec/x86/vc1dsp.asm b/libavcodec/x86/vc1dsp.asm index 91a1991..2e9f067 100644

[FFmpeg-devel] [PATCH v4] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Mark Reid
--- libavcodec/dnxhd_parser.c | 7 +++ libavcodec/dnxhddata.c| 8 libavcodec/dnxhddata.h| 18 +- libavcodec/dnxhddec.c | 12 libavformat/dnxhddec.c| 7 --- 5 files changed, 36 insertions(+), 16 deletions(-) diff --git a/libavcodec/d

[FFmpeg-devel] [PATCH v4] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Mark Reid
changes since v3: fixed inconsistent indentation. Mark Reid (1): libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats libavcodec/dnxhd_parser.c | 7 +++ libavcodec/dnxhddata.c| 8 libavcodec/dnxhddata.h| 18 +- libavcodec/dn

[FFmpeg-devel] [PATCH 3/3] lavf/mpjpeg: do not include CRLF preceding boundary as, part of the returned frame

2016-02-13 Thread Alexander Agranovsky
From b2ef061db32933e896dbeecb68268a62c47d6e0a Mon Sep 17 00:00:00 2001 From: Alex Agranovsky Date: Sat, 13 Feb 2016 23:16:45 -0500 Subject: [PATCH 3/3] lavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame Signed-off-by: Alex Agranovsky --- libavformat/mpjpegdec.c

[FFmpeg-devel] [PATCH 2/3] lavf/mpjpeg: probe should not depend on Content-Length

2016-02-13 Thread Alexander Agranovsky
From 83c0b5f7a64e4c47801ee2f94635eea5ea144eb1 Mon Sep 17 00:00:00 2001 From: Alex Agranovsky Date: Sat, 13 Feb 2016 23:15:20 -0500 Subject: [PATCH 2/3] lavf/mpjpeg: probe should not depend on Content-Length MIME header being present Signed-off-by: Alex Agranovsky --- libavformat/mpjpegdec.c

[FFmpeg-devel] [PATCH 1/3] lavf/mpjpeg: Trim quotes on MIME boundary, if present.

2016-02-13 Thread Alexander Agranovsky
From f2d8bc033cc6ab6e9a42472c99bdfce8305a13db Mon Sep 17 00:00:00 2001 From: Alex Agranovsky Date: Fri, 12 Feb 2016 12:59:29 -0500 Subject: [PATCH 1/3] lavf/mpjpeg: Trim quotes on MIME boundary, if present. Fixes 5023 Signed-off-by: Alex Agranovsky --- libavformat/mpjpegdec.c | 7 +++ 1

Re: [FFmpeg-devel] Regarding the padding between the video data and the palette in nut packets

2016-02-13 Thread Mats Peterson
On 02/14/2016 05:42 AM, Mats Peterson wrote: I have no problem with the padding *between* the video data and the palette in nut packets. It's just a matter of rounding up to the nearest modulo 4 byte to get the start of the palette. Mats It's important that this padding is used consistently,

[FFmpeg-devel] Regarding the padding between the video data and the palette in nut packets

2016-02-13 Thread Mats Peterson
I have no problem with the padding *between* the video data and the palette in nut packets. It's just a matter of rounding up to the nearest modulo 4 byte to get the start of the palette. Mats -- Mats Peterson http://matsp888.no-ip.org/~mats/ ___ ffm

Re: [FFmpeg-devel] [PATCH] avformat/asfenc: write group_mutual_exclusion_objects on multiple languages

2016-02-13 Thread Marton Balint
On Sun, 14 Feb 2016, Michael Niedermayer wrote: On Sun, Feb 07, 2016 at 11:02:56PM +0100, Marton Balint wrote: Improves streaming compatibility with Windows Media Services. Also tested for compatilbility in Windows Media Player, Windows Media ASF Viewer and VLC. [..] would this make a sub

[FFmpeg-devel] [PATCH 3/3] compat/os2threads: split long lines

2016-02-13 Thread KO Myung-Hun
--- compat/os2threads.h | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/compat/os2threads.h b/compat/os2threads.h index f2e5d9f..5767190 100644 --- a/compat/os2threads.h +++ b/compat/os2threads.h @@ -70,7 +70,10 @@ static void thread_entry(void *arg) thr

[FFmpeg-devel] [PATCH] Improve os2threads

2016-02-13 Thread KO Myung-Hun
Hi/2. These are patches to improve os2threads. Review, please... [PATCH 1/3] compat/os2threads: Improve pthread_cond_xxx() functions [PATCH 2/3] compat/os2threads: support the return value of joined [PATCH 3/3] compat/os2threads: split long lines ___ f

[FFmpeg-devel] [PATCH 1/3] compat/os2threads: Improve pthread_cond_xxx() functions

2016-02-13 Thread KO Myung-Hun
1. Manipulate waiting count in pthread_cond_wait() 2. Use builtin atomic functions to manipulate waiting count --- compat/os2threads.h | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/compat/os2threads.h b/compat/os2threads.h index 7c0fe13..b461f83 100644 --

[FFmpeg-devel] [PATCH 2/3] compat/os2threads: support the return value of joined thread

2016-02-13 Thread KO Myung-Hun
--- compat/os2threads.h | 39 ++- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/compat/os2threads.h b/compat/os2threads.h index b461f83..f2e5d9f 100644 --- a/compat/os2threads.h +++ b/compat/os2threads.h @@ -35,9 +35,15 @@ #include #include

Re: [FFmpeg-devel] [PATCH] x86/vf_blend: Add SSE2 optimization for divide

2016-02-13 Thread Timothy Gu
On Sat, Feb 13, 2016 at 07:21:25PM -0800, Timothy Gu wrote: > --- > libavfilter/x86/vf_blend.asm| 30 ++ > libavfilter/x86/vf_blend_init.c | 2 ++ > 2 files changed, 32 insertions(+) Locally added commit message: 4.5x faster than C float version with autovec

[FFmpeg-devel] [PATCH] vf_blend: Use integers for divide mode

2016-02-13 Thread Timothy Gu
2.5x faster for 8-bit mode without autovectorization in GCC, 2x slower with it on x86. However, since the platforms we enable GCC autovectorization on most probably has support for SSE2 optimization (added in the subsequent commit), this commit should in general do good. --- libavfilter/vf_blend.c

[FFmpeg-devel] [PATCH] x86/vf_blend: Add SSE2 optimization for divide

2016-02-13 Thread Timothy Gu
--- libavfilter/x86/vf_blend.asm| 30 ++ libavfilter/x86/vf_blend_init.c | 2 ++ 2 files changed, 32 insertions(+) diff --git a/libavfilter/x86/vf_blend.asm b/libavfilter/x86/vf_blend.asm index a5ea74c..303ea3a 100644 --- a/libavfilter/x86/vf_blend.asm +++ b/libav

Re: [FFmpeg-devel] [PATCH] x86/vf_blend: Add SSE4.1 optimization for divide

2016-02-13 Thread Timothy Gu
I've already answered these on IRC but for the sake of completion I'll include the answers here as well. On Sat, Feb 13, 2016 at 10:26:58PM -0300, James Almer wrote: > On 2/13/2016 9:27 PM, Timothy Gu wrote: > > --- > > > > The reason why this function uses SSE4.1 is the roundps instruction. Woul

Re: [FFmpeg-devel] [PATCH] avformat/asfenc: write group_mutual_exclusion_objects on multiple languages

2016-02-13 Thread Michael Niedermayer
On Sun, Feb 07, 2016 at 11:02:56PM +0100, Marton Balint wrote: > Improves streaming compatibility with Windows Media Services. Also tested for > compatilbility in Windows Media Player, Windows Media ASF Viewer and VLC. > > Signed-off-by: Marton Balint > --- > libavformat/asf.c| 8 >

[FFmpeg-devel] [PATCH] vf_blend: Reduce number of arguments for kernel function

2016-02-13 Thread Timothy Gu
--- libavfilter/blend.h | 2 +- libavfilter/vf_blend.c | 27 ++- libavfilter/x86/vf_blend.asm| 3 +-- libavfilter/x86/vf_blend_init.c | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libavfilter/blend.h b/libavfilter/blend

Re: [FFmpeg-devel] [PATCH 12/12] ffmpeg: remove hardcoded 'now' creation_time support

2016-02-13 Thread Marton Balint
On Sat, 6 Feb 2016, Marton Balint wrote: Every date parsing routine now uses av_parse_time which handles 'now' and provides greater precision as well. This change also enables the segmenter muxer to set the proper 'now' creation time at the beginning of each segment. Signed-off-by: Marton Bali

Re: [FFmpeg-devel] [PATCH 01/12] avutil/parseutils: use microsecond precision when parsing "now" in av_parse_time()

2016-02-13 Thread Marton Balint
On Wed, 10 Feb 2016, Marton Balint wrote: On Sun, 7 Feb 2016, Marton Balint wrote: On Sun, 7 Feb 2016, Michael Niedermayer wrote: On Sat, Feb 06, 2016 at 08:13:12PM +0100, Marton Balint wrote: Use av_gettime() instead of time(0) for querying current time. Signed-off-by: Marton Balint -

[FFmpeg-devel] [PATCH] LICENSE: Thorough editing

2016-02-13 Thread Timothy Gu
The changes in "Incompatible libraries" section are strictly based on what our configure script says. --- LICENSE.md | 64 +- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 0c53d0f..a70f486 1

Re: [FFmpeg-devel] [PATCH v3] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 04:35:24PM -0800, Mark Reid wrote: > --- > libavcodec/dnxhd_parser.c | 7 +++ > libavcodec/dnxhddata.c| 8 > libavcodec/dnxhddata.h| 18 +- > libavcodec/dnxhddec.c | 12 > libavformat/dnxhddec.c| 7 --- > 5 fi

Re: [FFmpeg-devel] [PATCH] x86/vf_blend: Add SSE4.1 optimization for divide

2016-02-13 Thread James Almer
On 2/13/2016 9:27 PM, Timothy Gu wrote: > --- > > The reason why this function uses SSE4.1 is the roundps instruction. Would > love to find a way to truncate a float to integer in SSE2. > > --- > libavfilter/x86/vf_blend.asm| 32 > libavfilter/x86/vf_blend_in

Re: [FFmpeg-devel] [PATCH 2/2] avformat/img2enc: disable atomic file creation by default

2016-02-13 Thread Marton Balint
On Sat, 13 Feb 2016, Marton Balint wrote: On Thu, 11 Feb 2016, Marton Balint wrote: Currently it is broken when explicitly using the file protocol, it uses an insecure temporary file name, and in commit b4431c80 disabling the option by default was already considered. Also it is not very con

Re: [FFmpeg-devel] [PATCH 1/2] avformat/img2enc: return error if image rename fails

2016-02-13 Thread Marton Balint
On Thu, 11 Feb 2016, Michael Niedermayer wrote: On Thu, Feb 11, 2016 at 02:23:10AM +0100, Marton Balint wrote: Signed-off-by: Marton Balint --- libavformat/img2enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) should be ok Applied, thanks. Marton ___

[FFmpeg-devel] [PATCH v3] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Mark Reid
--- libavcodec/dnxhd_parser.c | 7 +++ libavcodec/dnxhddata.c| 8 libavcodec/dnxhddata.h| 18 +- libavcodec/dnxhddec.c | 12 libavformat/dnxhddec.c| 7 --- 5 files changed, 36 insertions(+), 16 deletions(-) diff --git a/libavcodec/d

[FFmpeg-devel] [PATCH v3] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Mark Reid
changes since v2: removed table and enums, using defines for prefixes instead. parser now uses a inline function. Mark Reid (1): libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats libavcodec/dnxhd_parser.c | 7 +++ libavcodec/dnxhddata.c| 8

Re: [FFmpeg-devel] [PATCH] avutil: Remove x86_cpu.h

2016-02-13 Thread Timothy Gu
On Sun, Feb 07, 2016 at 09:29:23AM -0800, Timothy Gu wrote: > It is private (uninstalled) and unused. > --- > libavutil/x86_cpu.h | 1 - > 1 file changed, 1 deletion(-) > delete mode 100644 libavutil/x86_cpu.h Pushed. Timothy ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH] Add mkdir support for HLS localtime-generated segment files

2016-02-13 Thread Michael Niedermayer
On Wed, Feb 03, 2016 at 10:44:28PM +0100, Johan Ström wrote: > Hi, > > this patch adds -use_localtime_mkdir option to the HLS encoder. > Use with -use_localtime, and set -hls_segment_filename to a path > which contains a subdirectory i.e. > /some/path/%Y%m%d/%Y%m%dT%H%M%S-%s.ts > This will mkdir t

[FFmpeg-devel] [PATCH] x86/vf_blend: Add SSE4.1 optimization for divide

2016-02-13 Thread Timothy Gu
--- The reason why this function uses SSE4.1 is the roundps instruction. Would love to find a way to truncate a float to integer in SSE2. --- libavfilter/x86/vf_blend.asm| 32 libavfilter/x86/vf_blend_init.c | 6 ++ 2 files changed, 38 insertions(+) dif

Re: [FFmpeg-devel] [PATCH] avcodec: only warn about hwaccel with frame threads

2016-02-13 Thread Ronald S. Bultje
Hi, On Sat, Feb 13, 2016 at 2:38 PM, Michael Niedermayer wrote: > On Sat, Jan 23, 2016 at 11:42:54AM +0100, Hendrik Leppkes wrote: > > On Sat, Jan 23, 2016 at 10:12 AM, Andreas Cadhalpun > > wrote: > > > VLC uses hwaccel with frame threads and it works fine, but returning > > > an error here ma

Re: [FFmpeg-devel] [PATCH v2 2/2] libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

2016-02-13 Thread Mark Reid
On Fri, Feb 12, 2016 at 6:12 AM, Michael Niedermayer wrote: > On Thu, Feb 11, 2016 at 08:41:16PM -0800, Mark Reid wrote: >> --- >> libavcodec/dnxhd_parser.c | 11 +++ >> libavformat/dnxhddec.c| 7 --- >> 2 files changed, 11 insertions(+), 7 deletions(-) > > what effect on speed d

[FFmpeg-devel] [PATCH 2/2] vf_blend: Use memcpy when opacity is 0

2016-02-13 Thread Timothy Gu
For xor mode, 1.8x faster on Haswell. --- libavfilter/vf_blend.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index c24013d..599084f 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -130,6 +130,7 @@ static void blend_c

[FFmpeg-devel] [PATCH 1/2] vf_blend: Templatize identity function and use a better name

2016-02-13 Thread Timothy Gu
--- libavfilter/vf_blend.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index 2b734b4..c24013d 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -118,15 +118,21 @@ static const AVOption

Re: [FFmpeg-devel] [PATCH]levc/hevc_cabac Optimise ff_hevc_hls_residual_coding (v2)

2016-02-13 Thread Michael Niedermayer
On Wed, Feb 03, 2016 at 12:47:47PM +, John Cox wrote: > On Tue, 2 Feb 2016 12:52:15 +0100, you wrote: > > >Hi, > > > >as a motus operandi for this review, I have no time for a proper one, > >or at least not fitting with John's timeframe. I'll try to close as > >many pending discussions, and wo

Re: [FFmpeg-devel] [PATCH] lavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate contents into the AVMasteringDisplayMetadata side data.

2016-02-13 Thread Michael Niedermayer
On Mon, Feb 08, 2016 at 09:36:42AM -0800, Neil Birkbeck wrote: > I'm sending an updated patch that persists the data within the CVS > (between IRAP access units with no_rasl_output_flag=1). If this seems > like overkill, we can fallback to Hendrik's suggestion of just sending > it once. I did consi

[FFmpeg-devel] [PATCH] checkasm: Add vf_blend tests

2016-02-13 Thread Timothy Gu
--- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c | 3 ++ tests/checkasm/checkasm.h | 1 + tests/checkasm/vf_blend.c | 130 ++ 4 files changed, 135 insertions(+) create mode 100644 tests/checkasm/vf_blend.c diff --git a/tests/checkas

Re: [FFmpeg-devel] [PATCH] avutil/imgutils: av_image_get_buffer_size(): do not insert padding between stride*height and palette

2016-02-13 Thread wm4
On Sat, 13 Feb 2016 21:51:48 +0100 Michael Niedermayer wrote: > On Sat, Feb 13, 2016 at 08:46:34PM +0100, wm4 wrote: > > On Sat, 13 Feb 2016 19:38:01 +0100 > > Michael Niedermayer wrote: > > > > > This fixes the layout that is stored in pal8 nut with odd width*height > > > > > > Signed-off-b

Re: [FFmpeg-devel] [PATCH] libavdevice/dshow.c: Correct CoGetMalloc check

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 05:23:27PM +0100, FearThe1337 wrote: > Fixes a typo in a return code conditional check. > dshow.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > f75116cffe806352539bc5a90dc8fb3365a4a26e > 0001-libavdevice-dshow.c-Correct-CoGetMalloc-check.patch > From 678cb

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

2016-02-13 Thread Martin Vignali
2016-02-08 20:04 GMT+01:00 Stefano Sabatini : > On date Friday 2016-02-05 11:41:06 +0100, Martin Vignali encoded: > > 2016-01-30 10:44 GMT+01:00 Stefano Sabatini : > > > > > On date Friday 2016-01-29 17:38:13 +0100, Martin Vignali encoded: > > > > 2016-01-29 12:35 GMT+01:00 Stefano Sabatini : > >

Re: [FFmpeg-devel] [PATCH] avutil/imgutils: av_image_get_buffer_size(): do not insert padding between stride*height and palette

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 08:46:34PM +0100, wm4 wrote: > On Sat, 13 Feb 2016 19:38:01 +0100 > Michael Niedermayer wrote: > > > This fixes the layout that is stored in pal8 nut with odd width*height > > > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/avpicture.c |2 ++ > > libav

Re: [FFmpeg-devel] [PATCH v2 2/2] lavc/ccaption_dec: implement special and extended character sets

2016-02-13 Thread Clément Bœsch
On Sat, Feb 13, 2016 at 12:35:18PM -0800, Aman Gupta wrote: [...] > +static const char *charset_overrides[4][128] = > +{ > +[CCSET_BASIC_AMERICAN] = { > +[0x27] = "’", > +[0x2a] = "á", > +[0x5c] = "é", > +[0x5e] = "í", > +[0x5f] = "ó", > +[0x60] =

[FFmpeg-devel] [PATCH v2 2/2] lavc/ccaption_dec: implement special and extended character sets

2016-02-13 Thread Aman Gupta
From: Aman Gupta character sets implemented as defined in https://en.wikipedia.org/wiki/EIA-608#Characters --- libavcodec/ccaption_dec.c | 152 +- 1 file changed, 149 insertions(+), 3 deletions(-) diff --git a/libavcodec/ccaption_dec.c b/libavcodec/c

[FFmpeg-devel] [PATCH v2 1/2] lavc/ccaption_dec: do not ignore repeated character commands

2016-02-13 Thread Aman Gupta
From: Aman Gupta control codes in a cc stream can be repeated, and must be ignored. however, repeated characters must not be ignored. the code attempted to wipe prev_cmd in handle_char to allow repeated characters to be processed, but prev_cmd would previously get reset _after_ handle_char() i a

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

2016-02-13 Thread Marton Balint
On Sat, 13 Feb 2016, Stefano Sabatini wrote: Subject: [PATCH] lavc/lavf: transmit stream_id information for mpegts KLV data packets [...] Someone else wants to have a look, or should I push as is? I had a look at the mpegtsenc part as well: --- a/libavformat/mpegtsenc.c +++ b/libavfor

Re: [FFmpeg-devel] [PATCH] avutil/imgutils: av_image_get_buffer_size(): do not insert padding between stride*height and palette

2016-02-13 Thread wm4
On Sat, 13 Feb 2016 19:38:01 +0100 Michael Niedermayer wrote: > This fixes the layout that is stored in pal8 nut with odd width*height > > Signed-off-by: Michael Niedermayer > --- > libavcodec/avpicture.c |2 ++ > libavutil/imgutils.c |4 > 2 files changed, 6 insertions(+) > >

Re: [FFmpeg-devel] [PATCH] avcodec: only warn about hwaccel with frame threads

2016-02-13 Thread Michael Niedermayer
On Sat, Jan 23, 2016 at 11:42:54AM +0100, Hendrik Leppkes wrote: > On Sat, Jan 23, 2016 at 10:12 AM, Andreas Cadhalpun > wrote: > > VLC uses hwaccel with frame threads and it works fine, but returning > > an error here made it fail. > > > > This regression was introduced in commit 31741ae. > > >

Re: [FFmpeg-devel] [RFC][WIP][PATCH] avfilter: add luascript filter

2016-02-13 Thread Paul B Mahol
On 2/13/16, Stefano Sabatini wrote: > On date Thursday 2016-02-04 19:40:18 +0100, Paul B Mahol encoded: >> On 2/2/16, Paul B Mahol wrote: >> > Hi, >> > >> > patch attached. >> > >> >> Much more useful version attached. >> >> Simple demo demonstrating functionality currently missing in lavfi: > >

Re: [FFmpeg-devel] [PATCH] avcodec: only warn about hwaccel with frame threads

2016-02-13 Thread Michael Niedermayer
On Thu, Feb 11, 2016 at 11:59:31PM +0100, Michael Niedermayer wrote: > On Mon, Feb 08, 2016 at 04:35:05PM -0500, Ronald S. Bultje wrote: > > Hi, > > > > On Tue, Jan 26, 2016 at 5:23 PM, Andreas Cadhalpun < > > andreas.cadhal...@googlemail.com> wrote: > > > > > On 25.01.2016 00:53, Hendrik Leppkes

Re: [FFmpeg-devel] [PATCH 2/2] avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 05:53:17PM +0100, Stefano Sabatini wrote: > On date Saturday 2016-02-13 15:32:58 +0100, Michael Niedermayer encoded: > > This allows disabling the alignment by using a compact buffer > > > > Signed-off-by: Michael Niedermayer > > --- > > libavutil/imgutils.c |5 +

[FFmpeg-devel] [PATCH] avutil/imgutils: av_image_get_buffer_size(): do not insert padding between stride*height and palette

2016-02-13 Thread Michael Niedermayer
This fixes the layout that is stored in pal8 nut with odd width*height Signed-off-by: Michael Niedermayer --- libavcodec/avpicture.c |2 ++ libavutil/imgutils.c |4 2 files changed, 6 insertions(+) diff --git a/libavcodec/avpicture.c b/libavcodec/avpicture.c index 56435f4..cac928

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

2016-02-13 Thread Stefano Sabatini
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: > > > Disable monotonicity test for data packets. Data packets are not supposed > > >

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

2016-02-13 Thread Stefano Sabatini
On date Monday 2016-02-08 19:18:26 +0100, Stefano Sabatini encoded: > On date Friday 2016-02-05 01:15:47 +0100, Marton Balint encoded: > > > > On Thu, 4 Feb 2016, Stefano Sabatini wrote: > > > > >On date Wednesday 2016-02-03 10:18:34 +0100, Stefano Sabatini encoded: > > >[...] > > >>Note: since m

Re: [FFmpeg-devel] [RFC][WIP][PATCH] avfilter: add luascript filter

2016-02-13 Thread Stefano Sabatini
On date Thursday 2016-02-04 19:40:18 +0100, Paul B Mahol encoded: > On 2/2/16, Paul B Mahol wrote: > > Hi, > > > > patch attached. > > > > Much more useful version attached. > > Simple demo demonstrating functionality currently missing in lavfi: I toyed with this idea three years ago, and I'll

Re: [FFmpeg-devel] [PATCH 2/2] avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 05:53:17PM +0100, Stefano Sabatini wrote: > On date Saturday 2016-02-13 15:32:58 +0100, Michael Niedermayer encoded: > > This allows disabling the alignment by using a compact buffer > > > > Signed-off-by: Michael Niedermayer > > --- > > libavutil/imgutils.c |5 +

Re: [FFmpeg-devel] [PATCH] doc/protocols: document protocol_whitelist

2016-02-13 Thread Stefano Sabatini
On date Saturday 2016-02-13 17:01:59 +0100, Michael Niedermayer encoded: > Signed-off-by: Michael Niedermayer > --- > doc/protocols.texi | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/doc/protocols.texi b/doc/protocols.texi > index 05c4bdb..41b43d4 100644 > --- a

Re: [FFmpeg-devel] [PATCH 2/2] avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

2016-02-13 Thread Stefano Sabatini
On date Saturday 2016-02-13 15:32:58 +0100, Michael Niedermayer encoded: > This allows disabling the alignment by using a compact buffer > > Signed-off-by: Michael Niedermayer > --- > libavutil/imgutils.c |5 + > libavutil/version.h |2 +- > 2 files changed, 6 insertions(+), 1 delet

[FFmpeg-devel] [PATCH] libavdevice/dshow.c: Correct CoGetMalloc check

2016-02-13 Thread FearThe1337
Fixes a typo in a return code conditional check. 0001-libavdevice-dshow.c-Correct-CoGetMalloc-check.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] doc/protocols: document protocol_whitelist

2016-02-13 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- doc/protocols.texi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 05c4bdb..41b43d4 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -1,3 +1,22 @@ +@chapter Protocol Options

Re: [FFmpeg-devel] [PATCH] fate/source: Do not use GNU extensions in sed

2016-02-13 Thread Timothy Gu
On Sat, Feb 13, 2016 at 02:35:22AM +0100, Michael Niedermayer wrote: > On Fri, Feb 12, 2016 at 05:07:20PM -0800, Timothy Gu wrote: > > --- > > > > Tested on FreeBSD 10.2. > > patch should be ok Pushed, thanks. Timothy ___ ffmpeg-devel mailing list ffm

Re: [FFmpeg-devel] [PATCH] avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 04:39:29PM +0100, Michael Niedermayer wrote: > On Sat, Feb 13, 2016 at 03:22:52PM +0100, Stefano Sabatini wrote: > > On date Thursday 2016-02-11 20:49:05 +0100, Michael Niedermayer encoded: > > > This will extend the whitelist features to allow blacklisting individual > > >

Re: [FFmpeg-devel] [PATCH] avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 03:22:52PM +0100, Stefano Sabatini wrote: > On date Thursday 2016-02-11 20:49:05 +0100, Michael Niedermayer encoded: > > This will extend the whitelist features to allow blacklisting individual > > protocols and to > > explicitly force everything to be enabled. > > > > Sig

Re: [FFmpeg-devel] [PATCH 1/2] avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 04:02:06PM +0100, Stefano Sabatini wrote: > On date Saturday 2016-02-13 15:32:57 +0100, Michael Niedermayer encoded: > > Signed-off-by: Michael Niedermayer > > --- > > libavutil/imgutils.c |2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/l

Re: [FFmpeg-devel] [PATCH 1/2] avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()

2016-02-13 Thread Stefano Sabatini
On date Saturday 2016-02-13 15:32:57 +0100, Michael Niedermayer encoded: > Signed-off-by: Michael Niedermayer > --- > libavutil/imgutils.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c > index 3320664..5c28703 100644 > ---

Re: [FFmpeg-devel] [PATCH] avfilter: add loop filters

2016-02-13 Thread Stefano Sabatini
On date Friday 2016-02-12 15:28:15 +0100, Paul B Mahol encoded: > On 2/11/16, Paul B Mahol wrote: > > Hi, > > > > patch attached. > > > > Better version attached. > From d953f78bffbf3db8f0209b41b189ece12b402afa Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Thu, 11 Feb 2016 22:05:54 +010

[FFmpeg-devel] [PATCH] ffserver: NoVideo and NoAudio flags weren't cleared between streams.

2016-02-13 Thread Zalewa PL
Hi, this patch fixes a problem with parsing ffserver.conf file. If you had two streams, one with only the NoVideo flag and the other one with only the NoAudio flag then the second stream would get both flags. Best regards. RnJvbSAzZTY0OWVjMDc2OTUyY2ZkMTc0YTFmYzA4ZTVhNWE3MWNiY2NmY2JhIE1vbiBTZX

[FFmpeg-devel] [PATCH 1/2] avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()

2016-02-13 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavutil/imgutils.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 3320664..5c28703 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -370,7 +370,7 @@ int av_image_get_b

[FFmpeg-devel] [PATCH 2/2] avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

2016-02-13 Thread Michael Niedermayer
This allows disabling the alignment by using a compact buffer Signed-off-by: Michael Niedermayer --- libavutil/imgutils.c |5 + libavutil/version.h |2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 5c28703..adf6fdd

Re: [FFmpeg-devel] [PATCH] avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()

2016-02-13 Thread Stefano Sabatini
On date Thursday 2016-02-11 20:49:05 +0100, Michael Niedermayer encoded: > This will extend the whitelist features to allow blacklisting individual > protocols and to > explicitly force everything to be enabled. > > Signed-off-by: Michael Niedermayer > --- > libavutil/avstring.c | 15

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:49 PM, Mats Peterson wrote: Sorry, wm4, I got heated up here. I understand your feelings. I will try to limit the spam-like postings. Michael, given that there is no padding of the lines for pal8 in nut, I understand that it's possible to calculate the stride by dividing the pac

Re: [FFmpeg-devel] [PATCH] lavc/rawdec: Remove temporary monowhite switching code for 1 bpp raw AVI

2016-02-13 Thread Mats Peterson
On 02/13/2016 07:25 AM, Mats Peterson wrote: What it sounds like. Remove the temporary monowhite switching code for 1 bpp raw AVI. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel That is, this

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:46 PM, Mats Peterson wrote: On 02/13/2016 01:09 PM, Mats Peterson wrote: On 02/13/2016 01:03 PM, Mats Peterson wrote: On 02/13/2016 01:00 PM, Mats Peterson wrote: On 02/13/2016 12:58 PM, Mats Peterson wrote: On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:09 PM, Mats Peterson wrote: On 02/13/2016 01:03 PM, Mats Peterson wrote: On 02/13/2016 01:00 PM, Mats Peterson wrote: On 02/13/2016 12:58 PM, Mats Peterson wrote: On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:24 PM, wm4 wrote: Why are you talking with yourself on the ML? Nobody is going to read everything you post. You just replied to yourself 7 times! If you want input from others, you need to properly communicate your issues. This includes: - thinking before posting - summarizing

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread wm4
On Sat, 13 Feb 2016 13:09:48 +0100 Mats Peterson wrote: > On 02/13/2016 01:03 PM, Mats Peterson wrote: > > On 02/13/2016 01:00 PM, Mats Peterson wrote: > >> On 02/13/2016 12:58 PM, Mats Peterson wrote: > >>> On 02/13/2016 12:57 PM, Mats Peterson wrote: > On 02/13/2016 12:54 PM, Mats Pe

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:03 PM, Mats Peterson wrote: On 02/13/2016 01:00 PM, Mats Peterson wrote: On 02/13/2016 12:58 PM, Mats Peterson wrote: On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, t

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 01:00 PM, Mats Peterson wrote: On 02/13/2016 12:58 PM, Mats Peterson wrote: On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, this is not the case in written pal8 nut files

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:58 PM, Mats Peterson wrote: On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, this is not the case in written pal8 nut files nor does the nut spec say anything about that.

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:57 PM, Mats Peterson wrote: On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, this is not the case in written pal8 nut files nor does the nut spec say anything about that. Then check an odd-width nut file like the

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:54 PM, Mats Peterson wrote: On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, this is not the case in written pal8 nut files nor does the nut spec say anything about that. Then check an odd-width nut file like the one below. And FFmpeg doesn't care about specs

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:52 PM, Mats Peterson wrote: just double checked, this is not the case in written pal8 nut files nor does the nut spec say anything about that. Then check an odd-width nut file like the one below. And FFmpeg doesn't care about specs when using "-vcodec copy". The stride will be

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:50 PM, Mats Peterson wrote: On 02/13/2016 12:31 PM, Michael Niedermayer wrote: On Sat, Feb 13, 2016 at 11:44:04AM +0100, Mats Peterson wrote: On 02/13/2016 11:40 AM, Mats Peterson wrote: On 02/13/2016 11:39 AM, Paul B Mahol wrote: On 2/13/16, Mats Peterson wrote: On 02/13/2

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 12:31 PM, Michael Niedermayer wrote: On Sat, Feb 13, 2016 at 11:44:04AM +0100, Mats Peterson wrote: On 02/13/2016 11:40 AM, Mats Peterson wrote: On 02/13/2016 11:39 AM, Paul B Mahol wrote: On 2/13/16, Mats Peterson wrote: On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 11:44:04AM +0100, Mats Peterson wrote: > On 02/13/2016 11:40 AM, Mats Peterson wrote: > >On 02/13/2016 11:39 AM, Paul B Mahol wrote: > >>On 2/13/16, Mats Peterson wrote: > >>>On 02/13/2016 11:28 AM, Mats Peterson wrote: > >>Once again, how are we supposed to know how ma

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:44 AM, Mats Peterson wrote: On 02/13/2016 11:40 AM, Mats Peterson wrote: On 02/13/2016 11:39 AM, Paul B Mahol wrote: On 2/13/16, Mats Peterson wrote: On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again, how are we supposed to know how many colors the palette consists of

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:40 AM, Mats Peterson wrote: On 02/13/2016 11:39 AM, Paul B Mahol wrote: On 2/13/16, Mats Peterson wrote: On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again, how are we supposed to know how many colors the palette consists of at the end of avpkt->data? palette size = pa

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:39 AM, Paul B Mahol wrote: On 2/13/16, Mats Peterson wrote: On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again, how are we supposed to know how many colors the palette consists of at the end of avpkt->data? palette size = packet size - width*height Nope. You have to

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:29 AM, Mats Peterson wrote: Nope. You have to take the stride in account as well, not just the width and height, and it varies in nut, depending on whether you use "-vcodec copy" or "-vcodec rawvideo". Mats And you'll have to calculate the stride by subtracting the palette si

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Paul B Mahol
On 2/13/16, Mats Peterson wrote: > On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again, how are we supposed to know how many colors the palette consists of at the end of avpkt->data? >>> >>> palette size = packet size - width*height >>> >> >> Nope. You have to take the stride in acco

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:28 AM, Mats Peterson wrote: Once again, how are we supposed to know how many colors the palette consists of at the end of avpkt->data? palette size = packet size - width*height Nope. You have to take the stride in account as well, not just the width and height, and it varies

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Mats Peterson
On 02/13/2016 11:22 AM, Michael Niedermayer wrote: On Sat, Feb 13, 2016 at 06:01:21AM +0100, Mats Peterson wrote: On 02/13/2016 05:39 AM, Mats Peterson wrote: On 02/13/2016 12:51 AM, Michael Niedermayer wrote: +if (context->has_pkt_pal) { +memcpy(context->palette->data, +

Re: [FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

2016-02-13 Thread Michael Niedermayer
On Sat, Feb 13, 2016 at 06:01:21AM +0100, Mats Peterson wrote: > On 02/13/2016 05:39 AM, Mats Peterson wrote: > >On 02/13/2016 12:51 AM, Michael Niedermayer wrote: > > > >>>+if (context->has_pkt_pal) { > >>>+memcpy(context->palette->data, > >>>+ avpkt->data + a