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

2015-09-30 Thread Rodger Combs
Fixes trac #3842 --- libavformat/isom.h | 1 + libavformat/mov.c | 192 + 2 files changed, 179 insertions(+), 14 deletions(-) diff --git a/libavformat/isom.h b/libavformat/isom.h index aee9d6e..8f22ea5 100644 --- a/libavformat/isom.h +++ b/li

Re: [FFmpeg-devel] [PATCH 3/3] lavf/utils: avoid giving up probing early with long subtitle events

2015-09-30 Thread Rodger Combs
simply skipping this check for subtitle streams; sound better? > On Sep 30, 2015, at 21:09, Michael Niedermayer wrote: > > On Sun, Sep 20, 2015 at 12:29:33PM -0500, Rodger Combs wrote: >> --- >> libavformat/utils.c | 7 ++- >> 1 file changed, 6 insertions(+), 1 dele

[FFmpeg-devel] [PATCH] lavf: add chromaprint muxer

2015-10-02 Thread Rodger Combs
--- Changelog| 1 + configure| 4 doc/muxers.texi | 35 +++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/version.h| 2 +- 6 files changed, 43 insertions(+), 1 deletion(-) diff --g

[FFmpeg-devel] [PATCH] lavf: add chromaprint muxer

2015-10-02 Thread Rodger Combs
REGISTER_DEMUXER (LIBMODPLUG, libmodplug); REGISTER_MUXDEMUX(LIBNUT, libnut); diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c new file mode 100644 index 000..19cef55 --- /dev/null +++ b/libavformat/chromaprint.c @@ -0,0 +1,195 @@ +/* + * Chromaprint fin

[FFmpeg-devel] [PATCH] lavf/utils: avoid giving up probing early with long subtitle events

2015-10-02 Thread Rodger Combs
--- libavformat/utils.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index dc83608..be1472b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3347,7 +3347,10 @@ int avformat_find_stream_info(AVFormatContext *ic, AVD

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

2015-10-03 Thread Rodger Combs
Fixes trac #3842 --- libavformat/isom.h | 2 + libavformat/mov.c | 250 - 2 files changed, 213 insertions(+), 39 deletions(-) diff --git a/libavformat/isom.h b/libavformat/isom.h index aee9d6e..6e921c0 100644 --- a/libavformat/isom.h +++ b/li

[FFmpeg-devel] [PATCH] lavf: add chromaprint muxer

2015-10-03 Thread Rodger Combs
GME, libgme); REGISTER_DEMUXER (LIBMODPLUG, libmodplug); REGISTER_MUXDEMUX(LIBNUT, libnut); diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c new file mode 100644 index 000..4d67f43 --- /dev/null +++ b/libavformat/chromaprint.c @@ -0,0 +1,186 @@ +/* +

[FFmpeg-devel] [PATCH] libavformat/tls_securetransport: silence uninitialized value warning

2015-10-03 Thread Rodger Combs
--- libavformat/tls_securetransport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c index 73662d7..cdc7953 100644 --- a/libavformat/tls_securetransport.c +++ b/libavformat/tls_securetransport.c @@ -350

[FFmpeg-devel] [PATCH] libavformat/tls_securetransport: fix argument evalulation order UB

2015-10-04 Thread Rodger Combs
--- libavformat/tls_securetransport.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c index 73662d7..6ad266a 100644 --- a/libavformat/tls_securetransport.c +++ b/libavformat/tls_securetransport.c

[FFmpeg-devel] [PATCH] wtvdec: fix integer overflow resulting in errors with large files

2015-02-20 Thread Rodger Combs
This fixes a regression in 9fbc613f0df1628e7e78bca791fa8833846f8210 --- libavformat/wtvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index a752ee2..95b2312 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -965,7

[FFmpeg-devel] [PATCH] libavformat/hls: add an option to start from a given segment in a live stream

2015-03-28 Thread Rodger Combs
--- libavformat/hls.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index af890bd..4a7d003 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -165,6 +165,7 @@ struct variant { }; typedef struct HLS

[FFmpeg-devel] [PATCH 1/4] libavformat/segment: don't leave the list pb open when not in use

2015-03-28 Thread Rodger Combs
--- libavformat/segment.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index b65a2eb..06bc459 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -357,17 +357,17 @@ static int segment_end(AVFormatContext *s

[FFmpeg-devel] [PATCH 2/4] lavf/segment: Mark output contexts as non-seekable

2015-03-28 Thread Rodger Combs
This prevents sub-muxers from trying to seek back to the beginning of the whole stream, only to find themselves overwriting some video data in the current (often last) segment. --- libavformat/segment.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/segment.c b/libavformat/segm

[FFmpeg-devel] [PATCH 3/4] libavformat/segment: add an option to write the header to a separate file

2015-03-28 Thread Rodger Combs
This permits some interesting segmenting techniques with formats like Matroska, where you can concatenate the header and segments [N, nb_segments) and get a working file that starts at segment N's start time. --- libavformat/segment.c | 18 +++--- 1 file changed, 15 insertions(+), 3 de

[FFmpeg-devel] [PATCH 4/4] lavf/matroskaenc: don't try to end the segment when the output isn't seekable

2015-03-28 Thread Rodger Combs
--- libavformat/matroskaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 6b2e390..c242a0e 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1948,9 +1948,9 @@ static int mkv_write_trailer(A

[FFmpeg-devel] [PATCH] lavf/segment: Mark output contexts as non-seekable when applicable

2015-03-29 Thread Rodger Combs
This prevents sub-muxers from trying to seek back to the beginning of the whole stream, only to find themselves overwriting some video data in the current (often last) segment. We only do this when not writing individual header/trailers. --- libavformat/segment.c | 6 ++ 1 file changed, 6 ins

Re: [FFmpeg-devel] [PATCH 4/4] lavf/matroskaenc: don't try to end the segment when the output isn't seekable

2015-03-29 Thread Rodger Combs
the last segment, overwriting 8 unrelated bytes, and jumping back. > On Mar 29, 2015, at 11:29, Michael Niedermayer wrote: > > On Sat, Mar 28, 2015 at 07:25:21PM -0600, Rodger Combs wrote: >> --- >> libavformat/matroskaenc.c | 2 +- >> 1 file changed, 1 insertion(+)

Re: [FFmpeg-devel] [PATCH 4/4] lavf/matroskaenc: don't try to end the segment when the output isn't seekable

2015-03-29 Thread Rodger Combs
te: > > On Sun, Mar 29, 2015 at 11:54:59AM -0600, Rodger Combs wrote: >> In the case of most calls to end_ebml_master, the target is within the >> current segment, but in this case, it's in the first segment or header file, >> so if the context was marked as non-see

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

2015-03-29 Thread Rodger Combs
This needs a fair bit of testing and review before merge. Re: mini: > if the header does get updated at the end this would mismatch if only a > subset of segments get concatenated This is one reason why I have the `seekback` option disabled by default (the other being that it avoids potential int

[FFmpeg-devel] [PATCH 1/2] lavf/segment: style nits

2015-03-30 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 7b8fdad..69038ca 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -226,7 +226,7 @@ static int segment_start(AVFormatContext *s,

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

2015-03-30 Thread Rodger Combs
This needs a fair bit of testing and review before merge. --- libavformat/segment.c | 259 ++ 1 file changed, 198 insertions(+), 61 deletions(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 69038ca..4d934a2 100644 --- a/libavform

[FFmpeg-devel] [PATCH 2/2] lavf/assenc: handle extra sections after Events

2015-04-04 Thread Rodger Combs
--- libavformat/assenc.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/libavformat/assenc.c b/libavformat/assenc.c index 3fb9384..5222616 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -40,6 +40,8 @@ typedef struct ASSContext {

[FFmpeg-devel] [PATCH 1/2] lavf/assenc: style nits

2015-04-04 Thread Rodger Combs
--- libavformat/assenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/assenc.c b/libavformat/assenc.c index 079991d..3fb9384 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -31,7 +31,7 @@ typedef struct DialogueLine { struct DialogueLin

Re: [FFmpeg-devel] [PATCH 2/2] lavf/assenc: handle extra sections after Events

2015-04-04 Thread Rodger Combs
> On Apr 4, 2015, at 08:47, wm4 wrote: > > On Sat, 4 Apr 2015 05:31:22 -0500 > Rodger Combs mailto:rodger.co...@gmail.com>> wrote: > >> --- >> libavformat/assenc.c | 28 ++-- >> 1 file changed, 26 insertions(+), 2 deletions(-) >

Re: [FFmpeg-devel] [PATCH 2/2] lavf/assenc: handle extra sections after Events

2015-04-08 Thread Rodger Combs
> On Apr 4, 2015, at 05:31, Rodger Combs wrote: > > --- > libavformat/assenc.c | 28 ++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > > diff --git a/libavformat/assenc.c b/libavformat/assenc.c > index 3fb9384..5222616 100644 > --- a/l

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

2015-04-08 Thread Rodger Combs
> On Mar 30, 2015, at 21:23, Rodger Combs wrote: > > This needs a fair bit of testing and review before merge. > --- > libavformat/segment.c | 259 ++ > 1 file changed, 198 insertions(+), 61 deletions(-) > > diff --git a

Re: [FFmpeg-devel] [PATCH 3/3] avformat: add youtube-dl based demuxer

2015-04-09 Thread Rodger Combs
> On Apr 9, 2015, at 06:08, wm4 wrote: > > On Thu, 9 Apr 2015 00:02:50 +0200 > Lukasz Marek wrote: > >> W dniu środa, 8 kwietnia 2015 Gilles Chanteperdrix < >> gilles.chanteperd...@xenomai.org> >> >> And forgot to add my apologies for these bad patches and the noise >>> that followed. >>> >>

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

2015-04-09 Thread Rodger Combs
> On Apr 9, 2015, at 05:41, Stefano Sabatini wrote: > > Not sure what's the user case here. See discussion around https://ffmpeg.org/pipermail/ffmpeg-devel/2015-March/170993.html > > [...] > -- > FFmpeg = Fanciful and Funny

Re: [FFmpeg-devel] [PATCH 2/2] lavf/assenc: handle extra sections after Events

2015-04-09 Thread Rodger Combs
> On Apr 8, 2015, at 14:25, Michael Niedermayer wrote: > > On Sat, Apr 04, 2015 at 05:31:22AM -0500, Rodger Combs wrote: >> --- >> libavformat/assenc.c | 28 ++-- >> 1 file changed, 26 insertions(+), 2 deletions(-) > > do you have a test

[FFmpeg-devel] [PATCH] lavf/http: handle case where the server returns a redirect during a seek

2015-04-12 Thread Rodger Combs
txoffer (e.g. http://tori.aoi-chan.com/ ) redirects to the same URI on your first request, and serves the actual file on the second. It's stupid, but AFAIK technically compliant. We'd previously see the server not handing back a Range header and return an error; now, instead, we see that there's a

[FFmpeg-devel] [PATCH] lavf/mpeg: vobsub add an option to specify the .sub's URI

2015-04-12 Thread Rodger Combs
--- libavformat/mpeg.c | 52 +--- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index c29291d..1c5bbed 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -26,6 +26,7 @@ #if CONFIG_VO

Re: [FFmpeg-devel] [PATCH 2/2] lavf/assenc: handle extra sections after Events

2015-04-16 Thread Rodger Combs
> On Apr 9, 2015, at 06:55, wm4 wrote: > > On Thu, 9 Apr 2015 06:12:53 -0500 > Rodger Combs wrote: > >> >>> On Apr 8, 2015, at 14:25, Michael Niedermayer wrote: >>> >>> On Sat, Apr 04, 2015 at 05:31:22AM -0500, Rodger Comb

<    3   4   5   6   7   8