Re: [libav-devel] [PATCH 1/2] mpegts: Fix typo in handling sections in the PMT.

2011-12-19 Thread Martin Storsjö
On Mon, 19 Dec 2011, Alex Converse wrote: This was an error rebasing 4682a1dc3aa2554ad7077f5db32d0f2d598d018e for commit. The pes variable guaranteed to be NULL in that block. --- libavformat/mpegts.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/mpegts.c

Re: [libav-devel] [PATCH 2/2] mpegts: Suppress invalid timebase warnings on DMB streams.

2011-12-19 Thread Martin Storsjö
On Mon, 19 Dec 2011, Alex Converse wrote: timestamp_len and timestamp_res intialize to zero. --- libavformat/mpegts.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 2356fa8..15688a9 100644 --- a/libavformat/mpegts.c

[libav-devel] [PATCH] acelp: Fix possible endless loop when decoding amr

2011-12-19 Thread Martin Storsjö
From: Carl Eugen Hoyos ceho...@ag.or.at Reviewed-by: Vitor Sessak --- libavcodec/acelp_vectors.c | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/libavcodec/acelp_vectors.c b/libavcodec/acelp_vectors.c index b7c05e7..be182c6 100644 ---

Re: [libav-devel] [PATCH] vc1: Handle WVC1 interlaced stream

2011-12-19 Thread Martin Storsjö
On Tue, 20 Dec 2011, Aneesh Dogra wrote: --- libavcodec/vc1dec.c | 25 +++-- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 1151318..701a3da 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@

[libav-devel] [PATCH] vc1dec: Use the right pointer type for the tmp pointer

2011-12-20 Thread Martin Storsjö
This fixes warnings about assignment from incompatible pointer type. --- libavcodec/vc1dec.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 701a3da..3cb7661 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@

Re: [libav-devel] [libav-commits] h264_cabac: synchronize decode_significance_*_x86 conditionals

2011-12-21 Thread Martin Storsjö
On Wed, 21 Dec 2011, Diego Biurrun wrote: Module: libav Branch: master Commit: 8742a4ff87b5d6ff9f8b5095a29f2e7e7147b5d8 Author:Diego Biurrun di...@biurrun.de Committer: Diego Biurrun di...@biurrun.de Date: Tue Dec 20 18:57:30 2011 +0100 h264_cabac: synchronize

[libav-devel] [PATCH] configure: Show whether the safe bitstream reader is enabled

2011-12-21 Thread Martin Storsjö
--- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 5cb2d1c..1c7fb3b 100755 --- a/configure +++ b/configure @@ -3205,6 +3205,7 @@ echo postprocessing support${postproc-no} echo new filter support${avfilter-no} echo

Re: [libav-devel] [PATCH 1/7] libavcodec: Define a side data type for new extradata

2011-12-21 Thread Martin Storsjö
On Fri, 16 Dec 2011, Kostya Shishkov wrote: On Fri, Dec 16, 2011 at 02:35:55PM +0200, Martin Storsjö wrote: --- libavcodec/avcodec.h |1 + libavcodec/version.h |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) The feature looks good to me, patchset probably too. Ok'd by Luca

Re: [libav-devel] [PATCH] x86: Tighten register constraints for decode_significance*_x86.

2011-12-26 Thread Martin Storsjö
On Mon, 26 Dec 2011, Reinhard Tartler wrote: On Mo, Dez 26, 2011 at 00:32:39 (CET), Reinhard Tartler wrote: On Wed, Dec 21, 2011 at 11:54 AM, Diego Biurrun di...@biurrun.de wrote: On 32-bit OS X with gcc 4.0/4.2 and shared libraries enabled, the ebx register is not available, but required to

[libav-devel] [PATCH] x86: Fix constraints for decode_significance*_x86

2011-12-26 Thread Martin Storsjö
Originally, prior to 8742a4ff8, the caller code was compiled within this condition: ARCH_X86 HAVE_7REGS HAVE_EBX_AVAILABLE !defined(BROKEN_RELOCATIONS) Since HAVE_7REGS is defined as (ARCH_X86_64 || (HAVE_EBX_AVAILABLE HAVE_EBP_AVAILABLE)) the subcondition HAVE_7REGS HAVE_EBX_AVAILABLE is

Re: [libav-devel] [PATCH] applehttp: reload interval is duration of last segment

2011-12-26 Thread Martin Storsjö
On Mon, 26 Dec 2011, Andrey Utkin wrote: According to draft-pantos-http-live-streaming-07, 6.3.4., === quote === The initial minimum reload delay is the duration of the last media segment in the Playlist. Media segment duration is specified by the EXTINF tag. If the client reloads a Playlist

Re: [libav-devel] [PATCH] applehttp: reload interval is duration of last segment

2011-12-27 Thread Martin Storsjö
On Tue, 27 Dec 2011, Andrey Utkin wrote: понедельник, 26 декабря 2011 г. пользователь Martin Storsjö mstor...@abo.fi писал: This might be ok, but this needs a check for v-n_segments 0. To simplify the expression, a separate duration variable perhaps can be declared above, e.g. int duration

[libav-devel] [PATCH 1/2] applehttp: Use the last segment duration as reload interval

2011-12-27 Thread Martin Storsjö
From: Andrey Utkin andrey.krieger.ut...@gmail.com According to draft-pantos-http-live-streaming-07, 6.3.4, the duration of the last media segment in the playlist should be used as initial minimum reload delay. Signed-off-by: Martin Storsjö mar...@martin.st --- libavformat/applehttp.c | 12

[libav-devel] [PATCH 2/2] applehttp: Use half the target duration as interval if the playlist didn't update

2011-12-27 Thread Martin Storsjö
This is mandated in draft-pantos-http-live-streaming-07, section 6.3.4. --- libavformat/applehttp.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index 9ab5927..f62e2d0 100644 --- a/libavformat/applehttp.c +++

[libav-devel] [PATCH] applehttpproto: Apply the same reload interval changes as for the demuxer

2011-12-28 Thread Martin Storsjö
From: Andrey Utkin andrey.krieger.ut...@gmail.com Signed-off-by: Martin Storsjö mar...@martin.st --- Slightly touched up the patch to minimize the diff, and moved the reload_interval *= 100 to before the jump label where it should be. libavformat/applehttpproto.c | 14 -- 1

Re: [libav-devel] [PATCH 2/2] applehttp: Use half the target duration as interval if the playlist didn't update

2011-12-29 Thread Martin Storsjö
On Wed, 28 Dec 2011, Andrey Utkin wrote: Tested both of your patches during last couple of days, no issues. Please consider committing. Pushed these two, and the touched up version of your applehttpproto patch. // Martin ___ libav-devel mailing

[libav-devel] [PATCH] qt-faststart: Fix up indentation

2011-12-29 Thread Martin Storsjö
This restores indentation after 65b875d8fcc. --- tools/qt-faststart.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c index eefeafd..8722e62 100644 --- a/tools/qt-faststart.c +++ b/tools/qt-faststart.c @@

[libav-devel] [PATCH] avplay: Don't call avio_set_interrupt_cb(NULL)

2012-01-03 Thread Martin Storsjö
Since we don't use avio_set_interrupt_cb for interrupt callbacks, we don't need to call it to reset the interrupt cb either. This avoids a warning about use of deprecated functions. --- avplay.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/avplay.c b/avplay.c index

Re: [libav-devel] [PATCH] avplay: Don't call avio_set_interrupt_cb(NULL)

2012-01-04 Thread Martin Storsjö
On Tue, 3 Jan 2012, Ronald S. Bultje wrote: Hi, On Tue, Jan 3, 2012 at 1:58 PM, Martin Storsjö mar...@martin.st wrote: Since we don't use avio_set_interrupt_cb for interrupt callbacks, we don't need to call it to reset the interrupt cb either. This avoids a warning about use of deprecated

[libav-devel] [PATCH 1/2] rtsp: Fix compiler warning for uninitialized variable

2012-01-04 Thread Martin Storsjö
From: Jean First jeanfi...@gmail.com This one won't ever be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö mar...@martin.st --- libavformat/rtsp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/rtsp.c b

[libav-devel] [PATCH 2/2] flvdec: Fix compiler warning for uninitialized variables

2012-01-04 Thread Martin Storsjö
From: Jean First jeanfi...@gmail.com These can't be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö mar...@martin.st --- libavformat/flvdec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/flvdec.c b

Re: [libav-devel] [PATCH 1/2] rtsp: Fix compiler warning for uninitialized variable

2012-01-04 Thread Martin Storsjö
On Wed, 4 Jan 2012, Ronald S. Bultje wrote: On Wed, Jan 4, 2012 at 5:21 AM, Martin Storsjö mar...@martin.st wrote: From: Jean First jeanfi...@gmail.com This one won't ever be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö mar...@martin.st

[libav-devel] [PATCH 1/2] avio: Add an URLProtocol flag for indicating that a protocol uses network

2012-01-04 Thread Martin Storsjö
This definition is in two files, since the definitions will move to the private header at the next bump. --- libavformat/avio.h |1 + libavformat/gopher.c|1 + libavformat/http.c |3 +++ libavformat/librtmp.c |5 + libavformat/mmsh.c |1 +

[libav-devel] [PATCH 2/2] avio: Only do implicit network initialization for network protocols

2012-01-04 Thread Martin Storsjö
The implicit network initialization is set to be removed in the future, but is kept for compatibility. By not doing the implicit initialization for non-network protocols, we avoid the warning about avformat_network_init() not being called for these, where it really doesn't make much sense. ---

Re: [libav-devel] [PATCH] g722enc: set frame_size, and also handle an odd number of input samples

2012-01-06 Thread Martin Storsjö
Hi, On Fri, 6 Jan 2012, Justin Ruggles wrote: The fate reference is updated because the previous test skipped a sample in each encode() call due each input frame having an odd number of samples. --- libavcodec/g722enc.c | 62 +---

[libav-devel] [PATCH 1/4] libavcodec: Move apply_param_change up above avcodec_decode_video2

2012-01-06 Thread Martin Storsjö
--- libavcodec/utils.c | 82 ++-- 1 files changed, 41 insertions(+), 41 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c845a31..a1d2a01 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -842,6 +842,47 @@ int

[libav-devel] [PATCH 2/4] libavcodec: Handle param change side data in avcodec_decode_video2, too

2012-01-06 Thread Martin Storsjö
Also call avcodec_set_dimensions on dimension param change packets. --- libavcodec/utils.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index a1d2a01..2bc1dcf 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -879,6

[libav-devel] [PATCH 3/4] interplayvideo: Handle changed video dimensions on the fly

2012-01-06 Thread Martin Storsjö
From: Paul B Mahol one...@gmail.com --- libavcodec/interplayvideo.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c index db98bec..724f5f1 100644 --- a/libavcodec/interplayvideo.c +++

[libav-devel] [PATCH 4/4] ipmovie: Add param change side data if the video dimensions have changed

2012-01-06 Thread Martin Storsjö
From: Paul B Mahol one...@gmail.com --- libavformat/ipmovie.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index bd5ec30..b91196b 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -89,6

Re: [libav-devel] [PATCH 1/4] libavcodec: Move apply_param_change up above avcodec_decode_video2

2012-01-06 Thread Martin Storsjö
On Fri, 6 Jan 2012, Diego Biurrun wrote: On Fri, Jan 06, 2012 at 01:16:22PM +0200, Martin Storsjö wrote: --- libavcodec/utils.c | 82 ++-- 1 files changed, 41 insertions(+), 41 deletions(-) Why? Please explain that in the log message

Re: [libav-devel] [PATCH 2/3] g722enc: set frame_size, and also handle an odd number of input samples

2012-01-07 Thread Martin Storsjö
On Sat, 7 Jan 2012, Justin Ruggles wrote: The fate reference is updated because the previous test skipped a sample in each encode() call due each input frame having an odd number of samples. --- libavcodec/g722enc.c | 38 -- tests/ref/acodec/g722 |8

[libav-devel] [PATCH] movenc: Don't store a nonzero creation time if nothing was set by the caller

2012-01-10 Thread Martin Storsjö
If the creation time is stored in the file as a zero, the mov demuxer skips exporting the creation time. Currently, files muxed without a creation time get demuxed with a Jan 1st 1970 creation timestamp. --- libavformat/movenc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

[libav-devel] [PATCH] fate: Update file checksums after the mov muxer change in a78dbada55d6

2012-01-10 Thread Martin Storsjö
--- tests/ref/acodec/alac |2 +- tests/ref/acodec/pcm_s16be|2 +- tests/ref/acodec/pcm_s24be|2 +- tests/ref/acodec/pcm_s32be|2 +- tests/ref/acodec/pcm_s8 |2 +- tests/ref/lavf/mov|2 +- tests/ref/vsynth1/dnxhd_1080i |2 +-

Re: [libav-devel] [PATCH] fate: Update file checksums after the mov muxer change in a78dbada55d6

2012-01-10 Thread Martin Storsjö
On Tue, 10 Jan 2012, Ronald S. Bultje wrote: On Tue, Jan 10, 2012 at 6:38 AM, Martin Storsjö mar...@martin.st wrote: ---  tests/ref/acodec/alac         |    2 +-  tests/ref/acodec/pcm_s16be    |    2 +-  tests/ref/acodec/pcm_s24be    |    2 +-  tests/ref/acodec/pcm_s32be    |    2 +-  tests

[libav-devel] [PATCH] avio: Fix the value of the deprecated URL_FLAG_NONBLOCK

2012-01-12 Thread Martin Storsjö
left unfixed. Signed-off-by: Martin Storsjö mar...@martin.st --- libavformat/avio.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index e73264f..78935d9 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -204,7 +204,7

[libav-devel] [PATCH] libx264: Don't leave max_b_frames as -1 if the user didn't set it

2012-01-13 Thread Martin Storsjö
max_b_frames is initialized to -1 for libx264, to allow distinguishing between an explicit user set 0 and a default not touched 0 (see bb73cda2). If max_b_frames is left as -1, this affects dts generation (where expressions like max_b_frames != 0 are used), so make sure it is left at the default

[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 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 373f068

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

[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

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

[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

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

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

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 a/tools

[libav-devel] [PATCH] aviocat: Remove useless includes

2012-01-21 Thread Martin Storsjö
Also include stdlib.h explicitly - currently it is used implicitly via avformat.h. --- tools/aviocat.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/tools/aviocat.c b/tools/aviocat.c index 183cdf70..92483c3 100644 --- a/tools/aviocat.c +++ b/tools/aviocat.c @@

[libav-devel] [PATCH] applehttp: Reset the AVIOContext when seeking

2012-01-21 Thread Martin Storsjö
This avoids reading any old data in the AVIOContext buffer after the seek, and indicates to the mpegts demuxer that we've seeked, avoiding continuity check errors. --- libavformat/applehttp.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavformat/applehttp.c

Re: [libav-devel] [PATCH] applehttp: Reset the AVIOContext when seeking

2012-01-21 Thread Martin Storsjö
On Sat, 21 Jan 2012, Anton Khirnov wrote: On Sat, 21 Jan 2012 14:09:07 +0200, Martin Storsjö mar...@martin.st wrote: This avoids reading any old data in the AVIOContext buffer after the seek, and indicates to the mpegts demuxer that we've seeked, avoiding continuity check errors

[libav-devel] [PATCH] rtpdec: Use our own SSRC in the SDES field when sending RRs

2012-01-21 Thread Martin Storsjö
The s-ssrc field is the sender's SSRC, we use ssrc + 1 to get a collision free unique SSRC for ourselves in the RR part. The SDES block in the RTCP packet should describe ourselves, not the sender. This was fixed for the RR part in 952139a3226b, but wasn't fixed for the SDES part until now. This

[libav-devel] [PATCH 1/3] rtsp: Remove a leftover, currently pointless check

2012-01-21 Thread Martin Storsjö
From: Dmitry Volyntsev xeioexcept...@gmail.com This check isn't relevant in the way the code currently works. Also change a case of if (x == 0) into if (!x). --- libavformat/rtsp.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/libavformat/rtsp.c

[libav-devel] [PATCH 2/3] rtsp: Allow specifying the UDP port range via AVOptions

2012-01-21 Thread Martin Storsjö
--- libavformat/rtsp.c | 13 +++-- libavformat/rtsp.h |5 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 77aeb63..0e56d37 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -81,6 +81,8 @@ const AVOption

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

2012-01-21 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

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

2012-01-23 Thread Martin Storsjö
On Mon, 23 Jan 2012, Paul B Mahol wrote: Module: libav Branch: master Commit: 27ed027bcdcb7445ab62d4870a8be3615ffc1e31 Author:Paul B Mahol one...@gmail.com Committer: Kostya Shishkov kostya.shish...@gmail.com Date: Sat Jan 21 17:45:52 2012 + XWD encoder and decoder

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: 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

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: --- 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

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: --- 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

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: --- 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

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: 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

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: --- 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

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

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Ronald S. Bultje wrote: Hi, On Sat, Jan 21, 2012 at 2:02 AM, Martin Storsjö mar...@martin.st wrote: @@ -2370,13 +2371,19 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)  {     MOVMuxContext *mov = s-priv_data;     AVIOContext *pb = s-pb; -    MOVTrack *trk

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

2012-01-25 Thread Martin Storsjö
--- libavformat/movenc.c | 28 libavformat/movenc.h |1 + 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index bcf755a..29ba129 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -48,6

[libav-devel] [PATCH 1/2] movenc: Don't require frame_size to be set for modes other than mov

2012-01-25 Thread Martin Storsjö
The field frame_size isn't written to the output anywhere except than in mov. This facilitates stream copy from formats that don't set frame_size. --- libavformat/movenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index

[libav-devel] [PATCH 2/2] movenc: Support muxing wmapro in ismv/isma

2012-01-25 Thread Martin Storsjö
--- libavformat/movenc.c | 19 +-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index dc0c040..6896519 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -349,6 +349,15 @@ static int

[libav-devel] [PATCH 1/2] movenc: Reindent a block

2012-01-25 Thread Martin Storsjö
Also add some space around operators and wrap a comment that extends past the 80 char limit/guideline. --- libavformat/movenc.c | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 95d92aa..5e8bed2

[libav-devel] [PATCH 2/2] doc: Update APIchanges with info on muxer flushing

2012-01-25 Thread Martin Storsjö
--- doc/APIchanges |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 904e346..27d4a86 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,12 @@ libavutil: 2011-04-18 API changes, most recent first: +2012-01-25 -

[libav-devel] [PATCH 1/2] ismindex: Fix build on mingw

2012-01-25 Thread Martin Storsjö
--- tools/ismindex.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/ismindex.c b/tools/ismindex.c index 4e14d19..fc97974 100644 --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -35,6 +35,10 @@ #include stdio.h #include string.h #include sys/stat.h +#ifdef

Re: [libav-devel] [PATCH] cosmetics: Remove some unnecessary block braces.

2012-01-25 Thread Martin Storsjö
On Wed, 18 Jan 2012, Diego Biurrun wrote: --- libavcodec/motion_est.c | 36 +--- libavfilter/vf_hflip.c |2 -- libswscale/ppc/swscale_altivec.c | 10 -- 3 files changed, 17 insertions(+), 31 deletions(-) diff --git

[libav-devel] [PATCH 2/2] pktdumper: Use usleep instead of sleep

2012-01-25 Thread Martin Storsjö
MinGW doesn't have sleep, only _sleep (which is deprecated), Sleep (which is defined in winbase.h and not in the standard C headers) and usleep. --- tools/pktdumper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/pktdumper.c b/tools/pktdumper.c index

Re: [libav-devel] [PATCH] cosmetics: Remove some unnecessary block braces.

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 01:57:11PM +0200, Martin Storsjö wrote: On Wed, 18 Jan 2012, Diego Biurrun wrote: --- a/libswscale/ppc/swscale_altivec.c +++ b/libswscale/ppc/swscale_altivec.c @@ -99,7 +99,6 @@ yuv2planeX_altivec(const int16_t *filter, int

Re: [libav-devel] [PATCH 1/2] ismindex: Fix build on mingw

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 01:48:46PM +0200, Martin Storsjö wrote: --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -35,6 +35,10 @@ #include stdio.h #include string.h #include sys/stat.h +#ifdef _WIN32 +#include io.h +#define mkdir(a, b) mkdir

Re: [libav-devel] [PATCH 2/2] pktdumper: Use usleep instead of sleep

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 01:17:44PM +0100, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 02:05:27PM +0200, Martin Storsjö wrote: --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -120,7 +120,7 @@ int main(int argc, char **argv) while (donotquit

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

2012-01-25 Thread Martin Storsjö
On Fri, 20 Jan 2012, Martin Storsjö wrote: 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

Re: [libav-devel] [PATCH 1/2] ismindex: Fix build on mingw

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Martin Storsjö wrote: On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 01:48:46PM +0200, Martin Storsjö wrote: --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -35,6 +35,10 @@ #include stdio.h #include string.h #include sys/stat.h +#ifdef _WIN32

Re: [libav-devel] [PATCH 2/2] movenc: Support muxing wmapro in ismv/isma

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Justin Ruggles wrote: On 01/25/2012 01:10 PM, Alex Converse wrote: On Wed, Jan 25, 2012 at 7:14 AM, Justin Ruggles justin.rugg...@gmail.com wrote: On 01/25/2012 05:37 AM, Martin Storsjö wrote: --- libavformat/movenc.c | 19 +-- 1 files changed, 17

Re: [libav-devel] [PATCH 1/2] ismindex: Fix build on mingw

2012-01-25 Thread Martin Storsjö
On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 11:49:28PM +0200, Martin Storsjö wrote: On Wed, 25 Jan 2012, Martin Storsjö wrote: On Wed, 25 Jan 2012, Diego Biurrun wrote: On Wed, Jan 25, 2012 at 01:48:46PM +0200, Martin Storsjö wrote: --- a/tools/ismindex.c +++ b

<    1   2   3   4   5   6   7   8   9   10   >