Re: [libav-devel] [PATCH 3/3] lavf: rename and internally document (f_)err_detect option

2012-01-20 Thread Anton Khirnov
On Tue, 17 Jan 2012 15:06:27 -0500, Dustin Brody li...@parsoma.net wrote: --- libavformat/options.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/libavformat/options.c b/libavformat/options.c index a9e2c1c..2f34a7b 100644 --- a/libavformat/options.c

[libav-devel] [PATCH] lavf: rename err_filter option and document resulting (f_)err_detect options

2012-01-20 Thread Dustin Brody
--- libavformat/options.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/options.c b/libavformat/options.c index a9e2c1c..39847db 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -109,10 +109,13 @@ static const AVOption options[]={

[libav-devel] [PATCH] lavc: rename err_filter option to err_detect and document it

2012-01-20 Thread Dustin Brody
--- libavcodec/options.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/options.c b/libavcodec/options.c index 00d80e0..0d41da5 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -208,11 +208,11 @@ static const AVOption options[]={

Re: [libav-devel] [PATCH] XWD encoder and decoder

2012-01-20 Thread Kostya Shishkov
On Thu, Jan 19, 2012 at 09:22:12PM +, Paul B Mahol wrote: --- Changelog |1 + doc/general.texi |2 + libavcodec/Makefile|2 + libavcodec/allcodecs.c |1 + libavcodec/avcodec.h |1 + libavcodec/version.h |2 +- libavcodec/xwddec.c|

Re: [libav-devel] [PATCH 1/2] threads: change the default for threads back to 1

2012-01-20 Thread Reinhard Tartler
On Mi, Jan 18, 2012 at 23:25:04 (CET), Ronald S. Bultje wrote: OK, so it can crash. What's the use case of draw_horiz_band if threading is enabled? Shouldn't the whole callback never be used, since we force codec delay? Is there a valid use case where the user-supplied draw_horiz_band should

[libav-devel] [PATCH] cmdutils: print warning for traling options

2012-01-20 Thread Alexandra Khirnova
--- cmdutils.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index 1c2bf46..bd066d8 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -288,7 +288,7 @@ void parse_options(void *optctx, int argc, char **argv, const OptionDef *options

Re: [libav-devel] [PATCH 8/8] FATE: set frame rate for bethsoft-vid test

2012-01-20 Thread Måns Rullgård
Anton Khirnov an...@khirnov.net writes: On Thu, 19 Jan 2012 15:01:23 -0500, Justin Ruggles justin.rugg...@gmail.com wrote: Bethsoft video is VFR, but in this case using the average frame rate generates nearly correct timestamps. Unfortunately there is nothing in the bitstream to indicate

[libav-devel] [PATCH] configure: disable avserver in shared builds

2012-01-20 Thread Anton Khirnov
It uses internal symbols and will therefore fail to link with shared libs. --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 93b98a9..ad7d9d4 100755 --- a/configure +++ b/configure @@ -1534,7 +1534,7 @@ avconv_deps=avcodec avformat

Re: [libav-devel] [PATCH] configure: disable avserver in shared builds

2012-01-20 Thread Måns Rullgård
Anton Khirnov an...@khirnov.net writes: It uses internal symbols and will therefore fail to link with shared libs. --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 93b98a9..ad7d9d4 100755 --- a/configure +++ b/configure

[libav-devel] [PATCH 01/12] movenc: Add a separate start_pts

2012-01-20 Thread Martin Storsjö
This fixes calculation of trackDuration if the MOVIentry array is cleared. This is required by the fragmentation support in the next patch. --- libavformat/movenc.c |7 +-- libavformat/movenc.h |1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c

[libav-devel] [PATCH 02/12] movenc: Add support for writing fragmented mov/mp4 files

2012-01-20 Thread Martin Storsjö
--- I had almost finished this when I realized that ffmpeg already had fragmentation support (since December). I had a look at that too, but the implementation was slightly different, so to support the smooth streaming muxer, I would have had to change it into this form anyway. This implementation

[libav-devel] [PATCH 03/12] RFC: movenc: Try supporting flushing the muxer by doing av_write_frame(..., NULL);

2012-01-20 Thread Martin Storsjö
--- libavformat/movenc.c | 10 -- libavformat/utils.c |7 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f497b6a..06ad908 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2370,13 +2370,19 @@

[libav-devel] [PATCH 04/12] movenc: Add a separate ismv/isma (smooth streaming) muxer

2012-01-20 Thread Martin Storsjö
--- libavformat/allformats.c |1 + libavformat/movenc.c | 140 - libavformat/movenc.h |5 ++ 3 files changed, 142 insertions(+), 4 deletions(-) diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 481d2c1..66a8cfe

[libav-devel] [PATCH 05/12] movenc: Support adding isml (smooth streaming live) metadata

2012-01-20 Thread Martin Storsjö
This metadata is required for pushing a live stream to an IIS publishing point. --- libavformat/movenc.c | 120 ++ libavformat/movenc.h |1 + 2 files changed, 121 insertions(+), 0 deletions(-) diff --git a/libavformat/movenc.c

[libav-devel] [PATCH 06/12] movenc: Write the sample rate instead of time scale in the stsd atom

2012-01-20 Thread Martin Storsjö
For ismv/isma, the time scale might not be the same as the sample rate. --- libavformat/movenc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 2113b3f..4ff4b7e 100644 --- a/libavformat/movenc.c +++

[libav-devel] [PATCH 07/12] movdec: Calculate an average bit rate for fragmented streams, too

2012-01-20 Thread Martin Storsjö
--- libavformat/isom.h |1 + libavformat/mov.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/libavformat/isom.h b/libavformat/isom.h index e6d04dc..16d7776 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -125,6 +125,7 @@ typedef struct

[libav-devel] [PATCH 08/12] Add a tool for creating smooth streaming manifests

2012-01-20 Thread Martin Storsjö
It can also optionally split the file into individual fragments, which allows it to be served from any web server without any server side support. --- libavformat/Makefile |2 +- tools/ismindex.c | 494 ++ 2 files changed, 495

[libav-devel] [PATCH 09/12] movdec: Ignore sample_degradation_priority bits when checking first_sample_flags

2012-01-20 Thread Martin Storsjö
This makes the first packet of a track fragment run to get the keyframe flag set properly if sample_degradation_priority is nonzero. --- libavformat/mov.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index dd580de..b5964f8 100644

[libav-devel] [PATCH 10/12] movenc: Allow writing to a non-seekable output if using empty moov

2012-01-20 Thread Martin Storsjö
In this mode, no seeks will be done except for within moov/moof fragments, which should fit within the AVIOContext buffer. --- libavformat/movenc.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index

[libav-devel] [PATCH 11/12] ismindex: Add docs about pushing video to a publishing point on IIS

2012-01-20 Thread Martin Storsjö
Since this step doesn't involve ismindex at all, perhaps it should go somewhere else. --- tools/ismindex.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/ismindex.c b/tools/ismindex.c index 78626cf..08ee177 100644 --- a/tools/ismindex.c +++ b/tools/ismindex.c @@

[libav-devel] [PATCH 12/12] Add a tool that uses avio to read and write, doing a plain copy of data

2012-01-20 Thread Martin Storsjö
This is useful for e.g. pushing data from a local file to a http server, or for e.g. directly dumping rtmp input into a flv file. --- libavformat/Makefile |2 +- tools/aviocat.c | 97 ++ 2 files changed, 98 insertions(+), 1 deletions(-)

Re: [libav-devel] [PATCH 2/2] lavf: return -1 from try_decode_frame if no data is returned during flushing

2012-01-20 Thread Anton Khirnov
On Wed, 18 Jan 2012 11:46:37 +0100, Janne Grunau janne-li...@jannau.net wrote: --- libavformat/utils.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 373f068..67f702e 100644 --- a/libavformat/utils.c +++

Re: [libav-devel] [PATCH 1/2] threads: change the default for threads back to 1

2012-01-20 Thread Anton Khirnov
On Fri, 20 Jan 2012 10:58:41 +0100, Reinhard Tartler siret...@tauware.de wrote: On Mi, Jan 18, 2012 at 23:25:04 (CET), Ronald S. Bultje wrote: OK, so it can crash. What's the use case of draw_horiz_band if threading is enabled? Shouldn't the whole callback never be used, since we force

Re: [libav-devel] [PATCH] cmdutils: print warning for traling options

2012-01-20 Thread Luca Barbato
On 1/20/12 3:28 AM, Alexandra Khirnova wrote: --- cmdutils.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) Looks ok, would be great having a more robust parser so avconv -y ${options} and avconv ${options} -y would work. lu

Re: [libav-devel] [PATCH 1/2] threads: change the default for threads back to 1

2012-01-20 Thread Måns Rullgård
Reinhard Tartler siret...@tauware.de writes: On Mi, Jan 18, 2012 at 23:25:04 (CET), Ronald S. Bultje wrote: OK, so it can crash. What's the use case of draw_horiz_band if threading is enabled? Shouldn't the whole callback never be used, since we force codec delay? Is there a valid use case

Re: [libav-devel] [PATCH] cmdutils: print warning for traling options

2012-01-20 Thread Måns Rullgård
Alexandra Khirnova alexan...@khirnov.net writes: --- cmdutils.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index 1c2bf46..bd066d8 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -288,7 +288,7 @@ void parse_options(void *optctx,

Re: [libav-devel] [PATCH 1/2] threads: change the default for threads back to 1

2012-01-20 Thread Janne Grunau
On 2012-01-20 14:02:57 +, Måns Rullgård wrote: Reinhard Tartler siret...@tauware.de writes: On Mi, Jan 18, 2012 at 23:25:04 (CET), Ronald S. Bultje wrote: OK, so it can crash. What's the use case of draw_horiz_band if threading is enabled? Shouldn't the whole callback never be used,

[libav-devel] [PATCH 1/1] threads: update slice_count and slice_offset from user context

2012-01-20 Thread Janne Grunau
bug noticed by Vladimir, verified and tested by a patch to convert the libavformats custom frame header for rv34 to slice_count and slice_offset[]. Janne ---8--- They are used to signal the number of slices and offsets of each slice out of band to the decoder. --- libavcodec/pthread.c | 13

Re: [libav-devel] [PATCH 8/8] FATE: set frame rate for bethsoft-vid test

2012-01-20 Thread Justin Ruggles
On 01/20/2012 07:12 AM, Måns Rullgård wrote: Anton Khirnov an...@khirnov.net writes: On Thu, 19 Jan 2012 15:01:23 -0500, Justin Ruggles justin.rugg...@gmail.com wrote: Bethsoft video is VFR, but in this case using the average frame rate generates nearly correct timestamps. Unfortunately

Re: [libav-devel] [PATCH 5/8] bethsoftvid: set pts and duration for audio packets.

2012-01-20 Thread Justin Ruggles
On 01/20/2012 02:06 AM, Anton Khirnov wrote: On Thu, 19 Jan 2012 15:01:20 -0500, Justin Ruggles justin.rugg...@gmail.com wrote: Also, use the sample rate as the time base. --- libavformat/bethsoftvid.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [libav-devel] [PATCH 03/12] RFC: movenc: Try supporting flushing the muxer by doing av_write_frame(..., NULL);

2012-01-20 Thread Justin Ruggles
On 01/20/2012 08:20 AM, Martin Storsjö wrote: --- libavformat/movenc.c | 10 -- libavformat/utils.c |7 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f497b6a..06ad908 100644 ---

Re: [libav-devel] [PATCH 03/12] RFC: movenc: Try supporting flushing the muxer by doing av_write_frame(..., NULL);

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Justin Ruggles wrote: On 01/20/2012 08:20 AM, Martin Storsjö wrote: --- libavformat/movenc.c | 10 -- libavformat/utils.c |7 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index

Re: [libav-devel] [PATCH 11/12] ismindex: Add docs about pushing video to a publishing point on IIS

2012-01-20 Thread Justin Ruggles
On 01/20/2012 08:20 AM, Martin Storsjö wrote: Since this step doesn't involve ismindex at all, perhaps it should go somewhere else. We have a section for muxers in the texi documentation, so it would be nice to have more complete option information and examples there. Thanks, Justin

Re: [libav-devel] [PATCH 1/1] threads: update slice_count and slice_offset from user context

2012-01-20 Thread Justin Ruggles
On 01/20/2012 10:07 AM, Janne Grunau wrote: bug noticed by Vladimir, verified and tested by a patch to convert the libavformats custom frame header for rv34 to slice_count and slice_offset[]. Janne ---8--- They are used to signal the number of slices and offsets of each slice out of band

[libav-devel] [PATCH] arm: fft: add mdct check

2012-01-20 Thread Felipe Contreras
From: Felipe Contreras felipe.contre...@gmail.com At least in ARM, I get the followin error otherwise: libavcodec.so.53: undefined symbol: ff_imdct_half_neon Building with: ./configure --cpu=cortex-a8 --extra-cflags='-mfpu=neon' \ --disable-everything \ --disable-network \

Re: [libav-devel] [PATCH 03/12] RFC: movenc: Try supporting flushing the muxer by doing av_write_frame(..., NULL);

2012-01-20 Thread Justin Ruggles
On 01/20/2012 10:38 AM, Martin Storsjö wrote: On Fri, 20 Jan 2012, Justin Ruggles wrote: On 01/20/2012 08:20 AM, Martin Storsjö wrote: --- libavformat/movenc.c | 10 -- libavformat/utils.c |7 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git

Re: [libav-devel] [PATCH] arm: fft: add mdct check

2012-01-20 Thread Måns Rullgård
Felipe Contreras felipe.contre...@nokia.com writes: From: Felipe Contreras felipe.contre...@gmail.com At least in ARM, I get the followin error otherwise: libavcodec.so.53: undefined symbol: ff_imdct_half_neon Building with: ./configure --cpu=cortex-a8 --extra-cflags='-mfpu=neon' \

[libav-devel] [PATCH 1/1] lavf: prevent infinite loops while flushing in avformat_find_stream_info

2012-01-20 Thread Janne Grunau
If no data was seen for a stream decoder are returning 0 when fed with empty packets for flushing. We can stop flushing when the decoder does not return delayed delayed frames anymore. Changes try_decode_frame() return value to got_picture or negative error. --- libavformat/utils.c | 22

[libav-devel] [PATCH 1/1] threads: update slice_count and slice_offset from user context

2012-01-20 Thread Janne Grunau
They are used to signal the number of slices and offsets of each slice out of band to the decoder. --- libavcodec/pthread.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 0688d9d..a4e3081 100644

Re: [libav-devel] [PATCH 1/2] threads: change the default for threads back to 1

2012-01-20 Thread Luca Barbato
On 1/20/12 6:16 AM, Janne Grunau wrote: If I knew how sure. Threading is initiliazed in avcodec_open2() but AVHWAccel based hardware acceleration only after the first frame is available. AVHWAccel might be overhauled completely, currently is nearly a bad hack. lu

Re: [libav-devel] [PATCH 12/12] Add a tool that uses avio to read and write, doing a plain copy of data

2012-01-20 Thread Luca Barbato
On 1/20/12 5:20 AM, Martin Storsjö wrote: This is useful for e.g. pushing data from a local file to a http server, or for e.g. directly dumping rtmp input into a flv file. --- libavformat/Makefile |2 +- tools/aviocat.c | 97 ++ 2

Re: [libav-devel] [PATCH 12/12] Add a tool that uses avio to read and write, doing a plain copy of data

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Luca Barbato wrote: On 1/20/12 5:20 AM, Martin Storsjö wrote: This is useful for e.g. pushing data from a local file to a http server, or for e.g. directly dumping rtmp input into a flv file. --- libavformat/Makefile |2 +- tools/aviocat.c | 97

Re: [libav-devel] [PATCH 5/8] bethsoftvid: set pts and duration for audio packets.

2012-01-20 Thread Anton Khirnov
On Fri, 20 Jan 2012 10:20:38 -0500, Justin Ruggles justin.rugg...@gmail.com wrote: On 01/20/2012 02:06 AM, Anton Khirnov wrote: On Thu, 19 Jan 2012 15:01:20 -0500, Justin Ruggles justin.rugg...@gmail.com wrote: Also, use the sample rate as the time base. ---

Re: [libav-devel] [PATCH 08/12] Add a tool for creating smooth streaming manifests

2012-01-20 Thread Luca Barbato
On 1/20/12 5:20 AM, Martin Storsjö wrote: It can also optionally split the file into individual fragments, which allows it to be served from any web server without any server side support. --- libavformat/Makefile |2 +- tools/ismindex.c | 494

Re: [libav-devel] [PATCH 08/12] Add a tool for creating smooth streaming manifests

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Luca Barbato wrote: On 1/20/12 5:20 AM, Martin Storsjö wrote: It can also optionally split the file into individual fragments, which allows it to be served from any web server without any server side support. --- libavformat/Makefile |2 +- tools/ismindex.c |

Re: [libav-devel] [PATCH 08/12] Add a tool for creating smooth streaming manifests

2012-01-20 Thread Luca Barbato
On 1/20/12 9:44 AM, Martin Storsjö wrote: On Fri, 20 Jan 2012, Luca Barbato wrote: On 1/20/12 5:20 AM, Martin Storsjö wrote: It can also optionally split the file into individual fragments, which allows it to be served from any web server without any server side support. ---

[libav-devel] [PATCH 02/13] movenc: Add support for writing fragmented mov files

2012-01-20 Thread Martin Storsjö
--- Added changelog entry and minor bump, compared to the previous iteration. Changelog |1 + libavformat/movenc.c | 409 +++-- libavformat/movenc.h | 25 +++ libavformat/version.h |2 +- 4 files changed, 426 insertions(+), 11

[libav-devel] [PATCH 03/13] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Martin Storsjö
--- libavformat/avformat.h |1 + libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 71aed80..54d7407 100644 --- a/libavformat/avformat.h +++

[libav-devel] [PATCH 04/13] movenc: Allow the caller to decide on fragmentation

2012-01-20 Thread Martin Storsjö
--- Added a new movflag for indicating that the caller wants to use this method (without having to enable fragmentation by choosing any other fragmentation criteria). libavformat/movenc.c | 26 +- libavformat/movenc.h |1 + 2 files changed, 18 insertions(+), 9

[libav-devel] [PATCH 05/13] movenc: Add a separate ismv/isma (smooth streaming) muxer

2012-01-20 Thread Martin Storsjö
--- Changed to use the new movflag frag_custom when setting default parameters. Changelog|1 + libavformat/allformats.c |1 + libavformat/movenc.c | 138 - libavformat/movenc.h |5 ++ libavformat/version.h|2

[libav-devel] [PATCH 06/13] movenc: Support adding isml (smooth streaming live) metadata

2012-01-20 Thread Martin Storsjö
This metadata is required for pushing a live stream to an IIS publishing point. --- Updated for the new movflag frag_custom. libavformat/movenc.c | 120 ++ libavformat/movenc.h |1 + 2 files changed, 121 insertions(+), 0 deletions(-) diff

Re: [libav-devel] [PATCH 1/1] threads: update slice_count and slice_offset from user context

2012-01-20 Thread Justin Ruggles
On 01/20/2012 11:43 AM, Janne Grunau wrote: They are used to signal the number of slices and offsets of each slice out of band to the decoder. --- libavcodec/pthread.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/libavcodec/pthread.c

Re: [libav-devel] [PATCH 03/13] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Justin Ruggles
On 01/20/2012 01:02 PM, Martin Storsjö wrote: --- libavformat/avformat.h |1 + libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index

[libav-devel] [PATCH 13/13] doc: Document mov/mp4 fragmentation options

2012-01-20 Thread Martin Storsjö
--- doc/muxers.texi | 61 +++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index 5a609c8..e476fde 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -142,6 +142,67 @@ Note also that the

[libav-devel] [PATCH 03/13] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Martin Storsjö
--- libavformat/avformat.h |5 - libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 71aed80..e65cb41 100644 --- a/libavformat/avformat.h +++

[libav-devel] [PATCH] westwood: split the AUD and VQA demuxers into separate file.

2012-01-20 Thread Justin Ruggles
They have no code in common. --- libavformat/Makefile |4 +- libavformat/westwood.c | 394 libavformat/westwood_aud.c | 173 +++ libavformat/westwood_vqa.c | 251 4 files changed, 426

[libav-devel] [PATCH] movenc: Reorder entries in the MOVIentry struct, for tigheter packing

2012-01-20 Thread Martin Storsjö
Originally, sizeof(struct MOVIentry) was 48, after the reordering, it is 40 in my build configuration. When writing really long mov/mp4 files, this can make a difference - this saves a bit over 2 MB of memory per hour of video (down to 10.3 MB per hour from 12.3 MB per hour initially) for a video

Re: [libav-devel] [PATCH] westwood: split the AUD and VQA demuxers into separate file.

2012-01-20 Thread Kostya Shishkov
On Fri, Jan 20, 2012 at 01:58:24PM -0500, Justin Ruggles wrote: They have no code in common. --- libavformat/Makefile |4 +- libavformat/westwood.c | 394 libavformat/westwood_aud.c | 173 +++

[libav-devel] [PATCH 03/13] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Martin Storsjö
--- libavformat/avformat.h | 15 --- libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 71aed80..918a08d 100644 --- a/libavformat/avformat.h

[libav-devel] [PATCH 04/13] movenc: Allow the caller to decide on fragmentation

2012-01-20 Thread Martin Storsjö
--- libavformat/movenc.c | 26 +- libavformat/movenc.h |1 + 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 08d534a..100c943 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -48,6 +48,7

Re: [libav-devel] [PATCH] movenc: Reorder entries in the MOVIentry struct, for tigheter packing

2012-01-20 Thread Luca Barbato
On 20/01/12 11:00, Martin Storsjö wrote: Originally, sizeof(struct MOVIentry) was 48, after the reordering, it is 40 in my build configuration. When writing really long mov/mp4 files, this can make a difference - this saves a bit over 2 MB of memory per hour of video (down to 10.3 MB per

Re: [libav-devel] [PATCH 03/13] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Justin Ruggles
On 01/20/2012 02:39 PM, Martin Storsjö wrote: --- libavformat/avformat.h | 15 --- libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h

[libav-devel] [PATCH] aviocat: Flush the output before closing

2012-01-20 Thread Martin Storsjö
Without this, the end of the file might not be transmitted/written. --- Sorry for not noticing this earlier... tools/aviocat.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/aviocat.c b/tools/aviocat.c index c43c69d..183cdf70 100644 --- a/tools/aviocat.c +++

Re: [libav-devel] [PATCH] XWD encoder and decoder

2012-01-20 Thread Paul B Mahol
--- Changelog |1 + doc/general.texi |2 + libavcodec/Makefile|2 + libavcodec/allcodecs.c |1 + libavcodec/avcodec.h |1 + libavcodec/version.h |2 +- libavcodec/xwd.h | 41 +++ libavcodec/xwddec.c| 249

[libav-devel] [PATCH 1/3] rtsp: Use a random offset for trying to open UDP ports for RTP

2012-01-20 Thread Martin Storsjö
From: Dmitry Volyntsev xeioexcept...@gmail.com This avoids (for all practical cases) the issue of reusing the same UDP port as for an earlier connection. If the remote doesn't know the previous session was closed, he might keep on sending packets to that port. If we always start off trying to

[libav-devel] [PATCH 2/3] rtsp: Remove an old, pointless check

2012-01-20 Thread Martin Storsjö
From: Dmitry Volyntsev xeioexcept...@gmail.com RTSP_RTP_PORT_MIN is a define in rtsp.h, so the if is pointless. --- libavformat/rtsp.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 3810e0c..251510c 100644

[libav-devel] [PATCH 3/3] rtsp: Remove extern declarations for variables that don't exist

2012-01-20 Thread Martin Storsjö
--- libavformat/rtsp.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 777125e..db233b2 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -405,9 +405,6 @@ typedef struct RTSPStream { void

Re: [libav-devel] [PATCH] movenc: Reorder entries in the MOVIentry struct, for tigheter packing

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Luca Barbato wrote: On 20/01/12 11:00, Martin Storsjö wrote: Originally, sizeof(struct MOVIentry) was 48, after the reordering, it is 40 in my build configuration. When writing really long mov/mp4 files, this can make a difference - this saves a bit over 2 MB of memory

[libav-devel] [PATCH 03/12] libavformat: Add a flag for muxers that support write_packet(NULL) for flushing

2012-01-20 Thread Martin Storsjö
--- Wrote a bit more explanations in the doxy, as requested by Justin and Anton on irc. libavformat/avformat.h | 18 +++--- libavformat/utils.c| 10 +- libavformat/version.h |2 +- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git

Re: [libav-devel] [PATCH 3/3] rtsp: Remove extern declarations for variables that don't exist

2012-01-20 Thread Luca Barbato
On 20/01/12 13:45, Martin Storsjö wrote: --- libavformat/rtsp.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 777125e..db233b2 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -405,9 +405,6 @@ typedef

Re: [libav-devel] [PATCH 1/3] rtsp: Use a random offset for trying to open UDP ports for RTP

2012-01-20 Thread Luca Barbato
On 20/01/12 13:45, Martin Storsjö wrote: +port_off = av_get_random_seed() % (RTSP_RTP_PORT_MAX - RTSP_RTP_PORT_MIN); Not sure if it might have an impact on performance and/or randomness availability. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero

Re: [libav-devel] [PATCH 1/3] rtsp: Use a random offset for trying to open UDP ports for RTP

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Luca Barbato wrote: On 20/01/12 13:45, Martin Storsjö wrote: +port_off = av_get_random_seed() % (RTSP_RTP_PORT_MAX - RTSP_RTP_PORT_MIN); Not sure if it might have an impact on performance and/or randomness availability. Shouldn't be an issue, av_get_random_seed()

Re: [libav-devel] [PATCH 2/3] rtsp: Remove an old, pointless check

2012-01-20 Thread Luca Barbato
On 20/01/12 13:45, Martin Storsjö wrote: From: Dmitry Volyntsev xeioexcept...@gmail.com RTSP_RTP_PORT_MIN is a define in rtsp.h, so the if is pointless. Might be nicer to pass those values as avoptions. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero

Re: [libav-devel] [PATCH] aviocat: Flush the output before closing

2012-01-20 Thread Janne Grunau
On 2012-01-20 22:54:26 +0200, Martin Storsjö wrote: Without this, the end of the file might not be transmitted/written. --- Sorry for not noticing this earlier... tools/aviocat.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/aviocat.c b/tools/aviocat.c

Re: [libav-devel] [PATCH 2/3] rtsp: Remove an old, pointless check

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Luca Barbato wrote: On 20/01/12 13:45, Martin Storsjö wrote: From: Dmitry Volyntsev xeioexcept...@gmail.com RTSP_RTP_PORT_MIN is a define in rtsp.h, so the if is pointless. Might be nicer to pass those values as avoptions. Yeah, I can change that. But even with that

Re: [libav-devel] [PATCH] aviocat: Flush the output before closing

2012-01-20 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: Without this, the end of the file might not be transmitted/written. --- Sorry for not noticing this earlier... tools/aviocat.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/aviocat.c b/tools/aviocat.c index

Re: [libav-devel] [PATCH] aviocat: Flush the output before closing

2012-01-20 Thread Martin Storsjö
On Fri, 20 Jan 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: Without this, the end of the file might not be transmitted/written. --- Sorry for not noticing this earlier... tools/aviocat.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [libav-devel] [PATCH] XWD encoder and decoder

2012-01-20 Thread Paul B Mahol
Fixed patch (with additional fixes) attached. 0001-XWD-encoder-and-decoder.patch Description: Binary data ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 2/3] rtsp: Remove an old, pointless check

2012-01-20 Thread Luca Barbato
On 20/01/12 15:04, Martin Storsjö wrote: On Fri, 20 Jan 2012, Luca Barbato wrote: On 20/01/12 13:45, Martin Storsjö wrote: From: Dmitry Volyntsev xeioexcept...@gmail.com RTSP_RTP_PORT_MIN is a define in rtsp.h, so the if is pointless. Might be nicer to pass those values as avoptions.

Re: [libav-devel] [PATCH 05/11] aacpsy: Replace an if with FFMAX in LAME windowing.

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 3:00 PM, Nathan Caldwell saint...@gmail.com wrote: On Wed, Jan 18, 2012 at 2:27 PM, Alex Converse alex.conve...@gmail.com wrote: On Wed, Jan 18, 2012 at 12:39 AM, Nathan Caldwell saint...@gmail.com wrote: ---  libavcodec/aacpsy.c |    3 +--  1 files changed, 1

Re: [libav-devel] [PATCH 06/11] aacenc: Request normalized float samples instead of converting s16 samples to float.

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 9:46 PM, Nathan Caldwell saint...@gmail.com wrote: ---  libavcodec/aacenc.c   |   12 ++--  libavcodec/aacenc.h   |    2 +-  libavcodec/aacpsy.c   |   10 +-  libavcodec/psymodel.c |    7 +++  libavcodec/psymodel.h |    7 +++  5 files changed,

Re: [libav-devel] [PATCH] aviocat: Flush the output before closing

2012-01-20 Thread Luca Barbato
On 20/01/12 15:27, Martin Storsjö wrote: That's a very good question - not sure if avio_close() is intended to be a discard this and just close it quickly function or a full graceful close. At the moment, I don't think of any good reason why it shouldn't flush by default when closing - I guess

Re: [libav-devel] [PATCH 07/11] aacenc: Move Q^3/4 calculation to it's own table

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 9:32 PM, Nathan Caldwell saint...@gmail.com wrote: On Wed, Jan 18, 2012 at 4:09 PM, Nathan Caldwell saint...@gmail.com wrote: On Wed, Jan 18, 2012 at 2:41 PM, Alex Converse alex.conve...@gmail.com wrote: On Wed, Jan 18, 2012 at 12:39 AM, Nathan Caldwell

Re: [libav-devel] [PATCH 10/11] aacenc: Move saved overlap samples to the beginning of the same buffer as incoming samples.

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 10:11 PM, Nathan Caldwell saint...@gmail.com wrote: 2012/1/18 Benjamin Larsson benja...@southpole.se: OK Fix trailing whitespace in context. OK ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 09/11] aacenc: Deinterleave input samples before processing.

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 10:10 PM, Nathan Caldwell saint...@gmail.com wrote: On Wed, Jan 18, 2012 at 1:39 PM, Nathan Caldwell saint...@gmail.com wrote: ---  libavcodec/aacenc.c   |  102 +---  libavcodec/aacenc.h   |    6 ++-  libavcodec/aacpsy.c  

Re: [libav-devel] [PATCH 11/11] aacenc: Simplify windowing

2012-01-20 Thread Alex Converse
On Wed, Jan 18, 2012 at 10:12 PM, Nathan Caldwell saint...@gmail.com wrote: On Wed, Jan 18, 2012 at 10:41 PM, Nathan Caldwell saint...@gmail.com wrote: ---  libavcodec/aacenc.c |  103 ++-  1 files changed, 69 insertions(+), 34 deletions(-)

[libav-devel] [PATCH] Revert avserver: fix build after the next bump.

2012-01-20 Thread Anton Khirnov
This temporarily (until 0.8 is released) reverts commit 8e1340abc316e038bb89e5a3b46e92ff58c98a88. That commit breaks shared builds because of symbol hiding. Reverting it will enable shared builds for 0.8 --- avserver.c | 22 ++ 1 files changed, 10 insertions(+), 12

[libav-devel] [PATCH] doc/APIChanges: fill in missing dates and hashes

2012-01-20 Thread Anton Khirnov
--- doc/APIchanges | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 2d78324..904e346 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,15 +13,15 @@ libavutil: 2011-04-18 API changes, most recent first: -2012-xx-xx