]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 years agoffplay: fix a crash caused by aborting the video queue
Marton Balint [Thu, 25 Aug 2011 20:06:40 +0000 (22:06 +0200)]
ffplay: fix a crash caused by aborting the video queue

If the video queue is aborted, we have to pop the pending ALLOC event or wait
for the allocation to complete, because the current code assumes that
VideoState->pictq_windex does not change until the allocation is complete.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffprobe: fix deprecated call to av_find_stream_info.
Clément Bœsch [Wed, 17 Aug 2011 18:30:18 +0000 (20:30 +0200)]
ffprobe: fix deprecated call to av_find_stream_info.

12 years agoacodec: change default bitrate to 128k
Michael Niedermayer [Fri, 26 Aug 2011 12:01:30 +0000 (14:01 +0200)]
acodec: change default bitrate to 128k

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoregtests: use bitrate syntax understood by both tools
Michael Niedermayer [Fri, 26 Aug 2011 12:09:29 +0000 (14:09 +0200)]
regtests: use bitrate syntax understood by both tools

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 25 Aug 2011 23:29:40 +0000 (01:29 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vp6: partially propagate huffman tree building errors during coeff model parsing and fix misspelling
  mpeg12: propagate chunk decode errors and fix conditional indentation
  vc1: fix VC-1 Pulldown handling.
  VC1: Fix first/last row checks with slices
  mp4: Handle non-trivial ES Descriptors.
  vc1: properly zero coded_block[] edges on new slice entry.

Conflicts:
libavcodec/vc1dec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 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>
12 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>
12 years agoudp: fix circular buffer error handling
Michael Niedermayer [Thu, 25 Aug 2011 19:43:30 +0000 (21:43 +0200)]
udp: fix circular buffer error handling

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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>
12 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>
12 years agoudp: buffer datagrams in circular buffer instead of a bytestream
Michael Niedermayer [Thu, 25 Aug 2011 19:33:54 +0000 (21:33 +0200)]
udp: buffer datagrams in circular buffer instead of a bytestream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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.

12 years agosws: use shift for chroma sample up convertion
Michael Niedermayer [Thu, 25 Aug 2011 11:54:43 +0000 (13:54 +0200)]
sws: use shift for chroma sample up convertion
sws: use shifts for non full range luma sample upconvertion

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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.

12 years agoffplay: use lock manager callback to make libavcodec thread-safe
Marton Balint [Mon, 22 Aug 2011 20:26:53 +0000 (22:26 +0200)]
ffplay: use lock manager callback to make libavcodec thread-safe

Altough ffplay is working pretty well without using a lock manager, it is still
a multithreaded application calling libavcodec functions from multiple threads,
so using a lock manager is probably a good idea.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agooggdec: subtract time of first packet only from duration when it is significant
Michael Niedermayer [Wed, 24 Aug 2011 21:20:09 +0000 (23:20 +0200)]
oggdec: subtract time of first packet only from duration when it is significant
this fixes accuracy with normal ogg files while keeping support for ogg files
starting at times different from 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agooggdec: Make sure start time correction is applied once to each stream
Michael Niedermayer [Wed, 24 Aug 2011 21:13:57 +0000 (23:13 +0200)]
oggdec: Make sure start time correction is applied once to each stream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 24 Aug 2011 18:26:48 +0000 (20:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: Replace goto redo on decode fail with continue.
  avconv: Remove dead store.
  libx264: add 'crf_max' private option.
  libx264: add 'weightp' private option.
  libx264: add 'rc_lookahead' private option.
  libx264: add 'psy_trellis' private option.
  libx264: add 'psy_rd' private option.
  libx264: add 'aq_strength' private option.
  libx264: add 'aq_mode' private option.
  libx264: add 'cqp' private option.
  libx264: add 'crf' private option.
  lavc: remove vbv_delay option
  lavf utils: Fix bad indentation.
  avconv: use av_clip_int16 for audio clipping

Conflicts:
libavcodec/libx264.c
libavcodec/options.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 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.

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

12 years agoh264-422: fix fate to handle 10 bit formats on big endian correctly.
Michael Niedermayer [Wed, 24 Aug 2011 16:26:16 +0000 (18:26 +0200)]
h264-422: fix fate to handle 10 bit formats on big endian correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: Try to fix 422 intra NEON
Michael Niedermayer [Wed, 24 Aug 2011 15:57:40 +0000 (17:57 +0200)]
h264: Try to fix 422 intra NEON

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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.

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

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

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

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

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

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

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

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

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

12 years agoSupport decoding of 2bpp and 4bpp TIFF images.
Carl Eugen Hoyos [Tue, 23 Aug 2011 18:38:43 +0000 (20:38 +0200)]
Support decoding of 2bpp and 4bpp TIFF images.

Based on patches by Kostya and ami_stuff.

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

12 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

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 23 Aug 2011 16:26:37 +0000 (18:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: print the codecs names in the stream mapping.
  avconv: move the avcodec_find_decoder() call to add_input_streams().
  Windows Media Image decoder (WMVP/WVP2)
  ac3enc: remove outdated TODO comment for apply_channel_coupling()

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/vc1dec.c
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 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>
12 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.

12 years agolavfi: rename vsrc_movie.c to src_movie.c
Stefano Sabatini [Thu, 18 Aug 2011 15:10:11 +0000 (17:10 +0200)]
lavfi: rename vsrc_movie.c to src_movie.c

The file is going to contain the amovie source, so give it a less
specific name.

12 years agolavfi: add ff_parse_pixel_format() internal function, and use it
Stefano Sabatini [Mon, 22 Aug 2011 12:56:23 +0000 (14:56 +0200)]
lavfi: add ff_parse_pixel_format() internal function, and use it

Reduce code duplication.

12 years agofate: add h264 intra 4:2:2 tests
Baptiste Coudurier [Sun, 14 Aug 2011 22:43:19 +0000 (00:43 +0200)]
fate: add h264 intra 4:2:2 tests

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoFix compilation with --disable-avfilter.
Carl Eugen Hoyos [Tue, 23 Aug 2011 09:25:40 +0000 (11:25 +0200)]
Fix compilation with --disable-avfilter.

Fixes ticket #414.

12 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>
12 years agoMake strtok_r a dependency of abuffer / fix typo.
Carl Eugen Hoyos [Tue, 23 Aug 2011 07:16:39 +0000 (09:16 +0200)]
Make strtok_r a dependency of abuffer / fix typo.

Fix ticket 413.

12 years agodeveloper.texi: Suggest a git clone if the patch review process doesnt work out
Michael Niedermayer [Tue, 23 Aug 2011 02:28:44 +0000 (04:28 +0200)]
developer.texi: Suggest a git clone if the patch review process doesnt work out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodeveloper.texi: add Contributing section
Michael Niedermayer [Tue, 23 Aug 2011 02:12:34 +0000 (04:12 +0200)]
developer.texi: add Contributing section

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodeveloper.texi: Simplify "Regression tests section"
Michael Niedermayer [Tue, 23 Aug 2011 01:02:25 +0000 (03:02 +0200)]
developer.texi: Simplify "Regression tests section"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodeveloper.texi: remove reference to non existing target fulltest
Michael Niedermayer [Tue, 23 Aug 2011 00:58:45 +0000 (02:58 +0200)]
developer.texi: remove reference to non existing target fulltest

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocodec_names: remove spaces in sed command.
Nicolas George [Mon, 22 Aug 2011 18:12:50 +0000 (20:12 +0200)]
codec_names: remove spaces in sed command.

12 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()

12 years agoBe more verbose about H264 cropping errors.
Carl Eugen Hoyos [Mon, 22 Aug 2011 14:58:35 +0000 (16:58 +0200)]
Be more verbose about H264 cropping errors.

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 22 Aug 2011 12:06:08 +0000 (14:06 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libx264: only use ABR mode when the user explicitly set bitrate.
  libx264: use medium preset by default.
  mp2 encoder: make 128k the default bitrate.
  movenc: use libx264 by default when possible for mov, mp4 and psp
  avienc: saner default audio codec.
  matroskaenc: saner default codecs.
  avplay: add examples of how to specify size/pixel format through private options
  lavc: add A|E|D flags to "ac" and "ar" options

Conflicts:
doc/ffplay.texi
libavcodec/libx264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavf: warn when a parser is needed and not found.
Nicolas George [Tue, 16 Aug 2011 11:29:47 +0000 (13:29 +0200)]
lavf: warn when a parser is needed and not found.

12 years agortpenc: use avcodec_get_name to report unsupported codecs.
Nicolas George [Wed, 17 Aug 2011 14:17:47 +0000 (16:17 +0200)]
rtpenc: use avcodec_get_name to report unsupported codecs.

12 years agoflvenc: use avcodec_get_name to report unsupported codecs.
Nicolas George [Wed, 17 Aug 2011 14:17:30 +0000 (16:17 +0200)]
flvenc: use avcodec_get_name to report unsupported codecs.

12 years agoffmpeg: use avcodec_get_name to report missing en/decoders.
Nicolas George [Wed, 17 Aug 2011 13:46:15 +0000 (15:46 +0200)]
ffmpeg: use avcodec_get_name to report missing en/decoders.

12 years agolavc: use av_get_media_type_string and avcodec_get_name in avcodec_string.
Nicolas George [Wed, 17 Aug 2011 13:40:30 +0000 (15:40 +0200)]
lavc: use av_get_media_type_string and avcodec_get_name in avcodec_string.

12 years agolavc: add a table of all codecs names.
Nicolas George [Wed, 17 Aug 2011 11:54:49 +0000 (13:54 +0200)]
lavc: add a table of all codecs names.

The table is automatically generated from the definition of enum CodecID in
avcodec.h and contains the name of all known codecs, even those for which no
encoder nor decoder exists or is enabled.

The table is queried using the avcodec_get_name function.

If CONFIG_SMALL is true, the table is not compiled in; the avcodec_get_name
looks for names in the list of available decoders and encoders.

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

12 years agovsrc_movie: rename video movie specific callbacks, prefix them with "movie"
Stefano Sabatini [Thu, 18 Aug 2011 10:53:18 +0000 (12:53 +0200)]
vsrc_movie: rename video movie specific callbacks, prefix them with "movie"

12 years agoasink_abuffer: extend ABufferSinkContext to make it accept lists of formats in input
Stefano Sabatini [Thu, 18 Aug 2011 12:58:47 +0000 (14:58 +0200)]
asink_abuffer: extend ABufferSinkContext to make it accept lists of formats in input

This is required for the pending lavfi indev extension, also
consistent with the video buffer sink.

12 years agovsrc_movie: create media agnostic movie init and uninit routines
Stefano Sabatini [Thu, 18 Aug 2011 10:36:39 +0000 (12:36 +0200)]
vsrc_movie: create media agnostic movie init and uninit routines

Allow factorization for the pending work on the audio movie source.

12 years agoaf_aformat: use evil ADD_FORMATS macro for cutting out duplicated code
Stefano Sabatini [Tue, 16 Aug 2011 14:54:04 +0000 (16:54 +0200)]
af_aformat: use evil ADD_FORMATS macro for cutting out duplicated code

12 years agoffmpeg: ignore forward gaps for subtitles streams.
Nicolas George [Tue, 16 Aug 2011 13:49:17 +0000 (15:49 +0200)]
ffmpeg: ignore forward gaps for subtitles streams.

12 years agoSupport more codecs when muxing caf.
Carl Eugen Hoyos [Mon, 22 Aug 2011 07:35:58 +0000 (09:35 +0200)]
Support more codecs when muxing caf.

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

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

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

12 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

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

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

12 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>
12 years agoffplay: remove unnecessary if (cur_stream) checks
Marton Balint [Sun, 21 Aug 2011 13:06:10 +0000 (15:06 +0200)]
ffplay: remove unnecessary if (cur_stream) checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffplay: get rid of the global cur_stream variable
Marton Balint [Sun, 21 Aug 2011 13:06:09 +0000 (15:06 +0200)]
ffplay: get rid of the global cur_stream variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffplay: make step variable a member of the VideoState struct
Marton Balint [Sun, 21 Aug 2011 13:06:08 +0000 (15:06 +0200)]
ffplay: make step variable a member of the VideoState struct

Getting rid of globals are generally a good thing. The patch also makes
toggle_pause and step_to_next_frame use a function parameter instead of
the global cur_stream variable.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoUpdates avcodec_get_pix_fmt_loss to return maximum loss for an invalid destination...
Matthew Einhorn [Sun, 21 Aug 2011 17:18:30 +0000 (13:18 -0400)]
Updates avcodec_get_pix_fmt_loss to return maximum loss for an invalid destination pixel format.

Signed-off-by: Matthew Einhorn <moiein2000@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoroqvideodec: Improve checking of input buffer bounds.
Reimar Döffinger [Sat, 20 Aug 2011 11:13:01 +0000 (13:13 +0200)]
roqvideodec: Improve checking of input buffer bounds.

Fixes trac issue #408.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 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>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 21 Aug 2011 13:27:02 +0000 (15:27 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  WavPack demuxer: do not rely on index when timestamp is not in indexed range.
  WavPack demuxer: store position of the first block in index.
  WavPack decoder: implement flush function
  avconv: Separate initialization from the main transcode loop.

Conflicts:
avconv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agovsrc_testsrc: allow to set the sample aspect ratio
Stefano Sabatini [Sun, 21 Aug 2011 13:12:40 +0000 (15:12 +0200)]
vsrc_testsrc: allow to set the sample aspect ratio

Add the sar option. Useful for debugging/testing purposes.

12 years agolavdev/lavfi: set sample aspect ratio in the output stream/codec context
Stefano Sabatini [Sun, 21 Aug 2011 13:09:17 +0000 (15:09 +0200)]
lavdev/lavfi: set sample aspect ratio in the output stream/codec context

12 years agoStream-copying PureVoice into caf works fine.
Carl Eugen Hoyos [Sun, 21 Aug 2011 12:52:48 +0000 (14:52 +0200)]
Stream-copying PureVoice into caf works fine.

12 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>
12 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>
12 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>
12 years agoasrc_abuffer: pass non-const string to strtok_r in init()
Stefano Sabatini [Sun, 21 Aug 2011 09:38:30 +0000 (11:38 +0200)]
asrc_abuffer: pass non-const string to strtok_r in init()

Fix GCC warning:
asrc_abuffer.c: In function ‘init’:
asrc_abuffer.c:258: warning: passing argument 1 of ‘strtok_r’ discards qualifiers from pointer target type

12 years agolavfi: add asrc_abuffer - audio buffer source
Mina Nagy Zaki [Mon, 1 Aug 2011 08:33:26 +0000 (11:33 +0300)]
lavfi: add asrc_abuffer - audio buffer source

Originally based on code by Stefano Sabatini and S. N. Hemanth.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 20 Aug 2011 13:43:53 +0000 (15:43 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/avconv: replace forgotten av by avconv.
  avconv: reset input_ts_offset between files.
  doc/avconv: extend -ss documentation.
  avconv: call flush_encoders() from transcode() directly.
  avconv: fix broken indentation.
  avconv: rescue poor abused limit_filesize global.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavdev/lavfi: specify pos in the output packets
Stefano Sabatini [Sat, 20 Aug 2011 12:30:41 +0000 (14:30 +0200)]
lavdev/lavfi: specify pos in the output packets

12 years agolavfi: add ashowinfo filter
Stefano Sabatini [Thu, 18 Aug 2011 16:19:55 +0000 (18:19 +0200)]
lavfi: add ashowinfo filter

Useful for debugging.

12 years agoAPIchanges: fix wrong major number for av_fifo_peek2() entry
Stefano Sabatini [Sat, 20 Aug 2011 11:41:02 +0000 (13:41 +0200)]
APIchanges: fix wrong major number for av_fifo_peek2() entry

12 years agoAPIchanges: fill some lavfi entries with the corresponding git hash
Stefano Sabatini [Sat, 20 Aug 2011 11:40:03 +0000 (13:40 +0200)]
APIchanges: fill some lavfi entries with the corresponding git hash

12 years agolavdev/lavfi: initialize variable, fix warning
Stefano Sabatini [Thu, 18 Aug 2011 12:28:42 +0000 (14:28 +0200)]
lavdev/lavfi: initialize variable, fix warning

12 years agoffprobe: use av_get_media_type_string() in media_type_string(), simplify
Stefano Sabatini [Thu, 18 Aug 2011 10:29:37 +0000 (12:29 +0200)]
ffprobe: use av_get_media_type_string() in media_type_string(), simplify

12 years agolavu: add av_get_media_type_string() convenience function
Stefano Sabatini [Thu, 18 Aug 2011 10:27:44 +0000 (12:27 +0200)]
lavu: add av_get_media_type_string() convenience function

Avoid code duplication.

12 years agoFix parser not to clobber has_b_frames when extradata is set.
Reimar Döffinger [Fri, 19 Aug 2011 20:38:34 +0000 (22:38 +0200)]
Fix parser not to clobber has_b_frames when extradata is set.

Due to it in contrast to the decoder not setting up low_delay,
the code in parse_nal_units would always end up setting has_b_frames
to 1 (except when stream is explicitly marked as low delay).
Since the parser itself would create extradata, simply reopening
the parser would cause this.
estimate_timings_from_pts would cause the parser to be reopened
on the same stream.

This fixes trac issue #360.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 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.

12 years agoh264: fixup indention
Michael Niedermayer [Fri, 19 Aug 2011 21:44:40 +0000 (23:44 +0200)]
h264: fixup indention

issue spoted in last merge (probably indention fixed there by diego)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 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>
12 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>