Re: [FFmpeg-devel] [PATCH] lavf/mov: add support for sidx fragment indexes

2016-02-12 Thread Rodger Combs
This issue is fixed by this patch, but I'm unsure of possible implications on other files. It passes FATE, at least. diff --git a/libavformat/mov.c b/libavformat/mov.c index 149e3b4..c5e0a1e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3609,7 +3609,7 @@ static int mov_read_trun(MOVC

[FFmpeg-devel] [PATCH 2/2] lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216

2016-02-22 Thread Rodger Combs
--- libavformat/mov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index c5e0a1e..0408ad1 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3666,7 +3666,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAto

[FFmpeg-devel] [PATCH 1/2] lavf/mov: fix sidx with edit lists

2016-02-22 Thread Rodger Combs
--- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 149e3b4..c5e0a1e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3609,7 +3609,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom

[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 +

[FFmpeg-devel] [PATCH] lavc/Makefile: dnxhd demuxer depends on dnxhddata.o

2016-02-24 Thread Rodger Combs
--- libavcodec/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index f78d27b..2c4ae76 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -761,6 +761,7 @@ OBJS-$(CONFIG_ISO_MEDIA) += mpeg4audio.o mpegaudiodata.o OBJ

[FFmpeg-devel] [PATCH] lavf/matroska: expose stream encoding as global side-data

2016-02-25 Thread Rodger Combs
Some demuxers can't handle Matroska compression, so this lets API users check if a file uses it and determine whether those players will fail. --- libavcodec/avcodec.h | 35 ++- libavcodec/avpacket.c | 1 + libavcodec/version.h | 2 +- libavformat/ma

[FFmpeg-devel] [PATCH 2/2] lavc: add AudioToolbox encoders

2016-03-01 Thread Rodger Combs
codec/audiotoolboxenc.c new file mode 100644 index 000..cb53f2a --- /dev/null +++ b/libavcodec/audiotoolboxenc.c @@ -0,0 +1,471 @@ +/* + * Audio Toolbox system codecs + * + * copyright (c) 2016 Rodger Combs + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and

[FFmpeg-devel] OSX AudioToolbox codec support

2016-03-01 Thread Rodger Combs
This series adds decoders and encoders based on OSX's AudioToolbox framework. They may be faster than the native ones (particularly in cases where they can be hardware-accelerated), the encoders are competitive on quality, and some users may find them convenient from a licensing perspective. ADPCM

[FFmpeg-devel] [PATCH 1/2] lavc: add AudioToolbox decoders

2016-03-01 Thread Rodger Combs
ISTER_DECODER(LIBCELT, libcelt); REGISTER_DECODER(LIBDCADEC, libdcadec) REGISTER_ENCODER(LIBFAAC, libfaac); diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c new file mode 100644 index 000..270e07f --- /dev/null +++ b/libavcodec/audiotoolboxde

[FFmpeg-devel] [PATCH] lavc/videotoolboxenc: remove *_NULLABLE annotations; fixes pre-10.11 build

2016-03-02 Thread Rodger Combs
These macros were added in OS X 10.11, and the file compiles without warnings on both 10.10 and 10.11 with them removed. Thanks to mark4o on IRC for pointing out the failure and testing the patch. --- libavcodec/videotoolboxenc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-

[FFmpeg-devel] [PATCH 1/3] lavf/segment: style nit

2016-03-06 Thread Rodger Combs
--- libavformat/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index dd3b092..818c0c9 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -809,7 +809,7 @@ static int seg_write_packet(AVFormatContext *s, AVPa

[FFmpeg-devel] [PATCH 2/3] lavf/segment: slight refactor to seg_write_packet

2016-03-06 Thread Rodger Combs
This reduces some code duplication, and ensures that cur_entry.last_duration is always set. --- libavformat/segment.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 818c0c9..6ad991f 100644 --- a/libavformat/segme

[FFmpeg-devel] [PATCH 3/3] lavf/segment: add option to write empty filler segments as needed

2016-03-06 Thread Rodger Combs
--- doc/muxers.texi | 5 + libavformat/segment.c | 8 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index f2ad7fe..700ec88 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -1224,6 +1224,11 @@ muxers/codecs. It is set to @co

[FFmpeg-devel] [PATCH] lavc/parser: export resolution and format in AVCodecContext if not already set

2016-03-15 Thread Rodger Combs
This allows avformat_find_stream_info to finish without opening a decoder in more cases. Since decoders still export some information that the corresponding parsers don't, this causes some fields to be unset in ffprobe output where the decoder would previously have only been called in avformat_fin

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add AudioToolbox decoders

2016-03-21 Thread Rodger Combs
> On Mar 19, 2016, at 12:34, Thilo Borgmann wrote: > > Am 01.03.16 um 10:49 schrieb Rodger Combs: >> [...] >> External library support: >> + --disable-audiotoolbox enable AudioToolbox decoders and encoders >> [autodetect] > > Do we consider platfor

[FFmpeg-devel] [PATCH] lavf/segment: support automatic bitstream filtering

2016-03-23 Thread Rodger Combs
Most useful for MPEG-TS. Works by having the underlying muxer configure the bitstream filters, then moving them to our own AVStreams. --- libavformat/segment.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/libavformat/segment.c b/l

[FFmpeg-devel] [PATCH 1/4] lavc/audiotoolboxenc: remove unneeded packet metadata

2016-03-23 Thread Rodger Combs
This isn't necessary here, and for some reason broke only multichannel AAC encoding when a channel layout tag was set. --- libavcodec/audiotoolboxenc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c

[FFmpeg-devel] [PATCH 3/4] lavc/audiotoolboxdec: support ADTS AAC input

2016-03-23 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 270e07f..1fa6f16 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @

[FFmpeg-devel] [PATCH 4/4] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-23 Thread Rodger Combs
- ADTS-formatted AAC didn't work - Channel layouts were never exported - Channel mappings were incorrect beyond stereo - Channel counts weren't updated after packets were decoded - Timestamps were exported incorrectly --- libavcodec/audiotoolboxdec.c | 248 -

[FFmpeg-devel] [PATCH 2/4] lavc/audiotoolboxenc: fix a number of config issues

2016-03-23 Thread Rodger Combs
- size variables were used in a confusing way - incorrect size var use led to channel layouts not being set properly - channel layouts were incorrectly mapped for >2-channel AAC - bitrates not accepted by the encoder were discarded instead of being clamped - some minor style/indentation fixes ---

[FFmpeg-devel] [PATCH] lavf/segment: support automatic bitstream filtering

2016-03-24 Thread Rodger Combs
Most useful for MPEG-TS. Works by having the underlying muxer configure the bitstream filters, then moving them to our own AVStreams. --- libavformat/segment.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/libavformat/segment.c b/libavformat/se

Re: [FFmpeg-devel] [PATCH 2/4] lavc/audiotoolboxenc: fix a number of config issues

2016-03-24 Thread Rodger Combs
> On Mar 24, 2016, at 06:25, Michael Niedermayer wrote: > > On Thu, Mar 24, 2016 at 12:54:07AM -0500, Rodger Combs wrote: >> >> +AudioValueRange *ranges = malloc(size); >> +if (!ranges) > > is it intended to use malloc() instead of av_

[FFmpeg-devel] [PATCH] lavc/audiotoolboxenc: fix a number of config issues

2016-03-24 Thread Rodger Combs
- size variables were used in a confusing way - incorrect size var use led to channel layouts not being set properly - channel layouts were incorrectly mapped for >2-channel AAC - bitrates not accepted by the encoder were discarded instead of being clamped - some minor style/indentation fixes ---

Re: [FFmpeg-devel] [PATCH 4/4] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-24 Thread Rodger Combs
> On Mar 24, 2016, at 03:55, Carl Eugen Hoyos wrote: > > Rodger Combs gmail.com> writes: > >> - Channel layouts were never exported >> - Channel mappings were incorrect beyond stereo > > What happens if you don't pass a channel layout? > Does t

Re: [FFmpeg-devel] [PATCH 2/3] lavf/segment: slight refactor to seg_write_packet

2016-03-25 Thread Rodger Combs
> On Mar 25, 2016, at 09:45, Stefano Sabatini wrote: > > On date Sunday 2016-03-06 20:49:23 -0600, Rodger Combs encoded: >> This reduces some code duplication, and ensures that cur_entry.last_duration >> is >> always set. >> --- >> libavformat/segment.c

Re: [FFmpeg-devel] [PATCH 3/3] lavf/segment: add option to write empty filler segments as needed

2016-03-25 Thread Rodger Combs
> On Mar 25, 2016, at 10:17, Stefano Sabatini wrote: > > Can you describe an use case for this (and possibly add a short > description in the log)? This is mostly useful when writing segmented subtitles (e.g. WebVTT in HLS). If there's a gap in the subtitles, you need empty segments between th

[FFmpeg-devel] [PATCH 4/6] lavc/audiotoolboxenc: allow setting maxrate with pre-10.9 deployment targets

2016-03-27 Thread Rodger Combs
The build failure here is caused by the enum value not being defined, but as long as we're on a newer SDK that has it, it's safe to use it even when our deployment target is older. Setting the property will error, but we're not failing on errors there. --- libavcodec/audiotoolboxenc.c | 2 +- 1 fi

[FFmpeg-devel] [PATCH 2/6] lavc/audiotoolboxenc: fix a number of config issues

2016-03-27 Thread Rodger Combs
- size variables were used in a confusing way - incorrect size var use led to channel layouts not being set properly - channel layouts were incorrectly mapped for >2-channel AAC - bitrates not accepted by the encoder were discarded instead of being clamped - some minor style/indentation fixes ---

[FFmpeg-devel] [PATCH 1/6] lavc/audiotoolboxenc: remove unneeded packet metadata

2016-03-27 Thread Rodger Combs
This isn't necessary here, and for some reason broke only multichannel AAC encoding when a channel layout tag was set. --- libavcodec/audiotoolboxenc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c

[FFmpeg-devel] [PATCH 6/6] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-27 Thread Rodger Combs
- ADTS-formatted AAC didn't work - Channel layouts were never exported - Channel mappings were incorrect beyond stereo - Channel counts weren't updated after packets were decoded - Timestamps were exported incorrectly --- libavcodec/audiotoolboxdec.c | 248 -

[FFmpeg-devel] [PATCH 3/6] lavc/audiotoolboxenc: fix iOS build

2016-03-27 Thread Rodger Combs
--- libavcodec/audiotoolboxenc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c index 22352da..2fca15b 100644 --- a/libavcodec/audiotoolboxenc.c +++ b/libavcodec/audiotoolboxenc.c @@ -307,6 +307,7 @@ static av_c

[FFmpeg-devel] [PATCH 5/6] lavc/audiotoolboxdec: support ADTS AAC input

2016-03-27 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 270e07f..1fa6f16 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @

Re: [FFmpeg-devel] [PATCH 6/6] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-29 Thread Rodger Combs
> On Mar 28, 2016, at 00:39, pon pon > wrote: > > 2016-03-28 2:20 GMT+09:00 Rodger Combs : > >> - ADTS-formatted AAC didn't work >> - Channel layouts were never exported >> - Channel mappings were incorrect beyond stereo >> - Channel count

Re: [FFmpeg-devel] [PATCH 3/6] lavc/audiotoolboxenc: fix iOS build

2016-03-29 Thread Rodger Combs
> On Mar 27, 2016, at 21:13, crossle song wrote: > > Work well on iPhone 6, but on iPhone 4S iOS 9.0, return [aac_at @ > 0x1702a400] Encode error: -50, can not work I don't have a test setup for iOS devices (nor a 4S to test on); does this case work correctly with your patch, but not mine? W

Re: [FFmpeg-devel] [PATCH 6/6] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-30 Thread Rodger Combs
> On Mar 30, 2016, at 04:57, pon pon > wrote: > > not a regression. this have happened since the first patch. > i use osx1095. does this issue depend on os versions? your version? > i have attached samples. samples other than ticket #5369 are made from > ticket #5369, using ffmpeg. > > if that

[FFmpeg-devel] [PATCH 2/2] lavc/audiotoolboxdec: add eac3 decoder

2016-03-30 Thread Rodger Combs
This is added in 10.11, so we add a #define when building against older SDKs. The decoder actually supports 7.1-channel eac3, but since the parser only reports 6 channels, we end up decoding the 5.1 downmix (same as the internal decoder) for now. --- configure| 1 + libavcodec

[FFmpeg-devel] [PATCH 1/2] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-30 Thread Rodger Combs
- ADTS-formatted AAC didn't work - Channel layouts were never exported - Channel mappings were incorrect beyond stereo - Channel counts weren't updated after packets were decoded - Timestamps were exported incorrectly --- libavcodec/audiotoolboxdec.c | 286 +

[FFmpeg-devel] [PATCH] lavc/audiotoolbox: avoid relying on consumer-provided params when possible

2016-04-06 Thread Rodger Combs
We now attempt to parse extradata before init when present. In MPEG audio and (E)AC3, we wait for the first packet and parse its header (unless the consumer provided a channel count and sample rate at init). --- configure| 2 + libavcodec/Makefile | 6 +- libavcode

[FFmpeg-devel] [PATCH 3/8] lavf/mux: add avformat_init_output

2016-04-07 Thread Rodger Combs
This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering. --- libavformat/avformat.h | 30 +++-- libavformat/internal.h | 10 + libavformat/mux.c | 59 +

[FFmpeg-devel] [PATCH 1/8] lavf: add a flag to enable/disable automatic bitstream filtering

2016-04-07 Thread Rodger Combs
This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file. --- libavformat/avformat.h | 1 +

[FFmpeg-devel] [PATCH 2/8] lavf/mux: run AVCodec::deinit if write_header fails

2016-04-07 Thread Rodger Combs
--- libavformat/mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 52dfc09..8517c5f 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -459,8 +459,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **optio

[FFmpeg-devel] [PATCH 4/8] lavf/segment: add deinit function

2016-04-07 Thread Rodger Combs
--- libavformat/segment.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 9527c87..2dfd232 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -626,8 +626,9 @@ static int select_reference_stream(AVFormatC

[FFmpeg-devel] [PATCH 5/8] lavf/segment: fix writing separate header with auto BSF

2016-04-07 Thread Rodger Combs
--- libavformat/segment.c | 55 ++- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 2dfd232..a79b0f3 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -259,6 +259,7 @

[FFmpeg-devel] [PATCH 6/8] lavf/movenc: add deinit function

2016-04-07 Thread Rodger Combs
--- libavformat/movenc.c | 63 ++-- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index efaac36..3146799 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5233,21 +5233,18 @

[FFmpeg-devel] [PATCH 7/8] lavf/dashenc: add deinit function

2016-04-07 Thread Rodger Combs
--- libavformat/dashenc.c | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 931d32d..dce5525 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -580,16 +580,12

[FFmpeg-devel] [PATCH 8/8] lavf/movenc+dashenc: add automatic bitstream filtering

2016-04-07 Thread Rodger Combs
--- libavformat/dashenc.c | 43 +++- libavformat/movenc-test.c | 3 ++ libavformat/movenc.c | 100 +++--- 3 files changed, 121 insertions(+), 25 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index dce552

[FFmpeg-devel] [PATCH 3/4] lavf/audiotoolboxdec: only send extradata for formats that use it

2016-04-07 Thread Rodger Combs
Fixes initialization errors for some AVI files --- libavcodec/audiotoolboxdec.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 2740648..80b1f33 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/liba

[FFmpeg-devel] [PATCH 4/4] lavf/audiotoolboxdec: only provide block alignment for ILBC

2016-04-07 Thread Rodger Combs
Fixes decode errors for some AVI files --- libavcodec/audiotoolboxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 80b1f33..31e14d4 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.

[FFmpeg-devel] [PATCH 1/4] lavc/audiotoolboxdec: avoid relying on consumer-provided params when possible

2016-04-07 Thread Rodger Combs
--- configure| 2 + libavcodec/Makefile | 6 +-- libavcodec/audiotoolboxdec.c | 103 ++- 3 files changed, 86 insertions(+), 25 deletions(-) diff --git a/configure b/configure index 94a66d8..f8ff5ca 100755 --- a/configure +++

[FFmpeg-devel] [PATCH 2/4] lavc/audiotoolboxdec: reindent

2016-04-07 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 46 ++-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 9db1ad9..2740648 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoo

[FFmpeg-devel] [PATCH 2/2] lavc/parser: export resolution and format in AVCodecContext if not already set

2016-04-13 Thread Rodger Combs
This allows avformat_find_stream_info to finish without opening a decoder in more cases. --- libavcodec/parser.c | 12 tests/ref/seek/vsynth_lena-mpeg1 | 38 +++--- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/libavcodec

[FFmpeg-devel] [PATCH 1/2] lavc/mpegvideo_parser: export additional properties

2016-04-13 Thread Rodger Combs
--- libavcodec/mpegvideo_parser.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/libavcodec/mpegvideo_parser.c b/libavcodec/mpegvideo_parser.c index 1f74bfb..92ba24a 100644 --- a/libavcodec/mpegvideo_parser.c +++ b/libavcodec/mpegvideo_parser.c @@

[FFmpeg-devel] [PATCH 4/8] lavf/segment: add deinit function

2016-04-13 Thread Rodger Combs
--- libavformat/segment.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index df6f4b5..1fffb7b 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -627,8 +627,9 @@ static int select_reference_stream(AVFormatC

[FFmpeg-devel] [PATCH 2/8] lavf/mux: run AVCodec::deinit if write_header fails

2016-04-13 Thread Rodger Combs
--- libavformat/mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 3d8ea45..b5131f1 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -477,8 +477,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **optio

[FFmpeg-devel] [PATCH 3/8] lavf/mux: add avformat_init_output

2016-04-13 Thread Rodger Combs
This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering. --- libavformat/avformat.h | 30 +++-- libavformat/internal.h | 10 + libavformat/mux.c | 59 +

[FFmpeg-devel] [PATCH 5/8] lavf/segment: fix writing separate header with auto BSF

2016-04-13 Thread Rodger Combs
--- libavformat/segment.c | 55 ++- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 1fffb7b..1578bdb 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -260,6 +260,7 @

[FFmpeg-devel] [PATCH 7/8] lavf/dashenc: add deinit function

2016-04-13 Thread Rodger Combs
--- libavformat/dashenc.c | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 519f9c4..0848052 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -580,16 +580,12

[FFmpeg-devel] [PATCH 6/8] lavf/movenc: add deinit function

2016-04-13 Thread Rodger Combs
--- libavformat/movenc.c | 63 ++-- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5acb9af..1e1dc84 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5263,21 +5263,18 @

[FFmpeg-devel] [PATCH 8/8] lavf/movenc+dashenc: add automatic bitstream filtering

2016-04-13 Thread Rodger Combs
This is disabled by default when the empty_moov flag is enabled --- libavformat/dashenc.c | 41 +++- libavformat/movenc.c | 103 +++--- 2 files changed, 119 insertions(+), 25 deletions(-) diff --git a/libavformat/dashenc.c b/libavforma

[FFmpeg-devel] [PATCH 1/8] lavf: add a flag to enable/disable automatic bitstream filtering

2016-04-13 Thread Rodger Combs
This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file. --- libavformat/avformat.h | 1 +

Re: [FFmpeg-devel] [PATCH 1/2] lavc/mpegvideo_parser: export additional properties

2016-04-13 Thread Rodger Combs
Apr 13, 2016, at 06:28, Michael Niedermayer wrote: > > On Wed, Apr 13, 2016 at 03:26:03AM -0500, Rodger Combs wrote: >> --- >> libavcodec/mpegvideo_parser.c | 67 >> +++ >> 1 file changed, 67 insertions(+) > > is t

[FFmpeg-devel] [PATCH 03/11] lavf/mux: run AVCodec::deinit if write_header fails

2016-04-15 Thread Rodger Combs
--- libavformat/mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index aea9095..5bc237f 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -477,8 +477,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **optio

[FFmpeg-devel] [PATCH 01/11] lavf/mux: fix auto-inserted bsfs that read extradata

2016-04-15 Thread Rodger Combs
--- libavformat/mux.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavformat/mux.c b/libavformat/mux.c index 33301f1..0ed0c3d 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -1054,6 +1054,16 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)

[FFmpeg-devel] [PATCH 11/11] fate/aac: add automatic bsf test

2016-04-15 Thread Rodger Combs
--- tests/fate/aac.mak | 3 +++ tests/ref/fate/aac-autobsf-adtstoasc | 1 + 2 files changed, 4 insertions(+) create mode 100644 tests/ref/fate/aac-autobsf-adtstoasc diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak index 3d64031..c71f990 100644 --- a/tests/fate/aac.mak +++ b

[FFmpeg-devel] [PATCH 05/11] lavf/segment: add deinit function

2016-04-15 Thread Rodger Combs
--- libavformat/segment.c | 47 --- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index df6f4b5..41d8e53 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -627,8 +627,9 @@ st

[FFmpeg-devel] [PATCH 10/11] fate/h264: add automatic bsf test

2016-04-15 Thread Rodger Combs
--- tests/fate/h264.mak | 2 ++ tests/ref/fate/h264-autobsf-mp4toannexb | 1 + 2 files changed, 3 insertions(+) create mode 100644 tests/ref/fate/h264-autobsf-mp4toannexb diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak index eb42b12..0cdfc1f 100644 --- a/tests/fate/h26

[FFmpeg-devel] [PATCH 04/11] lavf/mux: add avformat_init_output

2016-04-15 Thread Rodger Combs
This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering. --- libavformat/avformat.h | 34 ++-- libavformat/internal.h | 10 + libavformat/mux.c | 6

[FFmpeg-devel] [PATCH 02/11] lavf: add a flag to enable/disable automatic bitstream filtering

2016-04-15 Thread Rodger Combs
This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file. --- libavformat/avformat.h | 1 +

[FFmpeg-devel] [PATCH 09/11] lavf/movenc+dashenc: add automatic bitstream filtering

2016-04-15 Thread Rodger Combs
This is disabled by default when the empty_moov flag is enabled --- libavformat/dashenc.c | 41 +++- libavformat/movenc.c | 105 +++--- 2 files changed, 121 insertions(+), 25 deletions(-) diff --git a/libavformat/dashenc.c b/libavforma

[FFmpeg-devel] [PATCH 08/11] lavf/dashenc: add deinit function

2016-04-15 Thread Rodger Combs
--- libavformat/dashenc.c | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 519f9c4..0848052 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -580,16 +580,12

[FFmpeg-devel] [PATCH 07/11] lavf/movenc: add deinit function

2016-04-15 Thread Rodger Combs
--- libavformat/movenc.c | 63 ++-- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5acb9af..1e1dc84 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5263,21 +5263,18 @

[FFmpeg-devel] [PATCH 06/11] lavf/segment: fix writing separate header with auto BSF

2016-04-15 Thread Rodger Combs
--- libavformat/segment.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 41d8e53..6368f9b 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -260,6 +260,7 @@ stat

[FFmpeg-devel] [PATCH 3/3] lavd/avfoundation: improve default behavior around video output

2016-04-18 Thread Rodger Combs
- Use the highest resolution available, rather than the first listed - Use the first listed (often the only) frame rate, rather than forcing NTSC - Use the first listed pixel format, rather than forcing yuv420p - Don't log when automatically overriding the defaults This allows the defaults to give

[FFmpeg-devel] [PATCH 1/3] lavu/opt: accept NULL and "none" as frame rates

2016-04-18 Thread Rodger Combs
--- libavutil/opt.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index eae4f75..83093e0 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -275,11 +275,12 @@ static int set_string_image_size(void *obj, const AVOption *o, const c

[FFmpeg-devel] [PATCH 2/3] lavd/avfoundation: use codecpar

2016-04-18 Thread Rodger Combs
--- libavdevice/avfoundation.m | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 763e675..8132278 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -560,11 +560,11

[FFmpeg-devel] [PATCH 1/2] lavc/audiotoolboxdec: fix memory leak

2016-04-19 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 31e14d4..58d05f8 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -414,6 +414,7 @@ static OSStatus ffat_decode_callb

[FFmpeg-devel] [PATCH 2/2] lavc/audiotoolboxdec: move to new BSF API

2016-04-19 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 82 +--- 1 file changed, 54 insertions(+), 28 deletions(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 58d05f8..2748e8d 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoo

[FFmpeg-devel] [PATCH 02/12] lavf: update auto-bsf to new BSF API

2016-04-20 Thread Rodger Combs
--- libavformat/internal.h | 5 +++-- libavformat/mux.c | 32 +-- libavformat/segment.c | 6 +++-- libavformat/utils.c| 59 +- 4 files changed, 86 insertions(+), 16 deletions(-) diff --git a/libavformat/internal.h

[FFmpeg-devel] [PATCH 01/12] lavf: deprecate av_apply_bitstream_filters

2016-04-20 Thread Rodger Combs
--- libavformat/avformat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 02113f5..eb3dd3b 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -2863,6 +2863,7 @@ int avformat_queue_attached_pictures(AVFormatContext *s); *

[FFmpeg-devel] [PATCH 04/12] lavf/mux: run AVCodec::deinit if write_header fails

2016-04-20 Thread Rodger Combs
--- libavformat/mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 7a4cdb9..6f3bd4e 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -483,8 +483,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **optio

[FFmpeg-devel] [PATCH 03/12] lavf: add a flag to enable/disable automatic bitstream filtering

2016-04-20 Thread Rodger Combs
This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file. --- libavformat/avformat.h | 1 +

[FFmpeg-devel] [PATCH 07/12] lavf/segment: fix writing separate header with auto BSF

2016-04-20 Thread Rodger Combs
--- libavformat/segment.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index d22d550..da775d6 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -260,6 +260,7 @@ stat

[FFmpeg-devel] [PATCH 10/12] lavf/movenc+dashenc: add automatic bitstream filtering

2016-04-20 Thread Rodger Combs
This is disabled by default when the empty_moov flag is enabled --- libavformat/dashenc.c | 43 - libavformat/movenc.c | 105 +++--- 2 files changed, 123 insertions(+), 25 deletions(-) diff --git a/libavformat/dashenc.c b/libavform

[FFmpeg-devel] [PATCH 05/12] lavf/mux: add avformat_init_output

2016-04-20 Thread Rodger Combs
This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering. --- libavformat/avformat.h | 34 ++-- libavformat/internal.h | 10 + libavformat/mux.c | 6

[FFmpeg-devel] [PATCH 09/12] lavf/dashenc: add deinit function

2016-04-20 Thread Rodger Combs
--- libavformat/dashenc.c | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 519f9c4..0848052 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -580,16 +580,12

[FFmpeg-devel] [PATCH 11/12] fate/h264: add automatic bsf test

2016-04-20 Thread Rodger Combs
--- tests/fate/h264.mak | 2 ++ tests/ref/fate/h264-autobsf-mp4toannexb | 1 + 2 files changed, 3 insertions(+) create mode 100644 tests/ref/fate/h264-autobsf-mp4toannexb diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak index eb42b12..0cdfc1f 100644 --- a/tests/fate/h26

[FFmpeg-devel] [PATCH 12/12] fate/aac: add automatic bsf test

2016-04-20 Thread Rodger Combs
--- tests/fate/aac.mak | 4 tests/ref/fate/aac-autobsf-adtstoasc | 1 + 2 files changed, 5 insertions(+) create mode 100644 tests/ref/fate/aac-autobsf-adtstoasc diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak index 3d64031..f006ae0 100644 --- a/tests/fate/aac.mak +++

[FFmpeg-devel] [PATCH 06/12] lavf/segment: add deinit function

2016-04-20 Thread Rodger Combs
--- libavformat/segment.c | 47 --- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 4c6c6d4..d22d550 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -627,8 +627,9 @@ st

[FFmpeg-devel] [PATCH 08/12] lavf/movenc: add deinit function

2016-04-20 Thread Rodger Combs
--- libavformat/movenc.c | 63 ++-- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5acb9af..1e1dc84 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5263,21 +5263,18 @

[FFmpeg-devel] [PATCH 10/12] lavf/movenc+dashenc: add automatic bitstream filtering

2016-04-27 Thread Rodger Combs
This is disabled by default when the empty_moov flag is enabled --- libavformat/dashenc.c | 43 - libavformat/movenc.c | 105 +++--- 2 files changed, 123 insertions(+), 25 deletions(-) diff --git a/libavformat/dashenc.c b/libavform

[FFmpeg-devel] [PATCH 07/12] lavf/segment: fix writing separate header with auto BSF

2016-04-27 Thread Rodger Combs
--- libavformat/segment.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index d22d550..d8877f0 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -89,6 +89,7 @@ typedef struct SegmentCo

[FFmpeg-devel] [PATCH 06/12] lavf/segment: add deinit function

2016-04-27 Thread Rodger Combs
--- libavformat/segment.c | 47 --- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 4c6c6d4..d22d550 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -627,8 +627,9 @@ st

[FFmpeg-devel] [PATCH 09/12] lavf/dashenc: add deinit function

2016-04-27 Thread Rodger Combs
--- libavformat/dashenc.c | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 519f9c4..0848052 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -580,16 +580,12

[FFmpeg-devel] [PATCH 04/12] lavf/mux: run AVCodec::deinit if write_header fails

2016-04-27 Thread Rodger Combs
--- libavformat/mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index ea75c79..82a019e 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -484,8 +484,11 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **optio

[FFmpeg-devel] [PATCH 11/12] fate/h264: add automatic bsf test

2016-04-27 Thread Rodger Combs
--- tests/fate/h264.mak | 2 ++ tests/ref/fate/h264-autobsf-mp4toannexb | 1 + 2 files changed, 3 insertions(+) create mode 100644 tests/ref/fate/h264-autobsf-mp4toannexb diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak index eb42b12..0cdfc1f 100644 --- a/tests/fate/h26

[FFmpeg-devel] [PATCH 08/12] lavf/movenc: add deinit function

2016-04-27 Thread Rodger Combs
--- libavformat/movenc.c | 63 ++-- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5acb9af..1e1dc84 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5263,21 +5263,18 @

[FFmpeg-devel] [PATCH 12/12] fate/aac: add automatic bsf test

2016-04-27 Thread Rodger Combs
--- tests/fate/aac.mak | 4 tests/ref/fate/aac-autobsf-adtstoasc | 1 + 2 files changed, 5 insertions(+) create mode 100644 tests/ref/fate/aac-autobsf-adtstoasc diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak index 3d64031..f006ae0 100644 --- a/tests/fate/aac.mak +++

[FFmpeg-devel] [PATCH 05/12] lavf/mux: add avformat_init_output

2016-04-27 Thread Rodger Combs
This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering. --- libavformat/avformat.h | 34 +-- libavformat/internal.h | 10 libavformat/mux.c | 64

[FFmpeg-devel] [PATCH 01/12] lavf: deprecate av_apply_bitstream_filters

2016-04-27 Thread Rodger Combs
--- libavformat/avformat.h | 3 +++ libavformat/utils.c| 4 2 files changed, 7 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index f4b5c59..29f35f1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -2863,8 +2863,11 @@ int avformat_queue_atta

[FFmpeg-devel] [PATCH 03/12] lavf: add a flag to enable/disable automatic bitstream filtering

2016-04-27 Thread Rodger Combs
This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file. --- libavformat/avformat.h | 1 +

<    1   2   3   4   5   6   7   8   >