OSDN Git Service

coroid/ffmpeg_saccubus.git
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>
12 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>
12 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>
12 years agoavconv: fix broken indentation.
Anton Khirnov [Fri, 19 Aug 2011 15:52:45 +0000 (17:52 +0200)]
avconv: fix broken indentation.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agoavconv: rescue poor abused limit_filesize global.
Anton Khirnov [Fri, 19 Aug 2011 15:52:44 +0000 (17:52 +0200)]
avconv: rescue poor abused limit_filesize global.

Keep a per-OutputFile instance of it, thus making -fs work with multiple
output files.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agoAutodetect LOAS in transport streams.
Carl Eugen Hoyos [Fri, 19 Aug 2011 22:27:54 +0000 (00:27 +0200)]
Autodetect LOAS in transport streams.

Fixes ticket 365.

12 years agoAdd LOAS demuxer.
Carl Eugen Hoyos [Fri, 19 Aug 2011 22:27:38 +0000 (00:27 +0200)]
Add LOAS demuxer.

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 19 Aug 2011 21:32:51 +0000 (23:32 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: Set error code before before jumping to fail.
  h264: fix PCM intra-coded blocks in monochrome case

Conflicts:
libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavconv: Set error code before before jumping to fail.
Alex Converse [Fri, 19 Aug 2011 18:26:21 +0000 (11:26 -0700)]
avconv: Set error code before before jumping to fail.

12 years agoh264: fix PCM intra-coded blocks in monochrome case
Jeff Downs [Tue, 5 Jul 2011 17:20:06 +0000 (13:20 -0400)]
h264: fix PCM intra-coded blocks in monochrome case

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 19 Aug 2011 13:07:12 +0000 (15:07 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264: correct implicit weight table computation for long ref pics
  h264: correct the check for invalid long term frame index in MMCO decode

Conflicts:
libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: correct implicit weight table computation for long ref pics
Jeff Downs [Wed, 6 Jul 2011 15:54:36 +0000 (11:54 -0400)]
h264: correct implicit weight table computation for long ref pics

Correct computation of implicit weight tables when referencing pictures
that are marked for long reference.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoh264: correct the check for invalid long term frame index in MMCO decode
Jeff Downs [Tue, 5 Jul 2011 18:21:54 +0000 (14:21 -0400)]
h264: correct the check for invalid long term frame index in MMCO decode

The current check on MMCO parameters prohibits a "max long term frame index
plus 1" of 16 (frame idx of 15) for the "set max long term frame index" MMCO.
Fix this off-by-one error to allow the full range of legal values.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 18 Aug 2011 22:53:42 +0000 (00:53 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: Fix spelling errors.
  aac: Only set sample rate and object type from ADTS if output hasn't been configured.
  aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.
  aac: Only output configure if audio was found.
  avconv: save two levels of indentation in flush_encoders()
  avconv: factor flushing encoders out of output_packet().
  avconv: factor out initializing input streams.
  avconv: remove -intra option.
  avconv: reset streamid_map between output files.
  avconv: make timer_start a local var in transcode().
  avconv: cosmetics, move OutputStream.
  avconv: remove two unused macros.

Conflicts:
avconv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: Read the video packet data first, then swap its bytes
Sven Hesse [Thu, 18 Aug 2011 17:23:52 +0000 (19:23 +0200)]
xmv: Read the video packet data first, then swap its bytes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: Remove superfluous zeroing of already zero'd data
Sven Hesse [Thu, 18 Aug 2011 17:03:28 +0000 (19:03 +0200)]
xmv: Remove superfluous zeroing of already zero'd data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: Add some doxygen comments
Sven Hesse [Thu, 18 Aug 2011 17:00:21 +0000 (19:00 +0200)]
xmv: Add some doxygen comments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: Merge XMVAudioTrack into XMVAudioPacket
Sven Hesse [Thu, 18 Aug 2011 16:37:14 +0000 (18:37 +0200)]
xmv: Merge XMVAudioTrack into XMVAudioPacket

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: Make the various offset variables uint64_t
Sven Hesse [Thu, 18 Aug 2011 16:22:40 +0000 (18:22 +0200)]
xmv: Make the various offset variables uint64_t

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxmv: fix license header to match patch
Michael Niedermayer [Thu, 18 Aug 2011 14:50:22 +0000 (16:50 +0200)]
xmv: fix license header to match patch

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoAllow setting resolution in DPI for Tiff.
Carl Eugen Hoyos [Thu, 18 Aug 2011 21:17:51 +0000 (23:17 +0200)]
Allow setting resolution in DPI for Tiff.

12 years agoavconv: Fix spelling errors.
Alex Converse [Thu, 18 Aug 2011 19:09:17 +0000 (12:09 -0700)]
avconv: Fix spelling errors.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoaac: Only set sample rate and object type from ADTS if output hasn't been configured.
Alex Converse [Tue, 16 Aug 2011 18:04:03 +0000 (11:04 -0700)]
aac: Only set sample rate and object type from ADTS if output hasn't been configured.

Long term it would be nice to support error resilient reconfiguration
but right now setting this every frame does more harm than help.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoaac: Set SBR and PS to unsignalled during headerless and ADTS initialization.
Alex Converse [Wed, 10 Aug 2011 23:37:32 +0000 (16:37 -0700)]
aac: Set SBR and PS to unsignalled during headerless and ADTS initialization.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoaac: Only output configure if audio was found.
Alex Converse [Tue, 16 Aug 2011 18:03:26 +0000 (11:03 -0700)]
aac: Only output configure if audio was found.

Audio found is not triggered on a CCE because a CCE alone has no output.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoavconv: save two levels of indentation in flush_encoders()
Anton Khirnov [Tue, 16 Aug 2011 09:19:20 +0000 (11:19 +0200)]
avconv: save two levels of indentation in flush_encoders()

By replacing
if (foo)
    <do stuff>

with
if (!foo)
    continue;
<do stuff>

12 years agoavconv: factor flushing encoders out of output_packet().
Anton Khirnov [Thu, 18 Aug 2011 06:55:29 +0000 (08:55 +0200)]
avconv: factor flushing encoders out of output_packet().

12 years agoavconv: factor out initializing input streams.
Anton Khirnov [Wed, 6 Jul 2011 06:49:07 +0000 (08:49 +0200)]
avconv: factor out initializing input streams.

12 years agoavconv: remove -intra option.
Anton Khirnov [Wed, 17 Aug 2011 17:26:49 +0000 (19:26 +0200)]
avconv: remove -intra option.

It's equivalent to -g 0.

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 18 Aug 2011 08:20:25 +0000 (10:20 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (23 commits)
  h264: hide reference frame errors unless requested
  swscale: split hScale() function pointer into h[cy]Scale().
  Move clipd macros to x86util.asm.
  avconv: reindent.
  avconv: rescue poor abused start_time global.
  avconv: rescue poor abused recording_time global.
  avconv: merge two loops in output_packet().
  avconv: fix broken indentation.
  avconv: get rid of the arbitrary MAX_FILES limit.
  avconv: get rid of the output_streams_for_file vs. ost_table schizophrenia
  avconv: add a wrapper for output AVFormatContexts and merge output_opts into it
  avconv: make itsscale syntax consistent with other options.
  avconv: factor out adding input streams.
  avconv: Factorize combining auto vsync with format.
  avconv: Factorize video resampling.
  avconv: Don't unnecessarily convert ipts to a double.
  ffmpeg: remove unsed variable nopts
  RV3/4 parser: remove unused variable 'off'
  add XMV demuxer
  rmdec: parse FPS in RealMedia properly
  ...

Conflicts:
avconv.c
libavformat/version.h
libswscale/swscale.c
tests/ref/fate/lmlm4-demux

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavconv: reset streamid_map between output files.
Anton Khirnov [Wed, 17 Aug 2011 17:11:54 +0000 (19:11 +0200)]
avconv: reset streamid_map between output files.

12 years agoavconv: make timer_start a local var in transcode().
Anton Khirnov [Wed, 17 Aug 2011 16:46:36 +0000 (18:46 +0200)]
avconv: make timer_start a local var in transcode().

12 years agoavconv: cosmetics, move OutputStream.
Anton Khirnov [Wed, 17 Aug 2011 16:40:40 +0000 (18:40 +0200)]
avconv: cosmetics, move OutputStream.

Allows us to get rid of forward InputStream declaration.

12 years agoavconv: remove two unused macros.
Anton Khirnov [Wed, 17 Aug 2011 16:35:43 +0000 (18:35 +0200)]
avconv: remove two unused macros.

12 years agoh264: hide reference frame errors unless requested
Dustin Brody [Wed, 17 Aug 2011 22:08:09 +0000 (18:08 -0400)]
h264: hide reference frame errors unless requested

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale: split hScale() function pointer into h[cy]Scale().
Ronald S. Bultje [Wed, 3 Aug 2011 18:25:01 +0000 (11:25 -0700)]
swscale: split hScale() function pointer into h[cy]Scale().

This allows using more specific implementations for chroma/luma, e.g.
we can make assumptions on filterSize being constant, thus avoiding
that test at runtime.