ffmpeg.git
8 years agohttp: Consider the stream as seekable if the reply contains Accept-Ranges: bytes
Stefan Fritsch [Sun, 4 Sep 2011 08:56:24 +0000 (10:56 +0200)]
http: Consider the stream as seekable if the reply contains Accept-Ranges: bytes

The initial request contains "Range: 0-", which servers normally
have responded with "HTTP/1.1 206 Partial Content" reply with
a Content-Range header, which was used as indicator for seekability.

Apache, since 2.2.20, responds with "HTTP/1.1 200 OK" for these
requests, which is more friendly to caches and proxies, but the
seekability still is indicated via the Accept-Ranges: bytes header.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agonutenc: add namespace to the api facing functions
Luca Barbato [Wed, 31 Aug 2011 17:27:17 +0000 (19:27 +0200)]
nutenc: add namespace to the api facing functions

Rename write_{header,packet,trailer} to nut_write_{header,packet,trailer}
in order to make easier debugging them.

8 years agoAVOptions: fix av_set_string3() doxy to match reality.
Anton Khirnov [Tue, 23 Aug 2011 05:46:51 +0000 (07:46 +0200)]
AVOptions: fix av_set_string3() doxy to match reality.

Fixes bug 28.

8 years agocmdutils: get rid of dummy contexts for examining AVOptions.
Anton Khirnov [Tue, 23 Aug 2011 05:43:54 +0000 (07:43 +0200)]
cmdutils: get rid of dummy contexts for examining AVOptions.

Replace it with newly introduced libavutil API.

8 years agolavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
Anton Khirnov [Tue, 23 Aug 2011 05:23:52 +0000 (07:23 +0200)]
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.

8 years agoAVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
Anton Khirnov [Tue, 23 Aug 2011 05:11:26 +0000 (07:11 +0200)]
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().

It allows to search for options only with AVClass, without allocating
the corresponding context.

8 years agocpu detection: avoid a signed overflow
Sean McGovern [Mon, 25 Jul 2011 22:51:02 +0000 (18:51 -0400)]
cpu detection: avoid a signed overflow

1<<31 overflows because 1 is signed, so force it to unsigned.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agocodec-regression: force vsync 0 on the me_threshold test to make sure frames match.
Alex Converse [Wed, 31 Aug 2011 20:57:01 +0000 (13:57 -0700)]
codec-regression: force vsync 0 on the me_threshold test to make sure frames match.

8 years agoavconv: fix some bugs introduced in 630902a1e1336e7ee0cf3dcbcb6eb07af8edf660
Michael Niedermayer [Thu, 1 Sep 2011 01:46:04 +0000 (03:46 +0200)]
avconv: fix some bugs introduced in 630902a1e1336e7ee0cf3dcbcb6eb07af8edf660

These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolibmp3lame: fix typo
Anton Khirnov [Thu, 1 Sep 2011 08:17:09 +0000 (10:17 +0200)]
libmp3lame: fix typo

FF_API_LAME_GLOBAL_OPTIONS => FF_API_LAME_GLOBAL_OPTS

Thanks to Clément Bœsch for spotting.

8 years agoAVOptions: drop av_ prefix from static av_get_number().
Anton Khirnov [Tue, 23 Aug 2011 08:27:49 +0000 (10:27 +0200)]
AVOptions: drop av_ prefix from static av_get_number().

8 years agolibx264: use X264_THREADS_AUTO constant instead of 0.
Anton Khirnov [Wed, 31 Aug 2011 17:26:01 +0000 (19:26 +0200)]
libx264: use X264_THREADS_AUTO constant instead of 0.

8 years agolibx264: set default thread count to 0 (auto)
Anton Khirnov [Wed, 31 Aug 2011 12:04:02 +0000 (14:04 +0200)]
libx264: set default thread count to 0 (auto)

8 years agolavc: cosmetics, group deprecated codec flags
Anton Khirnov [Sat, 27 Aug 2011 11:33:10 +0000 (13:33 +0200)]
lavc: cosmetics, group deprecated codec flags

8 years agompeg12: add 'scan_offset' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg12: add 'scan_offset' private option.

Deprecate CODEC_FLAG_SVCD_SCAN_OFFSET

8 years agoh263/p encoder: add 'structured_slices' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263/p encoder: add 'structured_slices' private option.

Deprecate CODEC_FLAG_H263P_SLICE_STRUCT

8 years agoh263/p encoder: add 'obmc' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263/p encoder: add 'obmc' private option.

Deprecate CODEC_FLAG_OBMC

8 years agoh263p encoder: add 'aiv' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263p encoder: add 'aiv' private option.

Deprecate CODEC_FLAG_H263P_AIV

8 years agoh263p encoder: add 'umv' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
h263p encoder: add 'umv' private option.

Deprecate CODEC_FLAG_H263P_UMV

8 years agompeg12enc/mpeg4videoenc: add 'alternate_scan' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg12enc/mpeg4videoenc: add 'alternate_scan' private option.

Deprecate CODEC_FLAG_ALT_SCAN

8 years agomjpegdec: add 'extern_huff' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mjpegdec: add 'extern_huff' private option.

Deprecate CODEC_FLAG_EXTERN_HUFF

8 years agompeg4enc: add 'data_partitioning' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
mpeg4enc: add 'data_partitioning' private option.

Deprecate CODEC_FLAG_PART

8 years agosnow: add 'memc_only' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
snow: add 'memc_only' private option.

Deprecate CODEC_FLAG2_MEMC_ONLY

8 years agolibx264: add 'mbtree' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
libx264: add 'mbtree' private option.

Deprecate CODEC_FLAG2_MBTREE

8 years agolibx264: add 'psy' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:16:14 +0000 (10:16 +0200)]
libx264: add 'psy' private option.

Deprecate CODEC_FLAG2_PSY

8 years agolibmp3lame: add 'reservoir' private option.
Anton Khirnov [Sat, 27 Aug 2011 08:09:09 +0000 (10:09 +0200)]
libmp3lame: add 'reservoir' private option.

Deprecate CODEC_FLAG2_BIT_RESERVOIR

8 years agompeg2enc: add 'non_linear_quant' private option
Anton Khirnov [Sat, 27 Aug 2011 07:57:36 +0000 (09:57 +0200)]
mpeg2enc: add 'non_linear_quant' private option

Deprecate CODEC_FLAG2_NON_LINEAR_QUANT

8 years agompeg12enc: add drop_frame_timecode private option.
Anton Khirnov [Sat, 27 Aug 2011 06:34:05 +0000 (08:34 +0200)]
mpeg12enc: add drop_frame_timecode private option.

Deprecate CODEC_FLAG2_DROP_FRAME_TIMECODE

8 years agompeg12enc: add intra_vlc private option.
Anton Khirnov [Sat, 27 Aug 2011 06:26:14 +0000 (08:26 +0200)]
mpeg12enc: add intra_vlc private option.

Deprecate CODEC_FLAG2_INTRA_VLC.

8 years agoVC1: Support dynamic dimension changes
Alberto Delmás [Sat, 27 Aug 2011 17:37:26 +0000 (19:37 +0200)]
VC1: Support dynamic dimension changes

Fixes SA00072, SA00073, SA10150, SA10151, Issue2076

Improves SA10153

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agomjpeg: treat external huffman table setup failure as codec init failure if external...
Dustin Brody [Thu, 25 Aug 2011 23:47:01 +0000 (19:47 -0400)]
mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolavc: deprecate CODEC_FLAG2_BRDO
Anton Khirnov [Wed, 24 Aug 2011 14:26:15 +0000 (16:26 +0200)]
lavc: deprecate CODEC_FLAG2_BRDO

It's been unused for the last 3 years.

8 years agolibx264: add 'aud' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'aud' private option.

Deprecate CODEC_FLAG2_AUD.

8 years agolibx264: add 'fast-pskip' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'fast-pskip' private option.

Deprecate CODEC_FLAG2_FASTPSKIP.

8 years agolibx264: add '8x8dct' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add '8x8dct' private option.

Deprecate CODEC_FLAG2_8X8DCT.

8 years agolibx264: add 'mixed-refs' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'mixed-refs' private option.

Deprecate CODEC_FLAG2_MIXED_REFS.

8 years agolibx264: add 'weightb' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'weightb' private option.

Deprecate CODEC_FLAG2_BPYRAMID.

8 years agolibx264: add 'b-pyramid' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'b-pyramid' private option.

Deprecate CODEC_FLAG2_BPYRAMID.

8 years agolibx264: add 'intra-refresh' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'intra-refresh' private option.

Deprecate CODEC_FLAG2_INTRA_REFRESH.

8 years agolibx264: add 'ssim' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'ssim' private option.

Deprecate CODEC_FLAG2_SSIM.

8 years agolibx264: make options compatible with x264
Anton Khirnov [Sat, 27 Aug 2011 05:52:03 +0000 (07:52 +0200)]
libx264: make options compatible with x264

Replace '_' with '-', merge psy-trellis into psy-rd and rename cqp->qp
Also fix typo pdy-rd -> psy-rd

8 years agoavcodec: remove misleading comment
Luca Barbato [Mon, 29 Aug 2011 20:47:06 +0000 (22:47 +0200)]
avcodec: remove misleading comment

coded_width is the width before lowres scaling,
coded_height is the height before lowres scaling.

8 years agoavconv: remove -threads option.
Anton Khirnov [Mon, 29 Aug 2011 10:53:08 +0000 (12:53 +0200)]
avconv: remove -threads option.

It's only shadowing the AVOption with the same name.

8 years agoavconv: Replace raw picture frame swapping hack.
Alex Converse [Tue, 30 Aug 2011 02:28:42 +0000 (19:28 -0700)]
avconv: Replace raw picture frame swapping hack.

8 years agoRV40: reuse some H.264 motion compensation functions in RV40.
Kostya Shishkov [Tue, 30 Aug 2011 09:02:22 +0000 (10:02 +0100)]
RV40: reuse some H.264 motion compensation functions in RV40.

Since RV40 is based on H.264, it uses the same interpolation filters and
functions for halfpel interpolation in one direction can be reused.
Unfortunately other cases are implemented differently and produce slightly
different output because of rounding.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoRevert "h264: Properly set coded_{width, height} when parsing H.264."
Luca Barbato [Sun, 21 Aug 2011 16:27:44 +0000 (18:27 +0200)]
Revert "h264: Properly set coded_{width, height} when parsing H.264."

This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc.

coded_{width, height} overwrites width and height in avcodec_open and
it currently just report the non-lowres size.

8 years agoisom: add missing AVC-Intra tags, rearrange list and update comments
Tomas Härdin [Mon, 29 Aug 2011 11:44:13 +0000 (13:44 +0200)]
isom: add missing AVC-Intra tags, rearrange list and update comments

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoavconv: remove stubs of crop* and pad* options
Anton Khirnov [Sun, 28 Aug 2011 16:51:45 +0000 (18:51 +0200)]
avconv: remove stubs of crop* and pad* options

8 years agoavconv: re-add nb_streams to InputFile.
Anton Khirnov [Sat, 13 Aug 2011 10:20:50 +0000 (12:20 +0200)]
avconv: re-add nb_streams to InputFile.

It was mistakenly removed in 2cf8355f98681bdd726b739008acd5483f82f8d7,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.

Fixes bug 24.

8 years agoUse deinterleavers for demangling audio packets in RealMedia.
Kostya Shishkov [Sat, 13 Aug 2011 19:02:54 +0000 (21:02 +0200)]
Use deinterleavers for demangling audio packets in RealMedia.

Unlike other containers RealMedia stores its audio packets in scrambled form,
with interleaver ID preceeding audio codec ID. Currently deinterleaving
decision is tied to the codec while it's possible to have non-default
deinterleaver with audio codec (like Int0 deinterleaver instead of specific
one for Sipro).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovf_scale: don't leak SWS context.
Michael Niedermayer [Wed, 9 Mar 2011 02:30:24 +0000 (03:30 +0100)]
vf_scale: don't leak SWS context.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agodoxygen: drop another pointless star from pointer variable name
Diego Biurrun [Sat, 27 Aug 2011 12:00:54 +0000 (14:00 +0200)]
doxygen: drop another pointless star from pointer variable name

8 years agofifo: add FIFO API test program, and fate test
Stefano Sabatini [Sat, 16 Jul 2011 07:49:42 +0000 (09:49 +0200)]
fifo: add FIFO API test program, and fate test

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agofifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
Stefano Sabatini [Wed, 29 Jun 2011 15:30:23 +0000 (17:30 +0200)]
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()

The new function provides a more generic interface than av_fifo_peek()
for peeking at a FIFO buffer data.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agopostprocess.c: filter name needs to be double 0 terminated
Piotr Kaczuba [Mon, 30 May 2011 11:19:35 +0000 (13:19 +0200)]
postprocess.c: filter name needs to be double 0 terminated

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
8 years agodoxygen: fix wrong comment syntax, //< vs. ///<
Diego Biurrun [Fri, 5 Aug 2011 11:15:04 +0000 (13:15 +0200)]
doxygen: fix wrong comment syntax, //< vs. ///<

8 years agodoxygen: drop pointless star from pointer variable names
Diego Biurrun [Mon, 8 Aug 2011 10:06:26 +0000 (12:06 +0200)]
doxygen: drop pointless star from pointer variable names

8 years agoReplace deprecated av_find_stream_info() by avformat_find_stream_info().
Diego Biurrun [Fri, 26 Aug 2011 15:40:07 +0000 (17:40 +0200)]
Replace deprecated av_find_stream_info() by avformat_find_stream_info().

8 years agoxmv: eliminate superfluous zeroing of zero data
Sven Hesse [Thu, 18 Aug 2011 17:03:28 +0000 (19:03 +0200)]
xmv: eliminate superfluous zeroing of zero data

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoconfigure: fix typo in avconv dependency list
Diego Biurrun [Thu, 25 Aug 2011 19:47:47 +0000 (21:47 +0200)]
configure: fix typo in avconv dependency list

8 years agovp6: partially propagate huffman tree building errors during coeff model parsing...
Dustin Brody [Tue, 16 Aug 2011 20:46:34 +0000 (16:46 -0400)]
vp6: partially propagate huffman tree building errors during coeff model parsing and fix misspelling

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agompeg12: propagate chunk decode errors and fix conditional indentation
Dustin Brody [Tue, 16 Aug 2011 15:35:04 +0000 (11:35 -0400)]
mpeg12: propagate chunk decode errors and fix conditional indentation

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agovc1: fix VC-1 Pulldown handling.
John Stebbins [Thu, 25 Aug 2011 19:36:13 +0000 (12:36 -0700)]
vc1: fix VC-1 Pulldown handling.

Pulldown flags are being set incorrectly and AVFrame->repeat_pict is not
being set.  Also, skipped frames exit header parsing too early and do not
set pulldown flags appropriately. Ticks_per_frame needs to be set and
time_base adjusted so player can extend frame duration by a field time.

This fixes problems encountered when attempting to transcode HD-DVD EVOB
files with HandBrake. Also makes these files play smoothly in avplay.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoVC1: Fix first/last row checks with slices
Alberto Delmás [Thu, 25 Aug 2011 09:00:37 +0000 (11:00 +0200)]
VC1: Fix first/last row checks with slices

In some places 0/mb_height were used in place of start_mb_y/end_mb_y.

Fixes SA00049, SA00058, SA10091, SA10097, SA10131, SA20021, SA30030

Improves PSNR in SA00054, SA00059, SA00060, SA10096, SA10098, SA20022,
SA30031, SA30032, SA40012, SA40013

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agomp4: Handle non-trivial ES Descriptors.
Alex Converse [Wed, 24 Aug 2011 23:59:30 +0000 (16:59 -0700)]
mp4: Handle non-trivial ES Descriptors.

8 years agovc1: properly zero coded_block[] edges on new slice entry.
Ronald S. Bultje [Wed, 24 Aug 2011 21:36:16 +0000 (14:36 -0700)]
vc1: properly zero coded_block[] edges on new slice entry.

Previously, we would leave the left edge uninitialized, which led to
CBP prediction errors on slice edges, e.g. in SA10098.vc1.

8 years agoavconv: Replace goto redo on decode fail with continue.
Alex Converse [Tue, 23 Aug 2011 20:47:31 +0000 (13:47 -0700)]
avconv: Replace goto redo on decode fail with continue.

This checks for sigterm but otherwise is identical to the previous
behavior.

8 years agoavconv: Remove dead store.
Alex Converse [Tue, 23 Aug 2011 21:30:11 +0000 (14:30 -0700)]
avconv: Remove dead store.

8 years agolibx264: add 'crf_max' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'crf_max' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'weightp' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'weightp' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'rc_lookahead' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'rc_lookahead' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'psy_trellis' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'psy_trellis' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'psy_rd' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'psy_rd' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'aq_strength' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'aq_strength' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'aq_mode' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'aq_mode' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'cqp' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'cqp' private option.

Deprecate corresponding global option.

8 years agolibx264: add 'crf' private option.
Anton Khirnov [Mon, 22 Aug 2011 05:55:34 +0000 (07:55 +0200)]
libx264: add 'crf' private option.

Deprecate corresponding global option.

Ideally all x264 private options should be generated automatically, but
x264 doesn't provide the API for this yet.

8 years agolavc: remove vbv_delay option
Anton Khirnov [Tue, 23 Aug 2011 15:28:33 +0000 (17:28 +0200)]
lavc: remove vbv_delay option

It's broken and serves no purpose as it's a read-only field.

8 years agolavf utils: Fix bad indentation.
Alex Converse [Tue, 23 Aug 2011 01:47:24 +0000 (18:47 -0700)]
lavf utils: Fix bad indentation.

8 years agoavconv: use av_clip_int16 for audio clipping
Alex Converse [Mon, 22 Aug 2011 17:38:35 +0000 (10:38 -0700)]
avconv: use av_clip_int16 for audio clipping

8 years agoavconv: print the codecs names in the stream mapping.
Nicolas George [Sat, 20 Aug 2011 10:40:26 +0000 (12:40 +0200)]
avconv: print the codecs names in the stream mapping.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoavconv: move the avcodec_find_decoder() call to add_input_streams().
Anton Khirnov [Mon, 22 Aug 2011 10:48:06 +0000 (12:48 +0200)]
avconv: move the avcodec_find_decoder() call to add_input_streams().

This makes the code simpler to understand, though it results in an
unnecessary call to avcodec_find_decoder() if the stream won't be
decoded.

8 years agoWindows Media Image decoder (WMVP/WVP2)
Alberto Delmás [Wed, 17 Aug 2011 12:24:42 +0000 (14:24 +0200)]
Windows Media Image decoder (WMVP/WVP2)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoac3enc: remove outdated TODO comment for apply_channel_coupling()
Justin Ruggles [Mon, 22 Aug 2011 16:14:57 +0000 (12:14 -0400)]
ac3enc: remove outdated TODO comment for apply_channel_coupling()

8 years agolibx264: only use ABR mode when the user explicitly set bitrate.
Anton Khirnov [Sat, 20 Aug 2011 14:59:47 +0000 (16:59 +0200)]
libx264: only use ABR mode when the user explicitly set bitrate.

8 years agolibx264: use medium preset by default.
Anton Khirnov [Sat, 20 Aug 2011 14:47:36 +0000 (16:47 +0200)]
libx264: use medium preset by default.

8 years agomp2 encoder: make 128k the default bitrate.
Anton Khirnov [Sat, 20 Aug 2011 14:20:27 +0000 (16:20 +0200)]
mp2 encoder: make 128k the default bitrate.

8 years agomovenc: use libx264 by default when possible for mov, mp4 and psp
Anton Khirnov [Sat, 20 Aug 2011 14:14:58 +0000 (16:14 +0200)]
movenc: use libx264 by default when possible for mov, mp4 and psp

8 years agoavienc: saner default audio codec.
Anton Khirnov [Sat, 20 Aug 2011 14:05:17 +0000 (16:05 +0200)]
avienc: saner default audio codec.

libmp3lame if available, ac3 otherwise.

8 years agomatroskaenc: saner default codecs.
Anton Khirnov [Sat, 20 Aug 2011 14:02:22 +0000 (16:02 +0200)]
matroskaenc: saner default codecs.

libvorbis/libx264 for video if available, otherwise ac3/mpeg4.

8 years agoavplay: add examples of how to specify size/pixel format through private options
Stefano Sabatini [Sun, 21 Aug 2011 14:20:37 +0000 (16:20 +0200)]
avplay: add examples of how to specify size/pixel format through private options

Clarify with an example what the user should use instead of the
deprecated (and no longer working) -s/-pix_fmt options.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolavc: add A|E|D flags to "ac" and "ar" options
Stefano Sabatini [Sun, 17 Jul 2011 13:28:42 +0000 (13:28 +0000)]
lavc: add A|E|D flags to "ac" and "ar" options

Fix setting of the corresponding AVCodecContext fields via
cmdutils.c:filter_codec_opts().
In particular, fix ffplay -ac and -ar options.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoWavPack demuxer: do not rely on index when timestamp is not in indexed range.
Kostya Shishkov [Sat, 20 Aug 2011 11:11:14 +0000 (13:11 +0200)]
WavPack demuxer: do not rely on index when timestamp is not in indexed range.

This fixes the situation when there are not enough entries in the index
(e.g. on initial seek there's only one index entry in the index) and index
search returns just the last known entry. That causes seeking function just to
seek there instead of trying harder to get at the requested position.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoWavPack demuxer: store position of the first block in index.
Kostya Shishkov [Sat, 20 Aug 2011 16:14:58 +0000 (18:14 +0200)]
WavPack demuxer: store position of the first block in index.

Currently for multichannel audio position for the last block position is
stored in index (and used for seeking), which is obviously not correct.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoWavPack decoder: implement flush function
Kostya Shishkov [Sat, 20 Aug 2011 16:14:44 +0000 (18:14 +0200)]
WavPack decoder: implement flush function

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoavconv: Separate initialization from the main transcode loop.
Alex Converse [Fri, 19 Aug 2011 21:45:02 +0000 (14:45 -0700)]
avconv: Separate initialization from the main transcode loop.

8 years agodoc/avconv: replace forgotten av by avconv.
Anton Khirnov [Fri, 19 Aug 2011 15:52:49 +0000 (17:52 +0200)]
doc/avconv: replace forgotten av by avconv.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
8 years agoavconv: reset input_ts_offset between files.
Anton Khirnov [Fri, 19 Aug 2011 15:52:48 +0000 (17:52 +0200)]
avconv: reset input_ts_offset between files.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
8 years agodoc/avconv: extend -ss documentation.
Anton Khirnov [Fri, 19 Aug 2011 15:52:47 +0000 (17:52 +0200)]
doc/avconv: extend -ss documentation.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
8 years agoavconv: call flush_encoders() from transcode() directly.
Anton Khirnov [Fri, 19 Aug 2011 15:52:46 +0000 (17:52 +0200)]
avconv: call flush_encoders() from transcode() directly.

And remove now pointless parameter.

Signed-off-by: Alex Converse <alex.converse@gmail.com>